Skip to content

Commit

Permalink
Fix search tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr authored and asmecher committed Nov 18, 2015
1 parent e0e5320 commit 697f4d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/pages/catalog/CatalogSearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ protected function getAffectedTables() {
function testBombSearch() {
// Search for "bomb"
$this->open(self::$baseUrl);
$this->waitForElementPresent($selector = '//form[contains(@class, \'cmp_search_homepage\')]//input[@name=\'query\']');
$this->waitForElementPresent($selector = '//form[contains(@class, \'pkp_search\')]//input[@name=\'query\']');
$this->type($selector, 'bomb');
$this->click('//form[contains(@class, \'cmp_search_homepage\')]//button[contains(.,\'Search Catalog\')]');
$this->click('//form[contains(@class, \'pkp_search\')]//button[contains(.,\'Search\')]');

// Should be 1 result
$this->waitForElementPresent('//div[contains(.,\'1 Titles\')]');
Expand All @@ -44,9 +44,9 @@ function testBombSearch() {
function testZorgSearch() {
// Search for "bomb"
$this->open(self::$baseUrl);
$this->waitForElementPresent($selector = '//form[contains(@class, \'cmp_search_homepage\')]//input[@name=\'query\']');
$this->waitForElementPresent($selector = '//form[contains(@class, \'pkp_search\')]//input[@name=\'query\']');
$this->type($selector, 'zorg');
$this->click('//form[contains(@class, \'cmp_search_homepage\')]//button[contains(.,\'Search Catalog\')]');
$this->click('//form[contains(@class, \'pkp_search\')]//button[contains(.,\'Search\')]');

// Should be 0 results
$this->waitForElementPresent('//div[contains(.,\'0 Titles\')]');
Expand Down

0 comments on commit 697f4d0

Please sign in to comment.