[ENHANCEMENT] [MER-5850] Add parameterized OAuth login Playwright tests - #6764
Open
manelli wants to merge 4 commits into
Open
[ENHANCEMENT] [MER-5850] Add parameterized OAuth login Playwright tests#6764manelli wants to merge 4 commits into
manelli wants to merge 4 commits into
Conversation
manelli
marked this pull request as ready for review
August 6, 2026 21:30
Contributor
Contributor
AI Review —No issues found |
nicocirio
self-requested a review
August 20, 2026 13:55
nicocirio
reviewed
Aug 20, 2026
Collaborator
Author
|
Thanks @nicocirio for the reviews! I implemented them in 6f991fe |
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.

Summary
Adds fully parameterized Playwright smoke tests for Google OAuth login across Torus account classes and deployment environments.
The suite covers:
/users/log_in/authors/log_inImplementation
learnerandauthor.PLAYWRIGHT_PARAMETER_CONFIG_URL:npm run test-oauth-logins, which selects the suite using the@oauthtag.Full configuration documentation is in
assets/automation/README.md.Runtime configuration
Do not commit real credentials or the runtime YAML.
Prerequisites
Each target environment requires:
Install the automation dependencies once from the repository root:
cd assets/automation npm install npx playwright install --with-deps chromeTesting locally
Configure a Google OAuth web client with these authorized redirect URIs:
Start or restart Torus with
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETset.Log in manually once with each dedicated account:
http://localhost/users/log_inhttp://localhost/authors/log_inThis creates and links the corresponding Torus learner and author records.
Save the runtime configuration as
/tmp/oauth-local.yaml, set the base URL tohttp://localhost, and replace all credential placeholders.Serve the configuration from a separate terminal:
From
assets/automation, run:Testing Tokamak
Use dedicated Google accounts already linked to the correct account classes in Tokamak.
Set the YAML target to:
Then run from
assets/automation:Testing Stellarator
Use dedicated Google accounts already linked to the correct account classes in Stellarator.
Set the YAML target to:
Then run from
assets/automation:The same procedure can target another staging or production deployment by changing
target.base_urland supplying dedicated accounts linked in that environment. A real Chrome window opens and runs both account-class flows.Verification
See: https://eliterate.atlassian.net/browse/MER-5850