Skip to content

Commit fa3eb23

Browse files
authored
fix failing tests over Github action (#889)
* chore: fix test workflow file * chore: add comment for verify * chore: fix failing test
1 parent 8fd1621 commit fa3eb23

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ on:
44
branches: [main, develop]
55
push:
66
branches: [main, develop]
7+
78
jobs:
8-
Lint-Check:
9+
test:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: actions/checkout@v2
12-
- run: yarn
13-
- run: yarn test
12+
- uses: actions/checkout@v2
13+
14+
- name: Install system dependencies
15+
run: |
16+
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
17+
- name: Install project dependencies
18+
run: yarn install
19+
20+
- name: Run tests
21+
run: yarn test

__tests__/extension-requests/extension-requests.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,9 @@ describe('Tests the Extension Requests Screen', () => {
633633
break;
634634
}
635635
}
636-
await page.waitForTimeout(1650);
636+
await page.waitForTimeout(2000);
637637

638638
const extensionCardsAfter = await page.$$('.extension-card');
639-
640639
const cardCount = extensionCardsAfter.length;
641640
expect(cardCount === 3 || cardCount === 7).toBe(true);
642641
});

0 commit comments

Comments
 (0)