Skip to content
Snippets Groups Projects
Commit c1d1bf14 authored by Web Access's avatar Web Access
Browse files

Webtest fixes

parent 021da9cd
Branches
Tags
No related merge requests found
......@@ -1646,7 +1646,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
else {
$this->click("xpath=id('ltype')/div/table/tbody/tr/td[1][text()='$financialType[oldname]']/../td[7]/span/a[text()='Edit']");
}
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForElementPresent("name");
$this->type('name', $financialType['name']);
if ($option == 'new') {
$this->type('description', $financialType['name'] . ' description');
......
......@@ -257,13 +257,17 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
$this->select("preferred_language", "value=fr_FR");
//Notes section
$this->click("notesBlock");
$this->clickAt("xpath=//div[text()='
Notes
']");
$this->waitForElementPresent("subject");
$this->type("subject", "Grant's note");
$this->type("note", "This is a household contact webtest note.");
// select group
$this->select("crmasmSelect0", "label=$groupName");
$this->clickAt("xpath=//div[text()='Tags and Groups']");
$this->select("group", "label=$groupName");
//tags section
$this->click("tag[{$this->webtestGetValidEntityID('Tag')}]");
......
......@@ -268,7 +268,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase {
//advanced search by selecting the contactType
$this->openCiviPage("contact/search/advanced", "reset=1");
if (isset($contactType)) {
$this->select("id=crmasmSelect0", "value=$contactType");
$this->select("id=contact_type", "value=$contactType");
}
if (substr($field, 0, 5) == 'note_') {
$this->click("notes");
......
......@@ -180,7 +180,7 @@ class WebTest_Contribute_AddPricesetTest extends CiviSeleniumTestCase {
$this->openCiviPage("admin/price", "reset=1");
// Use the price set id ($sid) to pick the correct row
$this->clickLink("css=tr#row_{$sid} a[title='View and Edit Price Fields']", 'Link=Add Price Field');
$this->clickLink("//*[@id='price_set-{$sid}']/td[4]/span[1]/a[1]", 'Link=Add Price Field');
// Check for expected price set field strings
$this->assertStringsPresent($validateStrings);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment