*/
require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Member_ContactContextAddTest
+ */
class WebTest_Member_ContactContextAddTest extends CiviSeleniumTestCase {
protected function setUp() {
// Clicking save.
$this->click("_qf_Membership_upload");
- $this->waitForPageToLoad($this->getTimeoutMsec());
// page was loaded
$this->waitForTextPresent($sourceText);
$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
'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");
$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']");
// Clicking save.
$this->click("_qf_Membership_upload");
- $this->waitForPageToLoad($this->getTimeoutMsec());
// page was loaded
$this->waitForTextPresent($sourceText);