From fa3eb23357938bbeffa17662adaf2e3be48af54b Mon Sep 17 00:00:00 2001 From: Vinit khandal <111434418+vinit717@users.noreply.github.com> Date: Tue, 15 Oct 2024 01:26:10 +0530 Subject: [PATCH] fix failing tests over Github action (#889) * chore: fix test workflow file * chore: add comment for verify * chore: fix failing test --- .github/workflows/tests.yml | 16 ++++++++++++---- .../extension-requests.test.js | 3 +-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c1f81860..20a59420 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,10 +4,18 @@ on: branches: [main, develop] push: branches: [main, develop] + jobs: - Lint-Check: + test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: yarn - - run: yarn test + - uses: actions/checkout@v2 + + - name: Install system dependencies + run: | + echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns + - name: Install project dependencies + run: yarn install + + - name: Run tests + run: yarn test \ No newline at end of file diff --git a/__tests__/extension-requests/extension-requests.test.js b/__tests__/extension-requests/extension-requests.test.js index e09a893b..b9ffc5a2 100644 --- a/__tests__/extension-requests/extension-requests.test.js +++ b/__tests__/extension-requests/extension-requests.test.js @@ -633,10 +633,9 @@ describe('Tests the Extension Requests Screen', () => { break; } } - await page.waitForTimeout(1650); + await page.waitForTimeout(2000); const extensionCardsAfter = await page.$$('.extension-card'); - const cardCount = extensionCardsAfter.length; expect(cardCount === 3 || cardCount === 7).toBe(true); });