diff options
author | Greta Doci <gretadoci@gmail.com> | 2019-07-29 10:25:46 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-08-29 10:19:03 +0200 |
commit | 1993984769e4187f0229c31c46c94257a3bcb9b7 (patch) | |
tree | 92f727cff5495a3295f3607504a93255bad0624b /tests/acceptance | |
parent | 53aa73d5d6845e94ee6c7d597cba54df7132e8ee (diff) | |
download | nextcloud-server-1993984769e4187f0229c31c46c94257a3bcb9b7.tar.gz nextcloud-server-1993984769e4187f0229c31c46c94257a3bcb9b7.zip |
Adjust acceptance tests to changes in link share menu behaviour
Now the link share menu is not automatically opened after a link share
is created, so waiting until it was opened failed in iShareTheLinkFor.
Note that the steps that interact with the link share menu take care
themselves of showing the menu if needed, so there is no need to
explicitly show it despite the change. Also, the waiting in
iShareTheLinkFor was introduced when the link share menu was changed
to automatically open after creating a link share, as that caused some
issues with the steps that opened the menu by themselves (fec8d12fc5).
Due to all this, now that the link share menu is again not automatically
opened the wait can be simply removed.
Signed-off-by: Greta Doci <gretadoci@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/features/bootstrap/FilesAppSharingContext.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php index 4ae8659d2d1..5353f05c110 100644 --- a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php +++ b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php @@ -249,14 +249,6 @@ class FilesAppSharingContext implements Context, ActorAwareInterface { $this->actor->find(FileListContext::shareActionForFile(FilesAppContext::currentSectionMainView(), $fileName), 10)->click(); $this->actor->find(self::shareLinkAddNewButton(), 5)->click(); - - // Wait until the menu was opened after the share creation to continue. - if (!WaitFor::elementToBeEventuallyShown( - $this->actor, - self::shareLinkMenu(), - $timeout = 5 * $this->actor->getFindTimeoutMultiplier())) { - PHPUnit_Framework_Assert::fail("The share link menu is not open yet after $timeout seconds"); - } } /** |