Skip to content

fix: e2e login test - handle optional Continue with Email button#17146

Merged
charlesBochet merged 1 commit intomainfrom
fix/e2e-login-test-continue-with-email
Jan 14, 2026
Merged

fix: e2e login test - handle optional Continue with Email button#17146
charlesBochet merged 1 commit intomainfrom
fix/e2e-login-test-continue-with-email

Conversation

@FelixMalfait
Copy link
Copy Markdown
Member

Summary

The e2e login test was failing because it unconditionally tried to click 'Continue with Email' button, but this button doesn't exist when password is the only auth method.

Root Cause

In SignInUpWorkspaceScopeFormEffect.tsx, when a workspace only has password authentication (no Google/Microsoft/SSO), the effect automatically calls continueWithEmail() which skips the Init step and shows the email field directly.

Changes

  1. loginPage.ts: Added clickLoginWithEmailIfVisible() method that only clicks the button if it exists
  2. login.setup.ts:
    • Replaced clickLoginWithEmail() with clickLoginWithEmailIfVisible()
    • Updated regex from /Welcome to .+/ to /Welcome, .+/ to match the recent UI change

The SignInUpWorkspaceScopeFormEffect automatically skips the 'Continue with Email' step when password is the only auth method. The test now uses clickLoginWithEmailIfVisible() to handle both cases.

Also updated the welcome text regex from 'Welcome to' to 'Welcome,' to match the recent UI change.
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

@charlesBochet charlesBochet added this pull request to the merge queue Jan 14, 2026
@FelixMalfait
Copy link
Copy Markdown
Member Author

@charlesBochet I'm not sure if it will work, didn't test locally - wanted to use this PR to iterate, let's see if it's rejected from merge queue

@charlesBochet
Copy link
Copy Markdown
Member

let me run the e2e tests locally, should take 2mins

Merged via the queue into main with commit d95ff4e Jan 14, 2026
53 checks passed
@charlesBochet charlesBochet deleted the fix/e2e-login-test-continue-with-email branch January 14, 2026 12:13
@twenty-eng-sync
Copy link
Copy Markdown

Hey @FelixMalfait! After you've done the QA of your Pull Request, you can mark it as done here. Thank you!

1 similar comment
@twenty-eng-sync
Copy link
Copy Markdown

Hey @FelixMalfait! After you've done the QA of your Pull Request, you can mark it as done here. Thank you!

@charlesBochet
Copy link
Copy Markdown
Member

charlesBochet commented Jan 14, 2026

image

All good!

lucasbordeau pushed a commit to vasu1303/twenty that referenced this pull request Jan 21, 2026
…ntyhq#17146)

## Summary
The e2e login test was failing because it unconditionally tried to click
'Continue with Email' button, but this button doesn't exist when
password is the only auth method.

## Root Cause
In `SignInUpWorkspaceScopeFormEffect.tsx`, when a workspace only has
password authentication (no Google/Microsoft/SSO), the effect
automatically calls `continueWithEmail()` which skips the Init step and
shows the email field directly.

## Changes
1. **loginPage.ts**: Added `clickLoginWithEmailIfVisible()` method that
only clicks the button if it exists
2. **login.setup.ts**: 
- Replaced `clickLoginWithEmail()` with `clickLoginWithEmailIfVisible()`
- Updated regex from `/Welcome to .+/` to `/Welcome, .+/` to match the
recent UI change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants