-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Fix "Dapp viewed Event @no-mmi is sent when refreshing da..." flaky tests #26899
Labels
flaky tests
Sev2-normal
Normal severity; minor loss of service or inconvenience.
team-extension-platform
type-bug
Comments
hjetpoluru
added
type-bug
Sev2-normal
Normal severity; minor loss of service or inconvenience.
team-extension-platform
flaky tests
labels
Sep 4, 2024
7 tasks
this test is still flaky. |
This was referenced Sep 27, 2024
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 4, 2024
…test (#27381) <!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** In this test, there are two different requests for the "Dapp Viewed" event: one with the property is_first_visit: true and the other with is_first_visit: false. However, the current mock setup does not differentiate between these two requests. To ensure that both "Dapp Viewed" event requests are properly handled, we need to create two separate mocks has been created. Special thanks to @seaona for her thorough analysis and understanding of this tricky flaky test. Her insights and proposed solution were instrumental in resolving this issue. All credit for identifying and addressing this problem goes to her. <!-- Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions: 1. What is the reason for the change? 2. What is the improvement/solution? --> [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27381?quickstart=1) ## **Related issues** Fixes: #24655 #24651 #26899 ## **Manual testing steps** Run the dapp viewed spec locally or in codespace using below commands against chrome browser: yarn yarn build:test:webpack ENABLE_MV3=false yarn test:e2e:single test/e2e/tests/metrics/dapp-viewed.spec.js --browser=chrome ## **Pre-merge author checklist** - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **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.
Fix in PR 27381 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
flaky tests
Sev2-normal
Normal severity; minor loss of service or inconvenience.
team-extension-platform
type-bug
CI link for the flaky test reported on Sept 26
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/102230/workflows/464f7ef8-7df3-4ed9-80c9-776e71b1297f/jobs/3808841/tests
CI link for the flaky test reported on Sept 24
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/102034/workflows/87cdde9f-c174-4463-9c1f-d7ac54603e67/jobs/3800442/tests
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/98663/workflows/e99246eb-772f-4339-aacb-b3ebe039e54f/jobs/3672023/tests
Test scenario - Dapp viewed Event @no-mmi is sent when refreshing dapp with one account connected
Build - webpack
Browser - Chrome
Test path - test/e2e/tests/metrics/dapp-viewed.spec.js
The text was updated successfully, but these errors were encountered: