From: Dave Greenberg Date: Wed, 1 Apr 2015 22:41:38 +0000 (-0700) Subject: CRM-15197 - WebTest_Member_InheritedMembershipTest fixes. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3350f8b4306c4c9958bbbd67fd82d34b3c7fee78;p=civicrm-core.git CRM-15197 - WebTest_Member_InheritedMembershipTest fixes. ---------------------------------------- * CRM-15197: Various Webtest Fixes https://issues.civicrm.org/jira/browse/CRM-15197 --- diff --git a/tests/phpunit/WebTest/Member/InheritedMembershipTest.php b/tests/phpunit/WebTest/Member/InheritedMembershipTest.php index 8be9901f6f..dc0449faff 100644 --- a/tests/phpunit/WebTest/Member/InheritedMembershipTest.php +++ b/tests/phpunit/WebTest/Member/InheritedMembershipTest.php @@ -386,7 +386,7 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase { // click through to the membership view screen after edit $this->click('css=li#tab_member a'); $this->waitForElementPresent("xpath=//div[@id='memberships']//table//tbody/tr[1]/td[9]/span/a[text()='View']"); - $this->assertEquals(2, $this->getText("xpath=//li[@id='tab_member']/a/em")); + $this->assertEquals(1, $this->getText("xpath=//li[@id='tab_member']/a/em")); $url = $this->parseURL($this->getAttribute("xpath=//div[@id='memberships']//table//tbody/tr[1]/td[9]/span/a[text()='View']@href")); $actualMembershipId1 = $url['queryString']['id']; @@ -394,13 +394,14 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase { // click through to the activity view screen after edit $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->assertEquals(2, $this->getText("xpath=//li[@id='tab_activity']/a/em")); + $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")); $actualMembershipActivityId1 = $url['queryString']['id']; // verify membership id and membership activity id with previous one + // FIXME: These 2 lines are currently failing because the inherited membership and signup activity or being recreated when contact is edited/saved. dgg $this->assertEquals($expectedMembershipId, $actualMembershipId1); - $this->assertNotEquals($expectedMembershipId, $actualMembershipActivityId1); + $this->assertNotEquals($expectedMembershipActivityId, $actualMembershipActivityId1); // click through to the relationship view screen after edit $this->click('css=li#tab_rel a');