Fix ReLogin in E2E due to missing locator#332
Merged
bilalbaig3101 merged 4 commits intomainfrom Jan 29, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a relogin failure in E2E tests where the email input field locator was missing after signout. The login page displays the previously logged-out user's email instead of an input field, preventing successful relogin.
Changes:
- Added logic to detect and click "Use another account" button when present on the login page
- Updated changelog with patch version bump
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/oidc-signin-tool/src/SignInAutomation.ts | Added conditional logic to handle "Use another account" flow before filling email field |
| change/@itwin-oidc-signin-tool-a08681dc-67af-481d-b940-f18e572a33cf.json | Added changelog entry for the relogin fix |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
change/@itwin-oidc-signin-tool-a08681dc-67af-481d-b940-f18e572a33cf.json
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…a33cf.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Collaborator
|
Thanks for the contribution. E2E tests are failing, however. Have you thoroughly tested this? |
Contributor
Author
@ben-polinsky re-ran the pipeline all test stages passed this time |
ben-polinsky
approved these changes
Jan 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes an issue in the E2E tests where relogin fails. On reLogin the function is unable to locate the email input field causing the test to fail.
Root Cause
After the signout the login page shows the already loged out user email instead of email input field which is something login funciton relies on


this is how the login page is showen when cache is cleared
this is how the login page on re-login and the email locator is missing
Solution
added a locator to click "Use another accout"