From: jitendrapurohit Date: Wed, 17 Sep 2014 12:36:20 +0000 (+0530) Subject: webtest 4.5.0 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e89f6e22257dfedde4cb2c8f24e7df17b5cd8325;p=civicrm-core.git webtest 4.5.0 --- diff --git a/tests/phpunit/WebTest/Case/ActivityToCaseTest.php b/tests/phpunit/WebTest/Case/ActivityToCaseTest.php index 1776f0295f..bfdce3e9d9 100644 --- a/tests/phpunit/WebTest/Case/ActivityToCaseTest.php +++ b/tests/phpunit/WebTest/Case/ActivityToCaseTest.php @@ -390,16 +390,12 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase { $this->click("is_searchable"); //clicking save - $this->click("xpath=//div[@class='ui-dialog-buttonset']/button[1]/span[2]"); + $this->clickLink("_qf_Field_next_new-bottom", "_qf_Field_next_new-bottom", FALSE); //Is custom field created - $this->waitForElementPresent("newCustomField"); $this->waitForText('crm-notification-container', "Custom field '$radioFieldLabel' has been saved."); // create another custom field - text field - $this->click("newCustomField"); - $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button[1]/span[2]"); - $textFieldLabel = 'Custom Field Text_' . substr(sha1(rand()), 0, 4); $this->type('label', $textFieldLabel); @@ -413,7 +409,7 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase { $this->click('is_searchable'); //clicking save - $this->click("xpath=//div[@class='ui-dialog-buttonset']/button[1]/span[2]"); + $this->click("_qf_Field_done-bottom"); $this->waitForElementPresent("//a[@id='newCustomField']/span"); //Is custom field created diff --git a/tests/phpunit/WebTest/Export/ContactTest.php b/tests/phpunit/WebTest/Export/ContactTest.php index 5da4c611f3..b741ca7c9e 100644 --- a/tests/phpunit/WebTest/Export/ContactTest.php +++ b/tests/phpunit/WebTest/Export/ContactTest.php @@ -284,7 +284,7 @@ class WebTest_Export_ContactTest extends ExportCiviSeleniumTestCase { $this->type("address_1_street_address", "121A Sherman St. Apt. 12"); $this->type("address_1_city", "Dumfries"); $this->type("address_1_postal_code", "1234"); - $this->assertElementContainsText('address_1', "- select - United States"); + $this->assertElementContainsText('address_table_1', "- select - United States"); $this->select("address_1_state_province_id", "value=1019"); $this->click('_qf_Contact_upload_view');