-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fix(web): fixed the flaky failing e2e tests after the changes we introduced with the async launch darkly #5575
Conversation
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for novu-design ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
cy.getByTestId('email').type('test-user-1@example.com'); | ||
cy.getByTestId('password').type('123qwe!@#'); | ||
cy.getByTestId('submit-btn').click(); | ||
|
||
cy.waitLoadFeatureFlags(); | ||
|
||
cy.waitForNetworkIdle(500); |
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.
Seems like there were some race conditions between the network and logic to mock the launch darkly requests, but not 100% sure.
cy.visit('/subscribers'); | ||
|
||
cy.waitLoadFeatureFlags(); | ||
cy.getByTestId('side-nav-subscribers-link').click(); |
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.
when using the cy.visit('/subscribers');
it looks like that application is hanging with the loader... @antonjoel82 we have to verify that when the token is expired and the user refreshes the page he will be navigated to the login page...
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.
Validated this manually, but as mentioned via slack and the original PR, we deemed it wasn't worthwhile to try to fix and fight with all these tests if we're going to delete them this week anyway.
I elected to skip in this PR (#5570)
cy.waitLoadFeatureFlags(() => { | ||
cy.visit('/auth/login'); | ||
}); |
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.
wait for LD mocked request to finish
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.
I don't think this is necessary because we don't block at /auth/login
anyway
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.
all the routes are wrapped in LD provider... but I'll check it, because I've added all the changes at the same time which helped
3137692
to
4c9a6f5
Compare
1a77a21
to
67f8a83
Compare
… with the async launch darkly
67f8a83
to
9e060b9
Compare
… with the async launch darkly (#5575)
What changed? Why was the change needed?
Fixed a couple of failing e2e tests in the Web application.
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer