metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

test: Complete missing step for add a contact to the address book in existing E2E test

Open benjisclowder opened this issue 1 year ago • 2 comments

Description

Adding missing "add contact" step to this E2E test test/e2e/tests/settings/address-book.spec.js to fully cover the manual scenario here.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/metamask-extension/issues/27369

Manual testing steps

  1. Run yarn test:e2e:single test/e2e/tests/settings/address-book.spec.js --browser=chrome --leave-running
  2. Test should pass with no failure
  3. The second test run in the test suite is the one added in this PR

Note: I have used the class instead of specific selectors (text+tag) for the element as the latter (Add contact/button) would not be located when running the test and the test would consistently fail.

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.

benjisclowder avatar Oct 18 '24 13:10 benjisclowder

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.

github-actions[bot] avatar Oct 18 '24 13:10 github-actions[bot]

Builds ready [dfc8f17]
Page Load Metrics (1795 ± 111 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint157025981800241115
domContentLoaded152525301759232111
load156925411795231111
domInteractive16199544522
backgroundConnect8163403818
firstReactRender452851006029
getState584202110
initialActions00000
loadScripts107021211308238114
setupStore1093392813
uiStartup170927522029265127
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

metamaskbot avatar Oct 18 '24 15:10 metamaskbot

@benjisclowder, code looks good now. Just fix the lint errors and get the latest develop and will approve the PR.

hjetpoluru avatar Oct 24 '24 00:10 hjetpoluru

Hi @benjisclowder , could you remove the added submodule as it's not necessary? thanks ! Screenshot 2024-10-24 at 10 28 31

chloeYue avatar Oct 24 '24 08:10 chloeYue

Builds ready [81a2c2c]
Page Load Metrics (2123 ± 86 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint32026082022425204
domContentLoaded17912409207816680
load18642588212317986
domInteractive308751178
backgroundConnect8196504220
firstReactRender642221143517
getState585252512
initialActions01000
loadScripts13081814153513967
setupStore12103332612
uiStartup204028652392214103
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

metamaskbot avatar Oct 24 '24 14:10 metamaskbot

Hi, @hjetpoluru and @chloeYue! Thanks a lot for the feedback and suggestions. All changes have been made and PR is ready for approval.

benjisclowder avatar Oct 24 '24 14:10 benjisclowder