File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,20 @@ jobs:
61
61
node-version-file : ' .nvmrc'
62
62
cache : ' npm'
63
63
64
- - name : Install dependencies for web
65
- run : npm install --filter=@tech-companies-portugal/web
64
+ - name : Cache Playwright browsers
65
+ id : playwright-cache
66
+ uses : actions/cache@v3
67
+ with :
68
+ path : ~/.cache/ms-playwright
69
+ key : ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
66
70
67
71
- name : Install Playwright browsers
72
+ if : steps.playwright-cache.outputs.cache-hit != 'true'
68
73
run : npx playwright install chromium --with-deps
69
74
75
+ - name : Install dependencies for web
76
+ run : npm install --filter=@tech-companies-portugal/web
77
+
70
78
- name : Run Playwright tests
71
79
run : npm run test:e2e:web
72
80
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ test.describe("Homepage e2e tests", () => {
17
17
// check if companies list is visible
18
18
await expect ( page . getByTestId ( "companies-list" ) ) . toBeVisible ( ) ;
19
19
20
- // check if there are more than 1 company items
20
+ // check if there are companies in the list
21
21
const companyItems = await page . getByTestId ( "company-item" ) . all ( ) ;
22
22
expect ( companyItems . length ) . toBeGreaterThan ( 1 ) ;
23
23
You can’t perform that action at this time.
0 commit comments