From 697f4d0837c1914ef3a0db146c95532b9b6ff9a7 Mon Sep 17 00:00:00 2001 From: Nate Wright Date: Wed, 18 Nov 2015 16:39:17 +0000 Subject: [PATCH] Fix search tests --- tests/functional/pages/catalog/CatalogSearchTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/functional/pages/catalog/CatalogSearchTest.php b/tests/functional/pages/catalog/CatalogSearchTest.php index 59c462759d3..43b27345773 100644 --- a/tests/functional/pages/catalog/CatalogSearchTest.php +++ b/tests/functional/pages/catalog/CatalogSearchTest.php @@ -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\')]'); @@ -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\')]');