Skip to content
Snippets Groups Projects
Commit 377afa39 authored by Ravish Nair's avatar Ravish Nair
Browse files

-- webtest-fix related to issue CRM-12397 and fix for other failing tests

parent ade5b801
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ class WebTest_Contact_AdvancedSearchTest extends CiviSeleniumTestCase {
//-- search with non existing value ( sort name )
$this->type("sort_name", "$dummyName");
$this->clickLink("_qf_Advanced_refresh");
$this->waitForText('css=div.messages', "No matches found for");
$this->waitForText("xpath=//form[@id='Advanced']/div[3]/div/div", "No matches found for");
}
/*
......
......@@ -197,7 +197,7 @@ class WebTest_Contribute_UpdateContributionTest extends CiviSeleniumTestCase {
$this->clickLink("_qf_FinancialTypeAccount_next_new-botttom");
$this->select("account_relationship", "label=Premiums Inventory Account is");
$this->select("financial_account_id", "label=$to");
$this->click("_qf_FinancialTypeAccount_next-botttom");
$this->clickLink("_qf_FinancialTypeAccount_next-botttom");
$premiumName = 'Premium'.substr(sha1(rand()), 0, 7);
$amount = 500;
$sku = 'SKU';
......
......@@ -524,6 +524,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase {
$this->check("is_multiple_registrations");
$this->select("custom_pre_id", "value=1");
$this->select("custom_post_id", "value=" . $profileId[3]);
$this->select("additional_custom_post_id", "label=- same as for main contact -");
$this->waitForElementPresent("xpath=//div[@id='registration_screen']/table[2]//tbody/tr[2]/td[2]/span/a[text()='add profile']");
$this->click("xpath=//div[@id='registration_screen']/table[2]//tbody/tr[2]/td[2]/span/a[text()='add profile']");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment