From eb73a0360ee57853eb6bbe4563817fbb4a8abcce Mon Sep 17 00:00:00 2001 From: Web Access Date: Mon, 24 Mar 2014 18:08:49 +0530 Subject: [PATCH] Modification for select2 --- tests/phpunit/WebTest/Event/AddParticipationTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/WebTest/Event/AddParticipationTest.php b/tests/phpunit/WebTest/Event/AddParticipationTest.php index c85d10abab..fa875c5f29 100644 --- a/tests/phpunit/WebTest/Event/AddParticipationTest.php +++ b/tests/phpunit/WebTest/Event/AddParticipationTest.php @@ -48,7 +48,7 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase { $this->webtestFillAutocomplete($firstName); // Select event. Based on label for now. - $this->select('event_id', "label=regexp:Rain-forest Cup Youth Soccer Tournament."); + $this->select2('s2id_event_id', "Rain-forest Cup Youth Soccer Tournament"); // Select role $this->click('role_id[2]'); @@ -60,7 +60,7 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase { // May 5th, 2010 // Select participant status - $this->select('status_id', 'value=1'); + $this->select2('s2id_status_id', 'Registered'); // Setting registration source $this->type('source', 'Event StandaloneAddTest Webtest'); @@ -242,7 +242,7 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase { $this->webtestFillAutocomplete($firstName); // Select event. Based on label for now. - $this->select('event_id', "label=regexp:Rain-forest Cup Youth Soccer Tournament."); + $this->select2('s2id_event_id', "Rain-forest Cup Youth Soccer Tournament"); // Select roles $this->click('role_id[2]'); @@ -260,7 +260,7 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase { // May 5th, 2010 // Select participant status - $this->select('status_id', 'value=1'); + $this->select2('s2id_status_id', 'Registered'); // Setting registration source $this->type('source', 'Event StandaloneAddTest Webtest'); @@ -407,7 +407,7 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase { $this->openCiviPage("participant/add", "reset=1&action=add&context=standalone", "_qf_Participant_upload-bottom"); // Select event. - $this->select('event_id', "label=regexp:Rain-forest Cup Youth Soccer Tournament."); + $this->select2('s2id_event_id', "Rain-forest Cup Youth Soccer Tournament"); // Select role. $this->click('role_id[2]'); -- 2.25.1