$this->waitForPageToLoad();
// We should get no results. But check the options are all still set
- $this->waitForTextPresent('None found.');
+ $this->waitForTextPresent('No matches found for:');
foreach (array($groupName, 'United States', 'Male') as $i => $label) {
$this->waitForElementPresent("//span[@id='crm_search_value_1_$i']/select/option[2]");
$this->assertSelectedLabel("//span[@id='crm_search_value_1_$i']/select", $label);
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
- $this->type("sort_name", "$firstName $lastName");
+ $this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", FALSE);
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);
$this->click('css=li#tab_reminder a');
$this->waitForElementPresent("newScheduleReminder");
$this->click("newScheduleReminder");
- $this->waitForElementPresent("_qf_ScheduleReminders_upload-bottom");
+ $this->waitForElementPresent("_qf_ScheduleReminders_next-bottom");
$this->type("title", "Event Reminder for " . $eventTitle);
$this->select('entity', 'label=Registered');
$this->type("text_message", "This is the test text version here!!!");
//click on save
- $this->click('_qf_ScheduleReminders_upload-bottom');
+ $this->click('_qf_ScheduleReminders_next-bottom');
$this->waitForElementPresent("link=Add Reminder");
- $this->waitForElementPresent("link=Edit");
+ $this->waitForElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[7]/span/a[1]");
$verifyText = array(
1 => 'Event Reminder for ' . $eventTitle,
$this->waitForElementPresent('_qf_Reserve_next_reserveToInterview-top');
$this->clickLink('_qf_Reserve_next_reserveToInterview-top', '_qf_Interview_cancel_interview');
- $this->isElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody//tr/td[text()='{$Name2}']");
- $this->isElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody//tr/td[text()='{$Name1}']");
+ $this->isElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody//tr/td[2][text()='{$Name2}']");
+ $this->isElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody//tr/td[2][text()='{$Name1}']");
//edition to be done here
// selecting first check of profile
$this->isTextPresent("Your subscription request has been submitted for");
//check if profile is saved
- $this->waitForText('crm-notification-container','Your information has been saved.');
+ $this->isTextPresent("Your information has been saved.");
// delete the profile
$this->openCiviPage('admin/uf/group', 'reset=1');
* @param $profileTitle
*/
function _testdeleteProfile($profileTitle) {
- $this->waitForElementPresent("xpath=//div[@id='user-profiles']/div/div/table/tbody//tr/td/span[text() = '$profileTitle']/../../td[7]/span[2][text()='more']/ul/li[5]/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[5]/a[text()='Delete']");
+ $this->waitForElementPresent("xpath=//div[@id='user-profiles']/div/div[1]/table/tbody//tr/td[1]/span[text() = '$profileTitle']/../../td[7]/span[2][text()='more']/ul/li[5]/a[text()='Delete']");
+ $this->click("xpath=//div[@id='user-profiles']/div/div[1]/table/tbody//tr/td[1]/span[text() = '$profileTitle']/../../td[7]/span[2][text()='more']/ul/li[5]/a[text()='Delete']");
$this->waitForElementPresent('_qf_Group_next-bottom');
$this->click('_qf_Group_next-bottom');
$this->waitForElementPresent('newCiviCRMProfile-bottom');