Skip to content
Snippets Groups Projects
Commit 54d4bc90 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #1435 from davecivicrm/profileWebtestFixes

Profile web test fixes.
parents 9aa65949 8617883d
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ class WebTest_Profile_ProfileAddTest extends CiviSeleniumTestCase {
//enable recaptcha in the profile
$this->openCiviPage('admin/uf/group', 'reset=1');
$this->clickLink("xpath=//div[@id='user-profiles']/div/div/table/tbody//tr/td[1]/span[text()= '$profileTitle']/../following-sibling::td[4]/span/a[2]");
$this->clickLink("xpath=//div[@id='user-profiles']/div/div/table/tbody//tr/td[1]/span[text()= '$profileTitle']/../following-sibling::td[6]/span/a[2]");
$this->click("//form[@id='Group']/div[2]/div[2]/div[1]");
//reCaptcha settings
$this->click('add_captcha');
......
......@@ -116,7 +116,7 @@ class WebTest_Profile_ProfileGroupSubscriptionTest extends CiviSeleniumTestCase
$this->waitForPageToLoad($this->getTimeoutMsec());
// assert for subscription message
$this->assertElementContainsText('messages', "Your subscription request has been submitted for group ", "Subscription message is not shown");
$this->assertElementContainsText('css=div.messages', "Your subscription request has been submitted for group ", "Subscription message is not shown");
//check if profile is saved
$this->assertElementContainsText('css=span.msg-text', 'Your information has been saved.', 'Profile is not saved');
......@@ -127,9 +127,8 @@ class WebTest_Profile_ProfileGroupSubscriptionTest extends CiviSeleniumTestCase
}
function _testdeleteProfile($profileTitle) {
//$this->click("xpath=//div[@id='user-profiles']/div/div/table/tbody//tr/td[1]/span[text() = '$profileTitle']/../following-sibling::td[4]/span[2][text()='more']");
$this->waitForElementPresent("xpath=//div[@id='user-profiles']/div/div/table/tbody//tr/td[1]/span[text() = '$profileTitle']/../following-sibling::td[4]/span[2][text()='more']/ul/li[4]/a[text()='Delete']");
$this->click("xpath=//div[@id='user-profiles']/div/div/table/tbody//tr/td[1]/span[text() = '$profileTitle']/../following-sibling::td[4]/span[2][text()='more']/ul/li[4]/a[text()='Delete']");
$this->waitForElementPresent("xpath=//div[@id='user-profiles']/div/div/table/tbody//tr/td/span[text() = '$profileTitle']/../../td[7]/span[2][text()='more']/ul/li[4]/a[text()='Delete']");
$this->click("xpath=//div[@id='user-profiles']/div/div/table/tbody//tr/td/span[text() = '$profileTitle']/../../td[7]/span[2][text()='more']/ul/li[4]/a[text()='Delete']");
$this->waitForElementPresent('_qf_Group_next-bottom');
$this->click('_qf_Group_next-bottom');
$this->waitForElementPresent('newCiviCRMProfile-bottom');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment