webtest 4.5.0
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 17 Sep 2014 12:36:20 +0000 (18:06 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 17 Sep 2014 12:36:20 +0000 (18:06 +0530)
tests/phpunit/WebTest/Case/ActivityToCaseTest.php
tests/phpunit/WebTest/Export/ContactTest.php

index 1776f0295f5939b4660df9ae59cf9cdecdb42888..bfdce3e9d972bb5ade4dc1d4c802c824f46e6787 100644 (file)
@@ -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
index 5da4c611f3bd9980a9588fc5021d1692d7e48164..b741ca7c9e34b48c538d882b3b9f7599e3f02949 100644 (file)
@@ -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');