X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FEvent%2FMultiprofileEventTest.php;h=ff4739dc753019f4a99a1eccec59995fbc160963;hb=6594935cdf40a89db938cab053596b776e011bc7;hp=6d68e4dca9f8f59865da163cf9bf6bc65f6675f8;hpb=92b0f883315c72514e629b1c9e37261b84186785;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Event/MultiprofileEventTest.php b/tests/phpunit/WebTest/Event/MultiprofileEventTest.php index 6d68e4dca9..ff4739dc75 100644 --- a/tests/phpunit/WebTest/Event/MultiprofileEventTest.php +++ b/tests/phpunit/WebTest/Event/MultiprofileEventTest.php @@ -316,7 +316,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { } /** - * @param $eventPageId + * @param int $eventPageId */ function _testRemoveProfile($eventPageId) { $this->openCiviPage("event/manage/settings", "reset=1&action=update&id=$eventPageId"); @@ -333,7 +333,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { } /** - * @param $customId + * @param int $customId * * @return array */ @@ -555,7 +555,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { } /** - * @param $profileId + * @param int $profileId * * @return null */ @@ -627,12 +627,12 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { } /** - * @param $eventPageId - * @param $customId - * @param $firstName - * @param $lastName - * @param $participantfname - * @param $participantlname + * @param int $eventPageId + * @param int $customId + * @param string $firstName + * @param string $lastName + * @param string $participantfname + * @param string $participantlname * @param $email1 * @param $email2 */ @@ -672,6 +672,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { $this->type("nick_name", "Nick"); $this->type("url-1", "http://www.test.com"); + $this->waitForElementPresent('street_address-Primary'); $this->type("street_address-Primary", "Primary street address"); $this->type("city-Primary", "primecity"); $this->type("phone-Primary-1", "98667764"); @@ -683,6 +684,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { $this->type("middle_name", "xyz"); $this->click("name=gender_id value=2"); + $this->waitForElementPresent('participant_role'); $this->select("participant_role", "value=2"); $this->click("_qf_Register_upload-bottom"); @@ -703,6 +705,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { $this->type("custom_" . $customId[1], "participant_custom1"); $this->type("custom_" . $customId[2], "participant_custom1"); + $this->waitForElementPresent('street_address-Primary'); $this->type("street_address-Primary", "Primary street address"); $this->type("city-Primary", "primecity"); $this->type("phone-Primary-1", "98667764"); @@ -717,11 +720,11 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { } /** - * @param $eventPageId - * @param $customId - * @param $firstName2 - * @param $lastName2 - * @param $participantfname2 + * @param int $eventPageId + * @param int $customId + * @param string $firstName2 + * @param string $lastName2 + * @param string $participantfname2 * @param $participantlname2 * @param $email3 * @param $email4 @@ -814,7 +817,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase { } /** - * @param $cfId + * @param int $cfId */ function _removeEmailField($cfId) { $this->openCiviPage("admin/uf/group/field", "action=delete&id={$cfId}");