Skip to content
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 reveal account srp e2e tests to use Page Object Model #28354

Merged
merged 6 commits into from
Nov 11, 2024

Conversation

chloeYue
Copy link
Contributor

@chloeYue chloeYue commented Nov 7, 2024

Description

  • Migrate e2e tests test/e2e/tests/settings/settings-security-reveal-srp.spec.js to TS and Page Object Model, to reduce flakiness.
  • Create page classe for privacy and security settings page
  • Put all settings related page classes in folder test/e2e/page-objects/pages/settings/
  • Deprecate/remove old functions in helper.js

Open in GitHub Codespaces

Related issues

Fixes: #28357

Manual testing steps

Check code readability, make sure tests pass.

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@chloeYue chloeYue self-assigned this Nov 7, 2024
@chloeYue chloeYue requested a review from a team as a code owner November 7, 2024 13:38
@chloeYue chloeYue marked this pull request as draft November 7, 2024 13:38
Copy link
Contributor

github-actions bot commented Nov 7, 2024

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.

@chloeYue chloeYue changed the title test: migrate reveal srp tests test: [POM] Migrate reveal account srp e2e tests to use Page Object Model Nov 7, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [52d3c80]
Page Load Metrics (1859 ± 114 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint42125321807389187
domContentLoaded151425231825228110
load155825761859238114
domInteractive169747209
backgroundConnect8108342713
firstReactRender472821016029
getState477252411
initialActions01000
loadScripts10882008135320599
setupStore1279352412
uiStartup186128732118294141
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@chloeYue chloeYue marked this pull request as ready for review November 7, 2024 14:48
hjetpoluru
hjetpoluru previously approved these changes Nov 7, 2024
Copy link
Contributor

@hjetpoluru hjetpoluru left a comment

Choose a reason for hiding this comment

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

LGTM

@metamaskbot
Copy link
Collaborator

Builds ready [5276590]
Page Load Metrics (2020 ± 106 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint43326211943409196
domContentLoaded17392556198420699
load175026182020220106
domInteractive29175593316
backgroundConnect796352612
firstReactRender552751164923
getState56513168
initialActions01000
loadScripts12331969147418689
setupStore116126189
uiStartup196129102270251121
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

seaona
seaona previously approved these changes Nov 8, 2024
Copy link
Contributor

@seaona seaona left a comment

Choose a reason for hiding this comment

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

LGTM! Nice job @chloeYue 🙌

hjetpoluru
hjetpoluru previously approved these changes Nov 8, 2024
@chloeYue chloeYue dismissed stale reviews from hjetpoluru and seaona via f62b9dc November 8, 2024 17:11
@metamaskbot
Copy link
Collaborator

Builds ready [86ddded]
Page Load Metrics (2109 ± 142 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint36224121826553266
domContentLoaded172331242079293141
load177531712109295142
domInteractive15269676029
backgroundConnect877352311
firstReactRender531901203316
getState5481194
initialActions01000
loadScripts123625231540280135
setupStore75619189
uiStartup198534422346306147
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@chloeYue chloeYue added this pull request to the merge queue Nov 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 11, 2024
@chloeYue chloeYue added this pull request to the merge queue Nov 11, 2024
Merged via the queue into develop with commit 68ba635 Nov 11, 2024
76 checks passed
@chloeYue chloeYue deleted the migrate-srp-tests branch November 11, 2024 22:33
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2024
@metamaskbot metamaskbot added the release-12.8.0 Issue or pull request that will be included in release 12.8.0 label Nov 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.8.0 Issue or pull request that will be included in release 12.8.0 team-extension-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[POM] Migrate reveal account srp tests to Page Object Model to reduce flakiness
4 participants