<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* Description of AddRecurringActivityTest
require_once 'CiviTest/CiviSeleniumTestCase.php';
+/**
+ * Class WebTest_Activity_AddRecurringActivityTest
+ */
class WebTest_Activity_AddRecurringActivityTest extends CiviSeleniumTestCase {
protected function setUp() {
parent::setUp();
}
- function testRecurringActivity() {
+ public function testRecurringActivity() {
$this->webtestLogin();
//Adding new contact
// ...need to use mouseDownAt on first result (which is a li element), click does not work
$this->clickAt("xpath=//div[@class='select2-result-label']");
- $this->waitForText("xpath=//div[@id='s2id_target_contact_id']","$contact1");
+ $this->waitForText("xpath=//div[@id='s2id_target_contact_id']", "$contact1");
$this->assertElementContainsText("xpath=//div[@id='s2id_target_contact_id']", "Karan, $contact1", 'Contact not found in line ' . __LINE__);
-
//Assigned To field
$this->click("xpath=//div[@id='s2id_assignee_contact_id']/ul/li/input");
$this->keyDown("xpath=//div[@id='s2id_assignee_contact_id']/ul/li/input", " ");
$this->clickAt("xpath=//div[@class='select2-result-label']");
// ...again, waiting for the box with contact name to show up...
- $this->waitForText("xpath=//div[@id='s2id_assignee_contact_id']","$contact2");
+ $this->waitForText("xpath=//div[@id='s2id_assignee_contact_id']", "$contact2");
// ...and verifying if the page contains properly formatted display name for chosen contact.
$this->assertElementContainsText("xpath=//div[@id='s2id_assignee_contact_id']", "Jane, $contact2", 'Contact not found in line ' . __LINE__);