Skip to content

Commit 577b083

Browse files
committed
Add some test fixes
1 parent 19132b7 commit 577b083

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ jobs:
8282
- run: pnpm build
8383
- run: pnpm test:ci
8484
- run: sh ./scripts/run_tests.sh unzip
85-
- run: pnpm fmt
8685
- run: pnpm dist_lint
8786

8887
- name: 'Run ${{ matrix.template }} ${{ matrix.test }}'

__tests__/text-classification.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test('text classification simple', async () => {
3939
page.getByRole('button', { name: 'Code' }).click()
4040
page.getByRole('button', { name: 'Download Zip' }).click()
4141
return page.waitForEvent('download')
42-
})
42+
}).click()
4343

4444
await downloadPromise.saveAs('./dist-tests/text-classification-simple.zip')
4545
})
@@ -96,7 +96,7 @@ test('text classification all', async () => {
9696
page.getByRole('button', { name: 'Code' }).click()
9797
page.getByRole('button', { name: 'Download Zip' }).click()
9898
return page.waitForEvent('download')
99-
})
99+
}).click()
100100
await downloadPromise.saveAs('./dist-tests/text-classification-all.zip')
101101
})
102102

@@ -122,7 +122,7 @@ test('text classification launch', async () => {
122122
page.getByRole('button', { name: 'Code' }).click()
123123
page.getByRole('button', { name: 'Download Zip' }).click()
124124
return page.waitForEvent('download')
125-
})
125+
}).click()
126126
await downloadPromise.saveAs('./dist-tests/text-classification-launch.zip')
127127
})
128128

@@ -149,6 +149,6 @@ test('text classification spawn', async () => {
149149
page.getByRole('button', { name: 'Code' }).click()
150150
page.getByRole('button', { name: 'Download Zip' }).click()
151151
return page.waitForEvent('download')
152-
})
152+
}).click()
153153
await downloadPromise.saveAs('./dist-tests/text-classification-spawn.zip')
154154
})

__tests__/vision-classification.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test('vision classification simple', async () => {
4141
page.getByRole('button', { name: 'Code' }).click()
4242
page.getByRole('button', { name: 'Download Zip' }).click()
4343
return page.waitForEvent('download')
44-
})
44+
}).click()
4545

4646
await downloadPromise.saveAs('./dist-tests/vision-classification-simple.zip')
4747
})
@@ -99,7 +99,7 @@ test('vision classification all', async () => {
9999
page.getByRole('button', { name: 'Code' }).click()
100100
page.getByRole('button', { name: 'Download Zip' }).click()
101101
return page.waitForEvent('download')
102-
})
102+
}).click()
103103
await downloadPromise.saveAs('./dist-tests/vision-classification-all.zip')
104104
})
105105

@@ -125,7 +125,7 @@ test('vision classification launch', async () => {
125125
page.getByRole('button', { name: 'Code' }).click()
126126
page.getByRole('button', { name: 'Download Zip' }).click()
127127
return page.waitForEvent('download')
128-
})
128+
}).click()
129129
await downloadPromise.saveAs('./dist-tests/vision-classification-launch.zip')
130130
})
131131

@@ -152,6 +152,6 @@ test('vision classification spawn', async () => {
152152
page.getByRole('button', { name: 'Code' }).click()
153153
page.getByRole('button', { name: 'Download Zip' }).click()
154154
return page.waitForEvent('download')
155-
})
155+
}).click()
156156
await downloadPromise.saveAs('./dist-tests/vision-classification-spawn.zip')
157157
})

__tests__/vision-dcgan.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test('vision dcgan simple', async () => {
4141
page.getByRole('button', { name: 'Code' }).click()
4242
page.getByRole('button', { name: 'Download Zip' }).click()
4343
return page.waitForEvent('download')
44-
})
44+
}).click()
4545
await downloadPromise.saveAs('./dist-tests/vision-dcgan-simple.zip')
4646
})
4747

@@ -99,7 +99,7 @@ test('vision dcgan all', async () => {
9999
page.getByRole('button', { name: 'Code' }).click()
100100
page.getByRole('button', { name: 'Download Zip' }).click()
101101
return page.waitForEvent('download')
102-
})
102+
}).click()
103103

104104
await downloadPromise.saveAs('./dist-tests/vision-dcgan-all.zip')
105105
})
@@ -127,7 +127,7 @@ test('vision dcgan launch', async () => {
127127
page.getByRole('button', { name: 'Code' }).click()
128128
page.getByRole('button', { name: 'Download Zip' }).click()
129129
return page.waitForEvent('download')
130-
})
130+
}).click()
131131

132132
await downloadPromise.saveAs('./dist-tests/vision-dcgan-launch.zip')
133133
})
@@ -156,6 +156,6 @@ test('vision dcgan spawn', async () => {
156156
page.getByRole('button', { name: 'Code' }).click()
157157
page.getByRole('button', { name: 'Download Zip' }).click()
158158
return page.waitForEvent('download')
159-
})
159+
}).click()
160160
await downloadPromise.saveAs('./dist-tests/vision-dcgan-spawn.zip')
161161
})

__tests__/vision-segmentation.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test('vision segmentation simple', async () => {
4141
page.getByRole('button', { name: 'Code' }).click()
4242
page.getByRole('button', { name: 'Download Zip' }).click()
4343
return page.waitForEvent('download')
44-
})
44+
}).click()
4545

4646
await downloadPromise.saveAs('./dist-tests/vision-segmentation-simple.zip')
4747
})
@@ -100,7 +100,7 @@ test('vision segmentation all', async () => {
100100
page.getByRole('button', { name: 'Code' }).click()
101101
page.getByRole('button', { name: 'Download Zip' }).click()
102102
return page.waitForEvent('download')
103-
})
103+
}).click()
104104

105105
await downloadPromise.saveAs('./dist-tests/vision-segmentation-all.zip')
106106
})
@@ -128,7 +128,7 @@ test('vision segmentation launch', async () => {
128128
page.getByRole('button', { name: 'Code' }).click()
129129
page.getByRole('button', { name: 'Download Zip' }).click()
130130
return page.waitForEvent('download')
131-
})
131+
}).click()
132132

133133
await downloadPromise.saveAs('./dist-tests/vision-segmentation-launch.zip')
134134
})
@@ -157,7 +157,7 @@ test('vision segmentation spawn', async () => {
157157
page.getByRole('button', { name: 'Code' }).click()
158158
page.getByRole('button', { name: 'Download Zip' }).click()
159159
return page.waitForEvent('download')
160-
})
160+
}).click()
161161

162162
await downloadPromise.saveAs('./dist-tests/vision-segmentation-spawn.zip')
163163
})

0 commit comments

Comments
 (0)