Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for the link share menu to open in acceptance tests #12215

Merged

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Nov 2, 2018

In the acceptance tests the link share menu is automatically opened if needed before interacting with an item in the menu; if the menu is not open it is opened by clicking on its toggle.

However, since a recent change the link share menu is automatically opened by the regular UI after the link share is created. This causes that, sometimes, after the creation of a link share the acceptance tests check whether the menu is shown or not before the menu was automatically opened; as the menu is not open then the acceptance tests proceed to click on the toggle, but in the meantime the link share was created and the menu opened, so clicking on the toggle now closes it. As the menu is closed it is not possible to interact with its items and the test fails.

To prevent that now the acceptance tests wait for the link share menu to open after a link share is created before continuing with the other steps.

In the acceptance tests the link share menu is automatically opened if
needed before interacting with an item in the menu; if the menu is not
open it is opened by clicking on its toggle.

However, since a recent change the link share menu is automatically
opened by the regular UI after the link share is created. This causes
that, sometimes, after the creation of a link share the acceptance tests
check whether the menu is shown or not before the menu was automatically
opened; as the menu is not open then the acceptance tests proceed to
click on the toggle, but in the meantime the link share was created and
the menu opened, so clicking on the toggle now closes it. As the menu is
closed it is not possible to interact with its items and the test fails.

To prevent that now the acceptance tests wait for the link share menu to
open after a link share is created before continuing with the other
steps.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added the 3. to review Waiting for reviews label Nov 2, 2018
@danxuliu danxuliu added this to the Nextcloud 15 milestone Nov 2, 2018
@skjnldsv
Copy link
Member

skjnldsv commented Nov 2, 2018

However, since a recent change the link share menu is automatically opened by the regular UI after the link share is created.

Just so you know, it only open by default for the first link share created. If more than one, it will stay close :)

@danxuliu
Copy link
Member Author

danxuliu commented Nov 2, 2018

Just so you know, it only open by default for the first link share created. If more than one, it will stay close :)

I know, I know, thanks ;-) Something to keep in mind when the acceptance tests are extended to test more than one link share ;-)

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 2, 2018
@rullzer rullzer merged commit 927130e into master Nov 2, 2018
@rullzer rullzer deleted the wait-for-the-link-share-menu-to-open-in-acceptance-tests branch November 2, 2018 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants