From 1ff874e37356cac0b1b87ede96e068d7c147636f Mon Sep 17 00:00:00 2001 From: vinit717 Date: Mon, 14 Oct 2024 23:44:04 +0530 Subject: [PATCH 1/3] chore: fix test workflow file --- .github/workflows/tests.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 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 From 4373299056ba6f20cc150fb9bcf76f8dec823b63 Mon Sep 17 00:00:00 2001 From: vinit717 Date: Tue, 15 Oct 2024 01:05:41 +0530 Subject: [PATCH 2/3] chore: add comment for verify --- __tests__/extension-requests/extension-requests.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/extension-requests/extension-requests.test.js b/__tests__/extension-requests/extension-requests.test.js index e09a893b..208d88ec 100644 --- a/__tests__/extension-requests/extension-requests.test.js +++ b/__tests__/extension-requests/extension-requests.test.js @@ -636,8 +636,8 @@ describe('Tests the Extension Requests Screen', () => { await page.waitForTimeout(1650); const extensionCardsAfter = await page.$$('.extension-card'); - const cardCount = extensionCardsAfter.length; + console.log('Extension cards count', cardCount); expect(cardCount === 3 || cardCount === 7).toBe(true); }); From f810e8d7ebb2ed3c1163eac7d31ce314afc5ddc6 Mon Sep 17 00:00:00 2001 From: vinit717 Date: Tue, 15 Oct 2024 01:14:23 +0530 Subject: [PATCH 3/3] chore: fix failing test --- __tests__/extension-requests/extension-requests.test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/__tests__/extension-requests/extension-requests.test.js b/__tests__/extension-requests/extension-requests.test.js index 208d88ec..b9ffc5a2 100644 --- a/__tests__/extension-requests/extension-requests.test.js +++ b/__tests__/extension-requests/extension-requests.test.js @@ -633,11 +633,10 @@ 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; - console.log('Extension cards count', cardCount); expect(cardCount === 3 || cardCount === 7).toBe(true); });