From: Sudha Bisht Date: Mon, 23 Nov 2015 13:07:18 +0000 (+0530) Subject: Webtest Fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=895231b468dc52182cef7b7db0a9a585e63ee776;p=civicrm-core.git Webtest Fix --- diff --git a/tests/phpunit/WebTest/Contribute/PCPAddTest.php b/tests/phpunit/WebTest/Contribute/PCPAddTest.php index 003a942867..d59e025bb8 100755 --- a/tests/phpunit/WebTest/Contribute/PCPAddTest.php +++ b/tests/phpunit/WebTest/Contribute/PCPAddTest.php @@ -196,7 +196,7 @@ class WebTest_Contribute_PCPAddTest extends CiviSeleniumTestCase { $this->verifyText("xpath=//div['PCPView']/div[2]/table[@class='crm-info-panel']/tbody/tr[2]/td[2]/a", preg_quote($softCreditor)); // Check PCP Summary Report - $this->openCiviPage('report/instance/16', 'reset=1'); + $this->openCiviPage('report/instance/17', 'reset=1'); $this->verifyText("PCP", preg_quote($pcpTitle)); $this->verifyText("PCP", preg_quote("{$lastName}, {$firstName}")); } diff --git a/tests/phpunit/WebTest/Event/EventWaitListTest.php b/tests/phpunit/WebTest/Event/EventWaitListTest.php index a9685f47d0..e357f6d052 100644 --- a/tests/phpunit/WebTest/Event/EventWaitListTest.php +++ b/tests/phpunit/WebTest/Event/EventWaitListTest.php @@ -125,8 +125,7 @@ class WebTest_Event_EventWaitListTest extends CiviSeleniumTestCase { $this->assertChecked("is_multiple_registrations"); } - $this->click('intro_text'); - $this->fillRichTextField("intro_text", $registerIntro); + $this->fillRichTextField('intro_text', $registerIntro, 'CKEditor', TRUE); // enable confirmation email $this->click("CIVICRM_QFID_1_is_email_confirm"); diff --git a/tests/phpunit/WebTest/Member/InheritedMembershipTest.php b/tests/phpunit/WebTest/Member/InheritedMembershipTest.php index 5527535a73..2a68b41033 100644 --- a/tests/phpunit/WebTest/Member/InheritedMembershipTest.php +++ b/tests/phpunit/WebTest/Member/InheritedMembershipTest.php @@ -392,7 +392,7 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase { $this->click('css=li#tab_activity a'); $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td[8]/span/a"); $this->assertEquals(1, $this->getText("xpath=//li[@id='tab_activity']/a/em")); - $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody/tr/td[8]/span/a@href")); + $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td[8]/span/a@href")); $actualMembershipActivityId1 = $url['queryString']['id']; // verify membership id and membership activity id with previous one @@ -472,9 +472,9 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase { // click through to the activity view screen $this->click('css=li#tab_activity a'); - $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']"); + $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']"); $this->assertEquals(1, $this->getText("xpath=//li[@id='tab_activity']/a/em")); - $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href")); + $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href")); $actualMembershipActivityId2 = $url['queryString']['id']; // verify membership id and membership activity id with previous one @@ -510,7 +510,7 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase { // click through to the activity view screen $this->click('css=li#tab_activity a'); - $this->waitForText("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody/tr/td", "No matches found."); + $this->waitForText("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td", "None found."); $this->assertEquals(0, $this->getText("xpath=//li[@id='tab_activity']/a/em")); // click through to the relationship view screen