Skip to content
Browse files

Fix two more system tests

  • Loading branch information...
1 parent 1bc1968 commit 4446f5bf66b1fffda09ce0b9591129795b155edd @dextercowley dextercowley committed Aug 24, 2012
View
1 tests/CHANGELOG
@@ -28,6 +28,7 @@ $ -> Language fix or change
24-Aug-2012 Mark Dexter
# Fix first batch of system tests for 3.0 with Bootstrap templates
+ # Fix two more system tests
30-Jul-2012 Mark Dexter
^ Add ability to capture screenshots on failure for system tests
View
5 tests/system/SeleniumJoomlaTestCase.php
@@ -453,18 +453,17 @@ function jClick($item)
break;
case 'Options':
echo "Opening options modal.\n";
- $this->click("//li[@id='toolbar-popup-options']/a/span");
+ $this->click("//div[@id='toolbar-options']/button");
for ($second = 0; ; $second++) {
if ($second >= 15) $this->fail("timeout");
try {
- if ($this->isElementPresent("//dl[contains(@id, 'configuration')]")) break;
+ if ($this->isElementPresent("//li[@class='active']/a[contains(@href, 'com_content')]")) break;
}
catch (PHPUnit_Framework_AssertionFailedError $e) {
array_push($this->verificationErrors, $this->getTraceFiles($e));
}
sleep(1);
}
- $this->assertTrue($this->isTextPresent("Options"));
break;
case 'Redirect Manager':
$screen="Redirect Manager: Links";
View
4 tests/system/suite/TestSuite.php
@@ -67,8 +67,8 @@ public static function suite()
$suite->addTestSuite('Article0001');
$suite->addTestSuite('Article0002');
$suite->addTestSuite('Article0003');
-// $suite->addTestSuite('Article0004');
-// $suite->addTestSuite('Featured0001Test');
+ $suite->addTestSuite('Article0004');
+ $suite->addTestSuite('Featured0001Test');
// $suite->addTestSuite('Featured0002Test');
// $suite->addTestSuite('User0001Test');
// $suite->addTestSuite('User0002Test');
View
97 tests/system/suite/articles/article0004Test.php
@@ -22,9 +22,9 @@ function testBatchAcessLevels()
$this->click("link=Article Manager");
$this->waitForPageToLoad("30000");
echo "Check that first three articles are Public Access Level\n";
- $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.1.6"));
- $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.2.6"));
- $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.3.6"));
+ $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.1.4"));
+ $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.2.4"));
+ $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.3.4"));
echo "Select first three articles\n";
$this->click("cb0");
$this->click("cb1");
@@ -34,12 +34,12 @@ function testBatchAcessLevels()
$this->click("//button[@type='submit' and @onclick=\"Joomla.submitbutton('article.batch');\"]");
$this->waitForPageToLoad("30000");
echo "Check for success message\n";
- $this->assertTrue($this->isElementPresent("//dl[@id=\"system-message\"][contains(., 'success')]"));
+ $this->assertTrue($this->isElementPresent("//div[@id=\"system-message\"][contains(., 'success')]"));
echo "Check that first three articles are Special Access Level\n";
- $this->assertEquals("Special", $this->getTable("//form[@id='adminForm']/table.1.6"));
- $this->assertEquals("Special", $this->getTable("//form[@id='adminForm']/table.2.6"));
- $this->assertEquals("Special", $this->getTable("//form[@id='adminForm']/table.3.6"));
+ $this->assertEquals("Special", $this->getTable("//form[@id='adminForm']/table.1.4"));
+ $this->assertEquals("Special", $this->getTable("//form[@id='adminForm']/table.2.4"));
+ $this->assertEquals("Special", $this->getTable("//form[@id='adminForm']/table.3.4"));
echo "Change back to Public and check\n";
$this->click("cb0");
$this->click("cb1");
@@ -48,10 +48,10 @@ function testBatchAcessLevels()
$this->click("//button[@type='submit' and @onclick=\"Joomla.submitbutton('article.batch');\"]");
$this->waitForPageToLoad("30000");
echo "Check for success message\n";
- $this->assertTrue($this->isElementPresent("//dl[@id=\"system-message\"][contains(., 'success')]"));
- $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.1.6"));
- $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.2.6"));
- $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.3.6"));
+ $this->assertTrue($this->isElementPresent("//div[@id=\"system-message\"][contains(., 'success')]"));
+ $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.1.4"));
+ $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.2.4"));
+ $this->assertEquals("Public", $this->getTable("//form[@id='adminForm']/table.3.4"));
echo "Finished testBatchAcessLevels\n";
@@ -67,12 +67,9 @@ function testBatchCopy()
$this->click("link=Article Manager");
$this->waitForPageToLoad("30000");
echo "Check that first three articles are as expected\n";
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.1.1"), 'Alias: administrator-components'));
- $this->assertEquals("Components", $this->getTable("//form[@id='adminForm']/table.1.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.2.1"), '(Alias: archive-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.2.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.3.1"), 'Alias: article-categories-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.3.4"));
+ $this->assertStringStartsWith('Administrator Components', $this->getTable("//form[@id='adminForm']/table.1.3"));
+ $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']/table.2.3"));
+ $this->assertStringStartsWith('Article Categories Module', $this->getTable("//form[@id='adminForm']/table.3.3"));
echo "Select first three articles and batch copy to Park Site\n";
$this->click("cb0");
$this->click("cb1");
@@ -82,13 +79,13 @@ function testBatchCopy()
$this->click("//button[@type='submit' and @onclick=\"Joomla.submitbutton('article.batch');\"]");
$this->waitForPageToLoad("30000");
echo "Check for success message\n";
- $this->assertTrue($this->isElementPresent("//dl[@id=\"system-message\"][contains(., 'success')]"));
+ $this->assertTrue($this->isElementPresent("//div[@id=\"system-message\"][contains(., 'success')]"));
echo "Check that new articles are in Park Site category\n";
$this->select("filter_category_id", "label=- Park Site");
$this->waitForPageToLoad("30000");
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.1.1"), 'Alias: administrator-components'));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.2.1"), '(Alias: archive-module'));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.3.1"), 'Alias: article-categories-module'));
+ $this->assertStringStartsWith('Administrator Components', $this->getTable("//form[@id='adminForm']/table.1.3"));
+ $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']/table.2.3"));
+ $this->assertStringStartsWith('Article Categories Module', $this->getTable("//form[@id='adminForm']/table.3.3"));
echo "Trash and delete new articles\n";
$this->click("cb0");
$this->click("cb1");
@@ -106,26 +103,22 @@ function testBatchCopy()
$this->waitForPageToLoad("30000");
echo "Check that first three articles are as expected\n";
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.1.1"), 'Alias: administrator-components'));
- $this->assertEquals("Components", $this->getTable("//form[@id='adminForm']/table.1.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.2.1"), 'Alias: archive-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.2.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.3.1"), 'Alias: article-categories-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.3.4"));
+ $this->assertStringStartsWith('Administrator Components', $this->getTable("//form[@id='adminForm']/table.1.3"));
+ $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']/table.2.3"));
+ $this->assertStringStartsWith('Article Categories Module', $this->getTable("//form[@id='adminForm']/table.3.3"));
echo "Test copying to same category\n";
echo "Select first article and copy to Components\n";
- $this->assertEquals("Components", $this->getTable("//form[@id='adminForm']/table.1.4"));
+ $this->assertStringStartsWith('Administrator Components', $this->getTable("//form[@id='adminForm']/table.1.3"));
$this->click("cb0");
$this->click("batch[move_copy]c");
$this->select("batch-category-id", "label=- - - Components");
$this->click("//button[@type='submit' and @onclick=\"Joomla.submitbutton('article.batch');\"]");
$this->waitForPageToLoad("30000");
echo "Check for success message\n";
- $this->assertTrue($this->isElementPresent("//dl[@id=\"system-message\"][contains(., 'success')]"));
+ $this->assertTrue($this->isElementPresent("//div[@id=\"system-message\"][contains(., 'success')]"));
echo "Check that new article is created with correct name and alias\n";
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.2.1"), 'Alias: administrator-components-2'));
- $this->assertEquals("Components", $this->getTable("//form[@id='adminForm']/table.2.4"));
+ $this->assertStringStartsWith('Administrator Components', $this->getTable("//form[@id='adminForm']/table.2.3"));
echo "Trash and delete new article\n";
$this->click("cb1");
$this->click("//div[@id='toolbar-trash']/button");
@@ -152,12 +145,12 @@ function testBatchMove()
$this->click("link=Article Manager");
$this->waitForPageToLoad("30000");
echo "Check initial values for articles";
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.2.1"), 'Alias: archive-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.2.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.3.1"), 'Alias: article-categories-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.3.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.4.1"), 'Alias: articles-category-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.4.4"));
+ $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']/table.2.3"));
+ $this->assertStringStartsWith('Article Categories Module', $this->getTable("//form[@id='adminForm']/table.3.3"));
+ $this->assertStringStartsWith('Articles Category Module', $this->getTable("//form[@id='adminForm']/table.4.3"));
+ $this->assertStringEndsWith('Category: Content Modules', $this->getTable("//form[@id='adminForm']/table.2.3"));
+ $this->assertStringEndsWith('Category: Content Modules', $this->getTable("//form[@id='adminForm']/table.3.3"));
+ $this->assertStringEndsWith('Category: Content Modules', $this->getTable("//form[@id='adminForm']/table.4.3"));
echo "Move Archive Module, Content Modules, Article Categories Module to Languages Category\n";
$this->click("cb1");
$this->click("cb2");
@@ -166,14 +159,14 @@ function testBatchMove()
$this->click("//button[@type='submit' and @onclick=\"Joomla.submitbutton('article.batch');\"]");
$this->waitForPageToLoad("30000");
echo "Check for success message\n";
- $this->assertTrue($this->isElementPresent("//dl[@id=\"system-message\"][contains(., 'success')]"));
- echo "Check that articles movd to new category\n";
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.2.1"), 'Alias: archive-module'));
- $this->assertEquals("Languages", $this->getTable("//form[@id='adminForm']/table.2.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.3.1"), 'Alias: article-categories-module'));
- $this->assertEquals("Languages", $this->getTable("//form[@id='adminForm']/table.3.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.4.1"), 'Alias: articles-category-module'));
- $this->assertEquals("Languages", $this->getTable("//form[@id='adminForm']/table.4.4"));
+ $this->assertTrue($this->isElementPresent("//div[@id=\"system-message\"][contains(., 'success')]"));
+ echo "Check that articles moved to new category\n";
+ $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']/table.2.3"));
+ $this->assertStringStartsWith('Article Categories Module', $this->getTable("//form[@id='adminForm']/table.3.3"));
+ $this->assertStringStartsWith('Articles Category Module', $this->getTable("//form[@id='adminForm']/table.4.3"));
+ $this->assertStringEndsWith('Category: Languages', $this->getTable("//form[@id='adminForm']/table.2.3"));
+ $this->assertStringEndsWith('Category: Languages', $this->getTable("//form[@id='adminForm']/table.3.3"));
+ $this->assertStringEndsWith('Category: Languages', $this->getTable("//form[@id='adminForm']/table.4.3"));
echo "Move articles back to original category\n";
$this->click("cb1");
$this->click("cb2");
@@ -182,14 +175,14 @@ function testBatchMove()
$this->click("//button[@type='submit' and @onclick=\"Joomla.submitbutton('article.batch');\"]");
$this->waitForPageToLoad("30000");
echo "Check for success message\n";
- $this->assertTrue($this->isElementPresent("//dl[@id=\"system-message\"][contains(., 'success')]"));
+ $this->assertTrue($this->isElementPresent("//div[@id=\"system-message\"][contains(., 'success')]"));
echo "Check that articles are back to original category\n";
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.2.1"), 'Alias: archive-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.2.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.3.1"), 'Alias: article-categories-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.3.4"));
- $this->assertTrue((bool) strpos($this->getTable("//form[@id='adminForm']/table.4.1"), 'Alias: articles-category-module'));
- $this->assertEquals("Content Modules", $this->getTable("//form[@id='adminForm']/table.4.4"));
+ $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']/table.2.3"));
+ $this->assertStringStartsWith('Article Categories Module', $this->getTable("//form[@id='adminForm']/table.3.3"));
+ $this->assertStringStartsWith('Articles Category Module', $this->getTable("//form[@id='adminForm']/table.4.3"));
+ $this->assertStringEndsWith('Category: Content Modules', $this->getTable("//form[@id='adminForm']/table.2.3"));
+ $this->assertStringEndsWith('Category: Content Modules', $this->getTable("//form[@id='adminForm']/table.3.3"));
+ $this->assertStringEndsWith('Category: Content Modules', $this->getTable("//form[@id='adminForm']/table.4.3"));
echo "Finished testBatchMove\n";
View
75 tests/system/suite/articles/featured0001Test.php
@@ -23,42 +23,34 @@ function testFeaturedOrder()
echo "Change global param to no category order\n";
$this->click("link=Article Manager");
$this->waitForPageToLoad("30000");
- $this->jClick('Options');
- $this->click("//dl[@id='config-tabs-com_content_configuration']/dt[4]/span");
- $this->select("jform_orderby_pri", "label=No Order");
+ $this->click("//div[@id='toolbar-options']/button");
+ $this->waitForPageToLoad("30000");
+ $this->click("//a[contains(@href, 'shared')]");
+ $this->select("jform_orderby_pri", "value=none");
$this->click("//button[contains(@onclick, 'component.save')]");
- for ($second = 0;; $second++)
- {
- if ($second >= 15) $this->fail("timeout");
- try
- {
- if (!$this->isElementPresent("//dl[contains(@id, 'configuration')]")) break;
- }
- catch (Exception $e)
- {
- }
- sleep(1);
- }
- sleep(3);
+ $this->waitForPageToLoad("30000");
+
echo "Reverse the article order on the front page\n";
+ $this->setDefaultTemplate('Hathor');
+ $this->doAdminLogin();
$this->click("link=Featured Articles");
$this->waitForPageToLoad("30000");
$this->click("link=Ordering");
$this->waitForPageToLoad("30000");
- $this->assertTrue($this->isElementPresent("//img[contains(@src, 'sort_asc.png')]"));
+ $this->assertTrue($this->isElementPresent("//i[@class='icon-arrow-up']"));
$this->type("//input[@name='order[]' and @value='1']", "4");
$this->type("//input[@name='order[]' and @value='2']", "3");
$this->type("//input[@name='order[]' and @value='3']", "2");
$this->type("//input[@name='order[]' and @value='4']", "1");
$this->click("//a[contains(@href, 'saveorder')]");
$this->waitForPageToLoad("30000");
- $this->assertTrue((bool) preg_match("#^[\s\S]*success[\s\S]*$#", $this->getText("//dl[@id='system-message']")));
+ $this->assertTrue($this->isElementPresent("//div[@id='system-message']//p[contains(text(), 'success')]"));
echo "Go to front page and check article order\n";
$this->gotoSite();
$this->assertEquals("Professionals", $this->getText("//div[@class='leading-0']/h2"), "Professionals article should be intro");
$this->assertTrue((bool) preg_match("/^[\s\S]*Upgraders[\s\S]*Beginners[\s\S]*Joomla![\s\S]*$/", $this->getText(
- "//div[@class='items-row cols-3 row-0']")), "Order in columns should be Upgrader, Beginners, Joomla!");
+ "//div[contains(@class, 'items-row')]")), "Order in columns should be Upgrader, Beginners, Joomla!");
echo "Go to back end and change order back to original\n";
$this->gotoAdmin();
@@ -72,64 +64,57 @@ function testFeaturedOrder()
$this->waitForPageToLoad("30000");
echo "Check that the save order was successful\n";
- $this->assertTrue((bool) preg_match("/^[\s\S]*success[\s\S]*$/", $this->getText("//dl[@id='system-message']")),
- "No success message on save order");
+ $this->assertTrue($this->isElementPresent("//div[@id='system-message']//p[contains(text(), 'success')]"));
echo "Go to site and check that the articles are in original order.\n";
$this->gotoSite();
$this->assertEquals("Joomla!", $this->getText("//div[@class='leading-0']/h2"), "Joomla! should be intro article");
$this->assertTrue((bool) preg_match("/^[\s\S]*Beginners[\s\S]*Upgraders[\s\S]*Professionals[\s\S]*$/", $this->getText(
- "//div[@class='items-row cols-3 row-0']")), "Articles should be Beginners, Upgraders, Professionals");
+ "//div[contains(@class, 'items-row')]")), "Articles should be Beginners, Upgraders, Professionals");
echo "Go back to back end and change menu item to sort by alpha\n";
+ $this->setDefaultTemplate('isis');
$this->gotoAdmin();
+ $this->doAdminLogin();
+ $this->click("link=Menus");
$this->click("link=Main Menu");
$this->waitForPageToLoad("30000");
$this->click("//td/a[contains(., 'Home')]");
$this->waitForPageToLoad("30000");
- $this->click("//h3[@id='advanced-options']/button");
- $this->select("jform_params_orderby_sec", "label=Title Alphabetical");
+ $this->click("//li/a[contains(text(), 'Advanced Options')]");
+ $this->select("jform_params_orderby_sec", "value=alpha");
$this->click("//div[@id='toolbar-save']/button");
$this->waitForPageToLoad("30000");
echo "Goto front page and check alpha article order \n";
$this->gotoSite();
$this->assertEquals("Beginners", $this->getText("//div[@class='leading-0']/h2"), "Beginners should be intro article");
- $this->assertEquals("Joomla!", $this->getText("//div[@class='item column-1']/h2"), "Joomla! should be col 1");
- $this->assertEquals("Professionals", $this->getText("//div[@class='item column-2']/h2"), "Professionals should be col 2");
- $this->assertEquals("Upgraders", $this->getText("//div[@class='item column-3']/h2"), "Upgrades should be col 3");
+ $this->assertEquals("Joomla!", $this->getText("//div[contains(@class, 'item column-1')]/h2"), "Joomla! should be col 1");
+ $this->assertEquals("Professionals", $this->getText("//div[contains(@class, 'item column-2')]/h2"), "Professionals should be col 2");
+ $this->assertEquals("Upgraders", $this->getText("//div[contains(@class, 'item column-3')]/h2"), "Upgrades should be col 3");
$this->assertTrue((bool) preg_match("/^[\s\S]*Joomla![\s\S]*Professionals[\s\S]*Upgraders[\s\S]*$/", $this->getText(
- "//div[@class='items-row cols-3 row-0']")), "Articles should be Joomla!, Professionals, Upgraders");
+ "//div[contains(@class, 'items-row')]")), "Articles should be Joomla!, Professionals, Upgraders");
echo "Go back to back end and change parameters back.\n";
$this->gotoAdmin();
+ $this->click("link=Menus");
$this->click("link=Main Menu");
$this->waitForPageToLoad("30000");
echo "Edit the Home Menu Item to change sorting back\n";
$this->click("//td/a[contains(., 'Home')]");
$this->waitForPageToLoad("30000");
- $this->click("//h3[@id='advanced-options']/button");
- $this->select("jform_params_orderby_sec", "label=Featured Articles Order");
+ $this->click("//li/a[contains(text(), 'Advanced Options')]");
+ $this->select("jform_params_orderby_sec", "value=front");
$this->click("//div[@id='toolbar-save']/button");
$this->waitForPageToLoad("30000");
$this->click("link=Article Manager");
$this->waitForPageToLoad("30000");
- $this->jClick('Options');
- $this->click("//dl[@id='config-tabs-com_content_configuration']/dt[4]/span");
- $this->select("jform_orderby_pri", "label=Category Manager Order");
+ $this->click("//div[@id='toolbar-options']/button");
+ $this->waitForPageToLoad("30000");
+ $this->click("//a[contains(@href, 'shared')]");
+ $this->select("jform_orderby_pri", "value=order");
$this->click("//button[contains(@onclick, 'component.save')]");
- for ($second = 0;; $second++)
- {
- if ($second >= 15) $this->fail("timeout");
- try
- {
- if (!$this->isElementPresent("//dl[@id='config-tabs-com_content_configuration']")) break;
- }
- catch (Exception $e)
- {
- }
- sleep(1);
- }
+ $this->waitForPageToLoad("30000");
echo "Done with featured0001Test\n";
$this->click("link=Control Panel");
View
12 tests/system/suite/articles/featured0002Test.php
@@ -26,12 +26,12 @@ function testOrderDown()
echo "Open Home menu item and change to 0 leading, 7 intro, alpha sort.\n";
$this->click("//td/a['Home']");
$this->waitForPageToLoad("30000");
- $this->click("//h3[@id='advanced-options']/button");
+ $this->click("//li/a[contains(text(), 'Advanced Options')]");
$this->type("jform_params_num_leading_articles", "0");
$this->type("jform_params_num_intro_articles", "7");
- $this->select("jform_params_multi_column_order", "label=Down");
- $this->select("jform_params_orderby_pri", "label=No Order");
- $this->select("jform_params_orderby_sec", "label=Title Alphabetical");
+ $this->select("jform_params_multi_column_order", "value=0"); // multi-column down
+ $this->select("jform_params_orderby_pri", "value=none");
+ $this->select("jform_params_orderby_sec", "value=alpha");
$this->click("//div[@id='toolbar-save']/button");
$this->waitForPageToLoad("30000");
@@ -58,7 +58,7 @@ function testOrderDown()
$this->waitForPageToLoad("30000");
$this->click("//td/a['Home']");
$this->waitForPageToLoad("30000");
- $this->click("//h3[@id='advanced-options']/button");
+ $this->click("//li/a[contains(text(), 'Advanced Options')]");
$this->select("jform_params_orderby_sec", "label=Title Reverse Alphabetical");
$this->click("//div[@id='toolbar-save']/button");
$this->waitForPageToLoad("30000");
@@ -84,7 +84,7 @@ function testOrderDown()
$this->waitForPageToLoad("30000");
$this->click("//td/a['Home']");
$this->waitForPageToLoad("30000");
- $this->click("//h3[@id='advanced-options']/button");
+ $this->click("//li/a[contains(text(), 'Advanced Options')]");
$this->type("jform_params_num_leading_articles", "1");
$this->type("jform_params_num_intro_articles", "3");
$this->select("jform_params_multi_column_order", "label=Across");

0 comments on commit 4446f5b

Please sign in to comment.
Something went wrong with that request. Please try again.