File tree 3 files changed +28
-21
lines changed 3 files changed +28
-21
lines changed Original file line number Diff line number Diff line change 4
4
name : Tests
5
5
6
6
on :
7
- push :
8
- branches : [ " main" ]
9
- pull_request :
10
- branches : [ " main" ]
7
+ push :
8
+ branches : [' main' ]
9
+ pull_request :
10
+ branches : [' main' ]
11
11
12
12
jobs :
13
- tests :
14
- strategy :
15
- matrix :
16
- os : [ubuntu-latest, windows-latest, macos-latest]
17
- node-version : [20.x]
18
- runs-on : ${{ matrix.os }}
19
- steps :
20
- - uses : actions/checkout@v3
21
- - name : Use Node.js ${{ matrix.node-version }}
22
- uses : actions/setup-node@v3
23
- with :
24
- node-version : ${{ matrix.node-version }}
25
- cache : ' npm'
26
- - run : npm ci
27
- - run : npm run build
28
- - run : npx playwright install
29
- - run : npm test
13
+ tests :
14
+ strategy :
15
+ matrix :
16
+ os : [ubuntu-latest, windows-latest, macos-latest]
17
+ node-version : [20.x]
18
+ runs-on : ${{ matrix.os }}
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+ - name : Use Node.js ${{ matrix.node-version }}
22
+ uses : actions/setup-node@v3
23
+ with :
24
+ node-version : ${{ matrix.node-version }}
25
+ cache : ' npm'
26
+ - run : npm ci
27
+ - run : npm run build
28
+ - run : npx playwright install
29
+ - run : npm test
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const config: PlaywrightTestConfig = {
5
5
command : 'npm run build && npm run preview' ,
6
6
port : 4173 ,
7
7
} ,
8
+
8
9
testDir : 'tests' ,
9
10
testMatch : / ( .+ \. ) ? ( t e s t | s p e c ) \. [ j t ] s / ,
10
11
} ;
Original file line number Diff line number Diff line change 1
1
import { expect , test } from '@playwright/test' ;
2
2
3
+ test . describe . configure ( { mode : 'parallel' } ) ;
4
+
3
5
test ( 'tags work' , async ( { page } ) => {
6
+ test . setTimeout ( 0 ) ;
4
7
await page . goto ( 'http://localhost:4173/playground/tags' ) ;
5
8
6
9
expect ( await page . content ( ) ) . toContain ( 'Addition' ) ;
@@ -9,6 +12,7 @@ test('tags work', async ({ page }) => {
9
12
} ) ;
10
13
11
14
test ( 'tags work with types' , async ( { page } ) => {
15
+ test . setTimeout ( 0 ) ;
12
16
await page . goto ( 'http://localhost:4173/playground/tags' ) ;
13
17
14
18
expect ( await page . content ( ) ) . toContain ( 'Types' ) ;
@@ -18,6 +22,7 @@ test('tags work with types', async ({ page }) => {
18
22
} ) ;
19
23
20
24
test ( 'partials work' , async ( { page } ) => {
25
+ test . setTimeout ( 0 ) ;
21
26
await page . goto ( 'http://localhost:4173/playground/partials' ) ;
22
27
23
28
expect ( await page . content ( ) ) . toContain ( 'I am a partial.' ) ;
@@ -26,6 +31,7 @@ test('partials work', async ({ page }) => {
26
31
} ) ;
27
32
28
33
test ( 'named layouts work' , async ( { page } ) => {
34
+ test . setTimeout ( 0 ) ;
29
35
await page . goto ( 'http://localhost:4173/playground/layout' ) ;
30
36
31
37
expect ( await page . content ( ) ) . toContain ( 'I am on an alternative layout' ) ;
You can’t perform that action at this time.
0 commit comments