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: 1453 refactor modal pages batch 3 #8909

Merged
merged 24 commits into from
Apr 25, 2024

Conversation

SamuelSalas
Copy link
Member

@SamuelSalas SamuelSalas commented Mar 12, 2024

Description

We are aiming to refactor the page objects in the modal folder so that they strictly follow the page object model pattern. This would aide in providing more readable and help standardize the way we create our tests. Because of the amount of files inside of the modal folder, the scope was divided into a batch of 4.

Files inside the scope for this batch:

  • NetworkEducationModal.js
  • NetworkListModal.js
  • OnboardingWizardModal.js
  • ProtectYourWalletModal.js
  • RequestPaymentModal.js

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Regression test run: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/a21ca4f5-9020-47e1-9b2b-97b49d4b5ddd

Before

After

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.

@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.26%. Comparing base (2c0d6ce) to head (671be38).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8909   +/-   ##
=======================================
  Coverage   43.26%   43.26%           
=======================================
  Files        1271     1271           
  Lines       30921    30921           
  Branches     3092     3092           
=======================================
  Hits        13379    13379           
  Misses      16769    16769           
  Partials      773      773           

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

e2e/utils/Matchers.js Outdated Show resolved Hide resolved
e2e/utils/Matchers.js Show resolved Hide resolved
e2e/pages/modals/NetworkListModal.js Outdated Show resolved Hide resolved
@metamaskbot metamaskbot added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) and removed in-progress labels Apr 9, 2024
@cortisiko
Copy link
Member

@SamuelSalas I left a follow up comment. Also there are merge conflicts on your PR. Will move it back to dev in progress

@metamaskbot metamaskbot added in-progress and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Apr 17, 2024
e2e/pages/modals/NetworkListModal.js Outdated Show resolved Hide resolved
e2e/pages/modals/NetworkListModal.js Outdated Show resolved Hide resolved
e2e/pages/modals/NetworkListModal.js Outdated Show resolved Hide resolved
@metamaskbot metamaskbot added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) and removed in-progress labels Apr 18, 2024
cortisiko
cortisiko previously approved these changes Apr 18, 2024
Copy link
Member

@cortisiko cortisiko left a comment

Choose a reason for hiding this comment

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

✅ ✅ ✅

cortisiko
cortisiko previously approved these changes Apr 24, 2024
@SamuelSalas
Copy link
Member Author

Copy link

sonarcloud bot commented Apr 25, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@SamuelSalas SamuelSalas merged commit 2c22d05 into main Apr 25, 2024
31 checks passed
@SamuelSalas SamuelSalas deleted the test/1453-refactor-modal-pages-batch-3 branch April 25, 2024 14:47
@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Apr 25, 2024
@metamaskbot metamaskbot added the release-7.22.0 Issue or pull request that will be included in release 7.22.0 label Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.22.0 Issue or pull request that will be included in release 7.22.0 team-mobile-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

5 participants