Skip to content

fix(discordsh-e2e): open sign-in modal before asserting OAuth button class#7976

Merged
h0lybyte merged 1 commit intodevfrom
trunk/discordsh-e2e-fix-1773525490
Mar 14, 2026
Merged

fix(discordsh-e2e): open sign-in modal before asserting OAuth button class#7976
h0lybyte merged 1 commit intodevfrom
trunk/discordsh-e2e-fix-1773525490

Conversation

@h0lybyte
Copy link
Member

Summary

  • Fix failing OAuth buttons use nb-oauth-btn class e2e test
  • The nb-oauth-discord button lives inside a conditionally-rendered React modal (client:only="react") — it doesn't exist in the DOM until the user opens it
  • Previous test checked page.content() after domcontentloaded, which only has the SSR shell (no React output)
  • Now waits for React hydration, clicks the "Sign in" button to open the modal, then asserts the Discord OAuth button has the correct CSS classes

Test plan

  • Verify e2e:docker discordsh-e2e passes all 44 tests (43 previously passing + this fix)

…class

The nb-oauth-discord button is inside a conditionally-rendered React
modal (client:only="react"). The previous test checked page.content()
after domcontentloaded, but the modal DOM doesn't exist until the user
opens it. Now waits for React hydration, clicks the Sign in button to
open the modal, then asserts the Discord OAuth button has the correct
CSS classes.
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 8ff5c70 into dev Mar 14, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/discordsh-e2e-fix-1773525490 branch March 14, 2026 22:41
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.

1 participant