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

cleanup: wait statements - rely on promises instead #2660

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

max-nextcloud
Copy link
Collaborator

If a command returns a promise cypress will wait for that promise
before proceeding with the next commands.

Since 0162bb0 we return the promises from most commands.
The explicit calls to cy.intercept and cy.wait are not needed anymore.

  • Target version: master

@max-nextcloud
Copy link
Collaborator Author

/backport to stable24

@max-nextcloud
Copy link
Collaborator Author

max-nextcloud commented Jul 3, 2022

sigh... looks like opening a file in a share does not trigger the same propfind - probably because the sidebar is not shown or so.

update: worked around this by distinguishing between opening files and foldes as folders always trigger the propfind.

@max-nextcloud max-nextcloud force-pushed the cleanup/no-need-to-wait branch 4 times, most recently from 64d739d to aef08ac Compare July 4, 2022 06:23
@juliusknorr juliusknorr added tests If you write them we ♥ you 3. to review labels Jul 4, 2022
@juliusknorr
Copy link
Member

/rebase

If a command returns a promise cypress will wait for that promise
before proceeding with the next commands.

Since 0162bb0 we return the promises from most commands.
The explicit calls to cy.intercept and cy.wait are not needed anymore.

Signed-off-by: Max <max@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review tests If you write them we ♥ you
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants