mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 16:39:59 -04:00
Merge pull request #33792 from nextcloud/backport/stable23-wait-for-the-new-user-form-to-be-visible-in-acceptance-tests
[stable23] Wait for the new user form to be visible in acceptance tests
This commit is contained in:
commit
2cd11e23cd
1 changed files with 6 additions and 2 deletions
|
|
@ -293,8 +293,12 @@ class UsersSettingsContext implements Context, ActorAwareInterface {
|
|||
* @Then I see that the new user form is shown
|
||||
*/
|
||||
public function iSeeThatTheNewUserFormIsShown() {
|
||||
Assert::assertTrue(
|
||||
$this->actor->find(self::newUserForm(), 10)->isVisible());
|
||||
if (!WaitFor::elementToBeEventuallyShown(
|
||||
$this->actor,
|
||||
self::newUserForm(),
|
||||
$timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
|
||||
Assert::fail("The new user form is not shown yet after $timeout seconds");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue