-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
chore: add saml signup test / improve signup e2e test #16849
Conversation
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (09/26/24)1 reviewer was added to this PR based on Keith Williams's automation. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
apps/web/modules/signup-view.tsx
Outdated
@@ -206,7 +206,7 @@ export default function Signup({ | |||
} | |||
}, [redirectUrl]); | |||
|
|||
const [COOKIE_CONSENT, setCOOKIE_CONSENT] = useState(false); | |||
const [COOKIE_CONSENT, setCOOKIE_CONSENT] = useState(false); // No need to be checked for user to proceed |
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 think this is the first time I've ever seen something named with this casing 😄
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.
Oh heeeel no 😆
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.
yeah lol, let me change it
E2E results are ready! |
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.
Nice one thanks for adding tests here - lets consider skiping the SAML tests if they are disabled on the instance
@hbjORbj the following test is being marked as flaky. We should fix before merging. cc @anikdhabal for any tips since you’ve being working on tests recently 1 flaky |
Yes, this is flaky right now due to a race condition. As we can see in the newly added tests, the form is immediately filled after navigating to the signup page, without waiting for the page to fully load or render. After the page finishes loading, it resets the form. To fix this, we need to wait for the page to load before filling out the form. In the old test, we wait for the text to be completely translated and visible on the page before filling out the form |
Wow, thanks @anikdhabal ! |
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.
Happy with this! Thanks for making them changes to the tests!
Ship it!
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)