-- webtest fixes
authorRavish Nair <ravish@ravish.(none)>
Fri, 22 Mar 2013 10:28:43 +0000 (15:58 +0530)
committerRavish Nair <ravish@ravish.(none)>
Fri, 22 Mar 2013 10:28:43 +0000 (15:58 +0530)
tests/phpunit/WebTest/Contact/SignatureTest.php
tests/phpunit/WebTest/Event/AddEventTest.php

index b0b1969489318433b2f2efed37109e5aa66b401c..e6d3c0467581381e414ca638bbc1dfbd4ec5fa77 100644 (file)
@@ -67,7 +67,8 @@ class WebTest_Contact_SignatureTest extends CiviSeleniumTestCase {
 
     // Go for Ckeck Your Editor, Click on Send Mail
     $this->click("//a[@id='crm-contact-actions-link']/span");
-    $this->clickLink('link=Send an Email', 'subject');
+    //after clicking on 'Send an Email', wait for the text in tinymce editor to load
+    $this->clickLink('link=Send an Email', "xpath=//body[@id='tinymce']/p[2]");
 
     $this->click('subject');
     $subject = 'Subject_' . substr(sha1(rand()), 0, 8);
index 6ee243ad60b03b9382661f4e8e8cb07cc659cbf9..83d78d1e6f900045068d8621a94196cfba3c7cd7 100644 (file)
@@ -302,8 +302,7 @@ class WebTest_Event_AddEventTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent("_qf_Fee_upload-bottom");
     $this->assertChecked('is_pay_later');
     $this->click("CIVICRM_QFID_0_is_monetary");
-    $this->click("_qf_Fee_upload-bottom");
-    $this->waitForElementPresent("_qf_Fee_upload-bottom");
+    $this->clickLink("_qf_Fee_upload-bottom", "_qf_Fee_upload-bottom");
 
     //check if pay later option is disabled
     $this->click('CIVICRM_QFID_1_is_monetary');