test updates

This commit is contained in:
Shish 2012-04-01 18:47:14 +01:00
parent 2831f61489
commit e24b144acb
2 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ class IndexTest extends ShimmieWebTestCase {
$this->assert_title("Shimmie"); $this->assert_title("Shimmie");
$this->get_page('post/list/99999'); $this->get_page('post/list/99999');
$this->assert_title("Shimmie"); $this->assert_title("No Images Found");
$this->log_in_as_admin(); $this->log_in_as_admin();
$this->delete_image($image_id); $this->delete_image($image_id);
@ -44,7 +44,7 @@ class IndexTest extends ShimmieWebTestCase {
# regular tag, no results # regular tag, no results
$this->get_page('post/list/maumaumau/1'); $this->get_page('post/list/maumaumau/1');
$this->assert_title("maumaumau"); $this->assert_title("No Images Found");
$this->assert_text("No Images Found"); $this->assert_text("No Images Found");
# regular tag, many results # regular tag, many results

View file

@ -51,10 +51,10 @@ class TagEditTest extends ShimmieWebTestCase {
$this->assert_title("Image $image_id: pbx"); $this->assert_title("Image $image_id: pbx");
$this->get_page("admin"); $this->get_page("admin");
$this->assert_text("Mass Tag Edit"); // just test it exists $this->assert_text("Mass Tag Edit");
$this->set_field("search", "pbx"); $this->set_field("search", "pbx");
$this->set_field("replace", "pox"); $this->set_field("replace", "pox");
$this->click("Set"); $this->click("Replace");
$this->get_page("post/view/$image_id"); $this->get_page("post/view/$image_id");
$this->assert_title("Image $image_id: pox"); $this->assert_title("Image $image_id: pox");