Skip to content

test: [POM] Migrate add token e2e tests to TS and Page Object Model #28658

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

Merged
merged 4 commits into from
Nov 27, 2024

Conversation

chloeYue
Copy link
Contributor

@chloeYue chloeYue commented Nov 22, 2024

Description

  • Fix flaky test add hide token, the reason of flakiness is a race condition that we assert number of listed tokens before all tokens are displayed
  • Migrate add token e2e tests to TS and Page Object Model

Open in GitHub Codespaces

Related issues

Fixes: #28681 #28664

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 added the team-extension-platform Extension Platform team label Nov 22, 2024
@chloeYue chloeYue self-assigned this Nov 22, 2024
@chloeYue chloeYue requested a review from a team as a code owner November 22, 2024 17:37
@chloeYue chloeYue marked this pull request as draft November 22, 2024 17:37
Copy link
Contributor

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.

@metamaskbot
Copy link
Collaborator

Builds ready [73eb1fc]
Page Load Metrics (2167 ± 148 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint40825192049454218
domContentLoaded167129222128302145
load167529302167309148
domInteractive2897462110
backgroundConnect998522612
firstReactRender912971395627
getState588212210
initialActions01000
loadScripts116922811564265127
setupStore67313147
uiStartup192632032436324156
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@chloeYue chloeYue changed the title test: migrate test test: [POM] Migrate create btc account e2e tests to TS and Page Object Model Nov 25, 2024
@chloeYue chloeYue changed the title test: [POM] Migrate create btc account e2e tests to TS and Page Object Model test: [POM] Migrate add token e2e tests to TS and Page Object Model Nov 25, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [6d122bc]
Page Load Metrics (1880 ± 71 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16112123188014067
domContentLoaded15912038183812861
load16132210188014971
domInteractive2498432110
backgroundConnect10177433818
firstReactRender1895462613
getState692242411
initialActions01000
loadScripts10851550134911957
setupStore686172010
uiStartup178827222119223107
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [07de661]
Page Load Metrics (1623 ± 75 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14692222162915675
domContentLoaded14592127159714168
load14692222162315675
domInteractive197032157
backgroundConnect893282210
firstReactRender1578322110
getState45215178
initialActions01000
loadScripts10761612117911555
setupStore66516188
uiStartup161826771835242116
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 26, 2024 09:00
seaona
seaona previously approved these changes Nov 26, 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.

Nice investigation and fix with POM 🔥

@metamaskbot
Copy link
Collaborator

Builds ready [577f106]
Page Load Metrics (1747 ± 88 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23722381616485233
domContentLoaded14572219171618890
load15122241174718488
domInteractive21206484321
backgroundConnect86634178
firstReactRender16104332412
getState671212010
initialActions00000
loadScripts10791797127815072
setupStore65618178
uiStartup167024961966208100
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@chloeYue chloeYue requested a review from seaona November 27, 2024 09:06
@chloeYue chloeYue added this pull request to the merge queue Nov 27, 2024
Merged via the queue into develop with commit b6c750d Nov 27, 2024
75 checks passed
@chloeYue chloeYue deleted the home-asset-page branch November 27, 2024 12:29
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-extension-platform Extension Platform team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[POM] Create base classes add tokens e2e tests
4 participants