From c494e713a0e256211871b0bdc7beb0e62718f784 Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Tue, 30 Sep 2014 12:24:19 +0530 Subject: [PATCH] Webtest Fix --- tests/phpunit/WebTest/Event/AddEventTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/WebTest/Event/AddEventTest.php b/tests/phpunit/WebTest/Event/AddEventTest.php index 7729645e75..5cf3610f26 100644 --- a/tests/phpunit/WebTest/Event/AddEventTest.php +++ b/tests/phpunit/WebTest/Event/AddEventTest.php @@ -156,12 +156,13 @@ class WebTest_Event_AddEventTest extends CiviSeleniumTestCase { $this->openCiviPage("event/manage/fee", "reset=1&action=update&id=$id", "_qf_Fee_upload-bottom"); $this->click("xpath=//a[@id='quickconfig']"); $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']"); - $this->click("xpath=//div[@class='ui-dialog-buttonset']/button[2]"); - $this->waitForElementPresent("xpath=//a[@id='quickconfig']"); + $this->click("xpath=//div[@class='ui-dialog-buttonset']//button/span[text()='Continue']"); //Assert quick config change and discount deletion $this->openCiviPage("admin/price", "reset=1"); - $this->assertStringsPresent($discount); + foreach ($discount as $key => $val) { + $this->waitForTextPresent($val); + } } function testAddDeleteEventDiscount() { -- 2.25.1