X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FACL%2FAssignUsersToRolesTest.php;h=8f87b1eb7e3ff363af2c40405c07367e1dfca5fd;hb=fc39f196c427ec3f13f2a240967bd36f426e9609;hp=fa456256e42c667f20f7b7fbdaf91934dff6d68b;hpb=76e86fd8640221a1225320edafd0ebc2c8192643;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/ACL/AssignUsersToRolesTest.php b/tests/phpunit/WebTest/ACL/AssignUsersToRolesTest.php index fa456256e4..8f87b1eb7e 100755 --- a/tests/phpunit/WebTest/ACL/AssignUsersToRolesTest.php +++ b/tests/phpunit/WebTest/ACL/AssignUsersToRolesTest.php @@ -1,9 +1,9 @@ click("_qf_Edit_upload-bottom"); $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->assertElementContainsText('crm-notification-container', "The Group '{$groupTitle}' has been saved."); + $this->waitForText('crm-notification-container', "The Group '{$groupTitle}' has been saved."); - $this->openCiviPage("admin/options/acl_role", "group=acl_role&action=add&reset=1", "_qf_Options_cancel-bottom"); + $this->openCiviPage("admin/options/acl_role", "action=add&reset=1", "_qf_Options_cancel-bottom"); $label = "TestAclRole" . substr(sha1(rand()), 0, 4); $this->type("label", $label); $this->click("_qf_Options_next-bottom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->assertElementContainsText('crm-notification-container', "The Acl Role '{$label}' has been saved"); + + $this->waitForText('crm-notification-container', "The ACL Role '{$label}' has been saved."); $this->openCiviPage("acl/entityrole", "action=add&reset=1"); $this->select("acl_role_id", "label=" . $label); $this->select("entity_id", "label={$groupTitle}"); - $this->click("_qf_EntityRole_next-botttom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); + $this->clickLink("_qf_EntityRole_next-botttom"); $this->openCiviPage("acl", "action=add&reset=1"); $this->click("group_id"); @@ -66,8 +69,7 @@ class WebTest_ACL_AssignUsersToRolesTest extends CiviSeleniumTestCase { $this->select("operation", "label=View"); $this->select("entity_id", "label={$label}"); $this->type("name", "describe {$label}"); - $this->click("_qf_ACL_next-bottom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); + $this->clickLink("_qf_ACL_next-bottom"); } }