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

Fix "Navigation Signature - Different signature types ini..." flaky tests #26507

Closed
hjetpoluru opened this issue Aug 19, 2024 · 0 comments · Fixed by #26707
Closed

Fix "Navigation Signature - Different signature types ini..." flaky tests #26507

hjetpoluru opened this issue Aug 19, 2024 · 0 comments · Fixed by #26707
Assignees
Labels
flaky tests release-12.4.0 Issue or pull request that will be included in release 12.4.0 Sev2-normal Normal severity; minor loss of service or inconvenience. team-extension-platform type-bug

Comments

@hjetpoluru
Copy link
Contributor

@hjetpoluru hjetpoluru added type-bug Sev2-normal Normal severity; minor loss of service or inconvenience. team-extension-platform flaky tests labels Aug 19, 2024
@seaona seaona self-assigned this Aug 28, 2024
@seaona seaona added area-qa Relating to QA work (Quality Assurance) and removed area-qa Relating to QA work (Quality Assurance) labels Aug 28, 2024
seaona added a commit that referenced this issue Aug 29, 2024
…tiates and queues multiple signatures and confirms` (#26707)

<!--
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**

There is a known race-condition that can display the signature queue in
unexpected order, so the test had a delay to address that, but this
doesn't fix the issue in all occasions. In this PR we add a
deterministic condition, to ensure this doesn't happen: we wait until we
find an element for the given signature, before triggering a new one,
making sure signatures are ordered.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26707?quickstart=1)

## **Related issues**

Fixes: #26507

## **Manual testing steps**

1. Check ci

## **Screenshots/Recordings**
The artifacts and local run show how sometimes we start with the
signature page 2, instead of the1, making the subsequent steps to fail.


![image](https://github.com/user-attachments/assets/08cab78b-8805-4b69-b2ff-eb703d68e0a6)


## **Pre-merge author checklist**

- [x] 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
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] 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.
@metamaskbot metamaskbot added the release-12.5.0 Issue or pull request that will be included in release 12.5.0 label Aug 29, 2024
@gauthierpetetin gauthierpetetin added release-12.4.0 Issue or pull request that will be included in release 12.4.0 and removed release-12.5.0 Issue or pull request that will be included in release 12.5.0 labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky tests release-12.4.0 Issue or pull request that will be included in release 12.4.0 Sev2-normal Normal severity; minor loss of service or inconvenience. team-extension-platform type-bug
Projects
Archived in project
4 participants