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

test(cypress): Make page list trash test retriable #883

Closed
wants to merge 1 commit into from

Conversation

max-nextcloud
Copy link
Collaborator

Only insert the attachment once.

When opening the page for the first time
it is in edit mode and the attachment can be inserted.

On test retries the attachment was already there
and the page opened in view mode.
This led to test failures when attempting to switch to view mode.

@max-nextcloud
Copy link
Collaborator Author

I'm not sure this will actually make the test more robust. If the test already fails in the new before block it will not be retried either. But then at least the actual failure will be logged rather than the failed retry attempts.

@max-nextcloud max-nextcloud requested a review from mejo- September 14, 2023 12:19
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, only one comment on the added Cypress command that doesn't seem to get used anywhere.

cypress/support/commands.js Outdated Show resolved Hide resolved
@mejo- mejo- force-pushed the test/retryable-page-list-trash-test branch from cfcf8d2 to 34d5de7 Compare September 21, 2023 12:58
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently the page list trash test reliably fails now. So seems like it got worse 😆

Only insert the attachment once.

When opening the page for the first time
it is in edit mode and the attachment can be inserted.

On test retries the attachment was already there
and the page opened in view mode.
This led to test failures when attempting to switch to view mode.

Signed-off-by: Max <max@nextcloud.com>
@mejo- mejo- force-pushed the test/retryable-page-list-trash-test branch from 34d5de7 to 68ea4f3 Compare October 16, 2023 20:48
@mejo-
Copy link
Member

mejo- commented Nov 9, 2023

@max-nextcloud do you want to follow-up on this one or shall we close it for now?

@max-nextcloud
Copy link
Collaborator Author

I can just open a new one based on the current cypress tests.

@mejo- mejo- deleted the test/retryable-page-list-trash-test branch November 20, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants