X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FMember%2FContactContextAddTest.php;h=ebc5ce9a9e1351839eade5ae9ea38252bce23be6;hb=829c9b7b5a25b2472f7d675c8d843305be7f5bc4;hp=c080dabce10cafb5b822a70ee5ade72aca2e2568;hpb=e8dadc9173d6f9ac2012dab009de3ebbc6b59197;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Member/ContactContextAddTest.php b/tests/phpunit/WebTest/Member/ContactContextAddTest.php index c080dabce1..ebc5ce9a9e 100644 --- a/tests/phpunit/WebTest/Member/ContactContextAddTest.php +++ b/tests/phpunit/WebTest/Member/ContactContextAddTest.php @@ -1,9 +1,9 @@ click("_qf_Membership_upload"); - $this->waitForPageToLoad($this->getTimeoutMsec()); // page was loaded $this->waitForTextPresent($sourceText); @@ -107,10 +110,10 @@ class WebTest_Member_ContactContextAddTest extends CiviSeleniumTestCase { $this->webtestVerifyTabularData($verifyData); $this->click("_qf_MembershipView_cancel-bottom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); // page was loaded $this->waitForTextPresent($sourceText); + $this->waitForElementPresent("css=li#tab_activity a"); // click through to the activities screen $this->click("css=li#tab_activity a"); // page was loaded @@ -126,7 +129,7 @@ class WebTest_Member_ContactContextAddTest extends CiviSeleniumTestCase { 'Source' => $sourceText, ); $this->webtestVerifyTabularData($verifyData); - $this->clickLink("_qf_MembershipView_cancel-bottom", "xpath=//div[@id='memberships']/div/table/tbody//tr/td[1][text()='{$memTypeParams['membership_type']}']/../td[7]"); + $this->clickLink("_qf_MembershipView_cancel-bottom", "xpath=//div[@id='memberships']/div/table/tbody//tr/td[1][text()='{$memTypeParams['membership_type']}']/../td[7]", FALSE); $this->click("xpath=//div[@id='memberships']/div/table/tbody//tr/td[1][text()='{$memTypeParams['membership_type']}']/../td[9]/span/a[2][text()='Edit']"); $this->waitForElementPresent("_qf_Membership_cancel-bottom"); @@ -137,11 +140,11 @@ class WebTest_Member_ContactContextAddTest extends CiviSeleniumTestCase { $this->select("membership_type_id[1]", "label={$lifeTimeMemTypeParams['membership_type']}"); $this->waitForElementPresent("xpath=//form[@id='Membership']/div[2]/div[2]//table/tbody//tr[@class='crm-membership-form-block-end_date']/td[2]"); - $this->click("xpath=//form[@id='Membership']/div[2]/div[2]//table/tbody//tr[@class='crm-membership-form-block-end_date']/td[2]/span/a[text()='clear']"); + $this->click("xpath=//form[@id='Membership']/div[2]/div[2]//table/tbody//tr[@class='crm-membership-form-block-end_date']/td[2]/a[@title='Clear']"); $this->click("_qf_Membership_upload-bottom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); + $this->waitForElementPresent("xpath=//div[@id='memberships']//table//tbody/tr[1]/td[9]/span/a[text()='View']"); // page was loaded $this->waitForTextPresent($sourceText); $this->click("xpath=//div[@id='memberships']//table//tbody/tr[1]/td[9]/span/a[text()='View']"); @@ -211,7 +214,6 @@ class WebTest_Member_ContactContextAddTest extends CiviSeleniumTestCase { // Clicking save. $this->click("_qf_Membership_upload"); - $this->waitForPageToLoad($this->getTimeoutMsec()); // page was loaded $this->waitForTextPresent($sourceText); @@ -230,7 +232,7 @@ class WebTest_Member_ContactContextAddTest extends CiviSeleniumTestCase { ); $this->webtestVerifyTabularData($verifyData); $this->click("_qf_MembershipView_cancel-bottom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); + $this->waitForElementPresent("mainTabContainer"); } }