Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
chore: add test retry (#354)
Browse files Browse the repository at this point in the history
add test retry
  • Loading branch information
Lykhoyda committed Feb 1, 2024
1 parent eb95e0c commit 02caf58
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,14 @@ jobs:
key: metamask-extension
- name: Install
run: yarn --immutable
- name: Tests
run: 'yarn run test:${{matrix.automation}}:${{ matrix.mm-version }} --timeout 50000'

- name: Run tests with retry
uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
command: 'yarn run test:${{matrix.automation}}:${{ matrix.mm-version }} --timeout 50000'

- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down Expand Up @@ -181,8 +187,13 @@ jobs:

- name: Install
run: yarn --immutable
- name: Tests UserData
run: 'yarn run test:${{matrix.automation}}:userData --timeout 240000'

- name: Run Tests UserData with retry
uses: nick-fields/retry@v2
with:
timeout_minutes: 24
max_attempts: 3
command: 'yarn run test:${{matrix.automation}}:userData --timeout 240000'

maybe-release:
name: release
Expand Down
4 changes: 3 additions & 1 deletion src/setup/setupActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export async function acceptTheRisks(
metaMaskPage: DappeteerPage
): Promise<void> {
await waitForOverlay(metaMaskPage);
await metaMaskPage.waitForTimeout(300);
await metaMaskPage.waitForSelector('[data-testid="experimental-area"]', {
visible: true,
});
await clickOnElement(metaMaskPage, "I accept the risks");
}

Expand Down

0 comments on commit 02caf58

Please sign in to comment.