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 4f7ae633..48b85a16 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); });