-
Notifications
You must be signed in to change notification settings - Fork 167
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
[RHOAIENG-10454] mock cypress test flake: pipelines.cy.ts 'imports a new pipeline' #3036
[RHOAIENG-10454] mock cypress test flake: pipelines.cy.ts 'imports a new pipeline' #3036
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@jpuzz0 The test still ends on the table and not the details page, although now without waiting for the refresh, we don't see the new entry. When running locally, the browser navigates very briefly to the details page before redirecting back to the table. I suspect that this will continue to be a flakey test. Why is the final page not the details page? |
Every time I upload a pipeline via url or yaml in dev, I see the redirect happen, and I've run these 2 tests successfully locally ~10 times in a row, and I am seeing a redirect happen right after the upload for both, why the page lands on the table page is because we have a redirect setup to where if the newly created version associated with the version ID in the URL is not fetched, we move the user back to the list table. Since the expectation is that the page redirects and not that the new resource exists in the table, that new resource showing in the table shouldn't matter IMO as the user wouldn't see that until navigating back to the list page anyways. |
Agreed that we do not need to wait for the refresh to return. However the test should end on the details page if that's the next page to be asserted. It's still a race condition but now has a smaller chance to occur. |
@christianvogt should be updated now. Both of these tests land on the pipeline details page now and do not redirect afterwards. |
Ran locally to confirm tests pass and land now on the correct page. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, Gkrumbach07 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
RHOAIENG-10454
Description
The reloading of pipelines after uploading a new pipeline in the 2 tests updated here was causing the page to reload and in some cases that reload would impede on the redirect to the pipeline details page.
Test Impact
2 cypress tests were updated to address the issue
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main