diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-09-27 08:45:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 08:45:48 +0200 |
commit | ec349fc4c1ba874423da189c16e5e37133f4ca84 (patch) | |
tree | 4906e0960a310ad7b8efeb1de8f98645653f4ba7 /tests | |
parent | 0afc3d597f2570048f23155af54ff63e595210f1 (diff) | |
parent | 33b67401234b8240d0b837e810a1267593155342 (diff) | |
download | nextcloud-server-ec349fc4c1ba874423da189c16e5e37133f4ca84.tar.gz nextcloud-server-ec349fc4c1ba874423da189c16e5e37133f4ca84.zip |
Merge pull request #33791 from nextcloud/backport/stable24-wait-for-the-new-user-form-to-be-visible-in-acceptance-tests
[stable24] Wait for the new user form to be visible in acceptance tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/acceptance/features/bootstrap/UsersSettingsContext.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/acceptance/features/bootstrap/UsersSettingsContext.php b/tests/acceptance/features/bootstrap/UsersSettingsContext.php index ce035647104..ff440119e34 100644 --- a/tests/acceptance/features/bootstrap/UsersSettingsContext.php +++ b/tests/acceptance/features/bootstrap/UsersSettingsContext.php @@ -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"); + } } /** |