Skip to content

updated e2e for account unpinning#22632

Merged
HowardBraham merged 3 commits intodevelopfrom
update-account-details-spec
Jan 23, 2024
Merged

updated e2e for account unpinning#22632
HowardBraham merged 3 commits intodevelopfrom
update-account-details-spec

Conversation

@NidhiKJha
Copy link
Copy Markdown
Member

This PR is to fix the test, so that when the user clicks on unpin the account. The account is unpinned properly.

Related issues

Fixes:

Manual testing steps

  1. All tests should pass for account-details.spec.js
  2. Run the test using yarn test:e2e:single test/e2e/tests/account-details.spec.js --browser chrome --leave-running

Screenshots/Recordings

Before

NA

After

NA

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@NidhiKJha NidhiKJha requested a review from a team as a code owner January 23, 2024 06:50
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Jan 23, 2024
Comment on lines +251 to +252
const exists = await driver.isElementPresent(pinnedIcon);
assert.equal(exists, false, 'Unpinned Account');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have you tried driver.waitForElementNotPresent()?

Copy link
Copy Markdown
Member Author

@NidhiKJha NidhiKJha Jan 23, 2024

Choose a reason for hiding this comment

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

Thanks @HowardBraham, really nice suggestion! Updated here 47b5271

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ac64a48) 68.12% compared to head (5231a7e) 68.12%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #22632   +/-   ##
========================================
  Coverage    68.12%   68.12%           
========================================
  Files         1087     1087           
  Lines        42653    42653           
  Branches     11349    11349           
========================================
  Hits         29056    29056           
  Misses       13597    13597           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [f563915]
Page Load Metrics (1228 ± 113 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint873041676833
domContentLoaded9225687536
load80816191228236113
domInteractive9225687536
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@HowardBraham HowardBraham merged commit 46fb4bb into develop Jan 23, 2024
@HowardBraham HowardBraham deleted the update-account-details-spec branch January 23, 2024 17:44
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2024
@metamaskbot metamaskbot added the release-11.10.0 Issue or pull request that will be included in release 11.10.0 label Jan 23, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [5231a7e]
Page Load Metrics (1291 ± 127 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint923401997938
domContentLoaded10229858239
load84717341291264127
domInteractive10229858239
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template release-11.10.0 Issue or pull request that will be included in release 11.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants