-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
test: [POM] Migrate vault decryption e2e tests to TS and Page Object Model #28419
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [c1e6432]
Page Load Metrics (1908 ± 95 ms)
Bundle size diffs
|
Builds ready [b18fee1]
Page Load Metrics (2138 ± 186 ms)
Bundle size diffs
|
Builds ready [1fc9eb9]
Page Load Metrics (1672 ± 50 ms)
Bundle size diffs
|
LGTM ! |
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.
Overall looks good 🔥 awesome work @chloeYue 🙌
I just added 2 small comments, in case you want to take them, or feel free to leave them too
Co-authored-by: seaona <[email protected]>
Builds ready [9eeaaba]
Page Load Metrics (2328 ± 538 ms)
Bundle size diffs
|
this.driver = driver; | ||
} | ||
|
||
async check_pageIsLoaded(): Promise<void> { |
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 job
// we don't need to use navigate since MM will automatically open a new window in prod build | ||
await driver.waitUntilXWindowHandles(2); | ||
|
||
// we cannot use the customized driver functionsas there is no socket for window communications in prod builds |
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.
there is minor typo now we have approvals we could correct later. Able to understand too.
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.
Looks like the PR is merged..
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 this PR is merged, but i will open another PR soon, i will address comments in the next PR
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.
Sure thanks @chloeYue
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.
await driver.waitUntilXWindowHandles(2); | ||
|
||
// we cannot use the customized driver functionsas there is no socket for window communications in prod builds | ||
const windowHandles = await driver.driver.getAllWindowHandles(); |
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.
Could we use the one provided by Selenium?
Description
test/e2e/vault-decryption-chrome.spec.js
to TS and Page Object Model, this test runs only on develop branch, by migrating to POM, we improve the maintainability.helper.js
Related issues
Fixes: #28431
Manual testing steps
Check code readability, make sure tests pass.
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist