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: Merge Import Token flow methods and ids in just one folder and files #11458

Merged
merged 10 commits into from
Sep 27, 2024

Conversation

SamuelSalas
Copy link
Contributor

@SamuelSalas SamuelSalas commented Sep 26, 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 remaining, this issue will focus on working on three files to refactor, as well as their respective testIDS.

While doing some analysis we see that the ImportTokens and AddCustomTokenView classes could be merge together. So the refactoring of the test and classes should be implemented on both files.

NOTE: You should move the AddCustomTokenView and ImportTokens files into a token-import subfolder within the wallet folder for better organization and clarity.

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Regressin test runs: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ca857ba6-cebc-4903-8918-3d7dc3a51a36

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.

@SamuelSalas SamuelSalas requested a review from a team as a code owner September 26, 2024 14:31
@SamuelSalas SamuelSalas self-assigned this Sep 26, 2024
@SamuelSalas SamuelSalas added Detox Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 26, 2024
Copy link
Contributor

github-actions bot commented Sep 26, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 2c92708
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/f1da08cb-588e-4155-a789-774a57e5e45a

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

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.

Small feedback, otherwise looks good

e2e/pages/ImportTokenFlow/ConfirmAddAsset.js Outdated Show resolved Hide resolved
@SamuelSalas SamuelSalas added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 26, 2024
Copy link
Contributor

github-actions bot commented Sep 26, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: be6ce96
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0326d1a5-200c-4902-aeaa-a9f33ce3a4c9

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@SamuelSalas SamuelSalas added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 26, 2024
Copy link
Contributor

github-actions bot commented Sep 26, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 6c64ae2
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/92cfd357-fd63-49c9-8b2e-293a920eac7e

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@cortisiko cortisiko self-requested a review September 26, 2024 17:49
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 Sep 26, 2024
Daniel-Cross
Daniel-Cross previously approved these changes Sep 27, 2024
Copy link
Contributor

@Daniel-Cross Daniel-Cross left a comment

Choose a reason for hiding this comment

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

Really nice use of constants for these testId's. I like it. One small fix to address but I'll approve.

app/components/UI/AssetList/index.js Outdated Show resolved Hide resolved
@SamuelSalas SamuelSalas dismissed stale reviews from Daniel-Cross and cortisiko via 384d76f September 27, 2024 13:07
@SamuelSalas SamuelSalas requested a review from a team as a code owner September 27, 2024 19:05
@SamuelSalas SamuelSalas added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 27, 2024
Copy link
Contributor

github-actions bot commented Sep 27, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 90d2dbd
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/2829c818-bdf2-4737-b6fb-f107be183e2e

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

@gambinish gambinish self-requested a review September 27, 2024 20:37
Copy link
Contributor

@gambinish gambinish left a comment

Choose a reason for hiding this comment

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

Code looks good. Approving, but when I was trying to run CI locally, I was getting a failed build:

** BUILD FAILED **


The following build commands failed:
	CompileC /Users/nicholasgambino/code/metamask-mobile/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNDateTimePicker.build/Objects-normal/x86_64/RNDateTimePickerShadowView.o /Users/nicholasgambino/code/metamask-mobile/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerShadowView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNDateTimePicker' from project 'Pods')
(1 failure)
error Command failed with exit code 65.

Steps I took:

git pull
yarn setup:e2e
yarn start:ios:e2e

Approving now bc this feels unrelated, and CI tests are passing in Github. Will reach out in Slack for help.

@SamuelSalas SamuelSalas added this pull request to the merge queue Sep 27, 2024
Merged via the queue into main with commit e2bcd67 Sep 27, 2024
42 checks passed
@SamuelSalas SamuelSalas deleted the test/1854-combine-importtokens-class-methods branch September 27, 2024 22:06
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2024
@gauthierpetetin gauthierpetetin added the release-7.33.0 Issue or pull request that will be included in release 7.33.0 label Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Detox release-7.33.0 Issue or pull request that will be included in release 7.33.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-mobile-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants