Skip to content

Commit 702e1c7

Browse files
committed
ci: bump testcafe
1 parent 68ffc2f commit 702e1c7

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
node-version: lts/iron # 20
200200
cache: 'npm'
201201
- run: npm clean-install
202-
- run: npm install --global testcafe@2
202+
- run: npm install --global testcafe@3
203203
- name: Add rows to the TCC.db
204204
if: ${{ matrix.runs-on == 'macos-13' }}
205205
run: |

tap/.browser.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import { t, Selector } from 'testcafe'
2-
3-
fixture('test suite').page('https://important-clam-66.deno.dev')
4-
52
import * as fs from 'node:fs'
63

74
const script = fs.readFileSync('./tap/run-browser.js', { encoding: 'utf-8' })
85

9-
const scriptTag = Selector('script')
6+
fixture('test suite').page('https://important-clam-66.deno.dev')
107

118
test('passes tests', async (user) => {
9+
const scriptTag = Selector('script')
10+
1211
await user.typeText('#js', script, { paste: true }).click('[type=submit]')
1312

1413
await scriptTag()

tap/.browsers.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
--log-level=warning \
44
--format=esm \
55
--bundle \
6+
--minify \
67
--target=esnext \
78
--outfile=tap/run-browser.js \
89
tap/run-browser.ts
910

10-
HOSTNAME="localhost"
11-
SSL=""
12-
1311
: "${BROWSER:=chrome:headless}"
1412

15-
testcafe "$BROWSER" --skip-js-errors --ssl "$SSL" --hostname "$HOSTNAME" tap/.browser.ts
13+
testcafe "$BROWSER" --hostname localhost tap/.browser.ts

tap/cookbook.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import jweVectors from '../cookbook/jwe.mjs'
99

1010
// https://bugs.webkit.org/show_bug.cgi?id=262499
1111
// https://github.com/web-platform-tests/wpt/pull/42292
12-
if (env.isWebKit) {
12+
if (env.isWebKitAbove17) {
1313
// @ts-ignore
1414
const ed25519 = jwsVectors.find((vector) => vector.title.includes('Ed25519'))
1515
ed25519.reproducible = false
@@ -42,7 +42,7 @@ export default (QUnit: QUnit, lib: typeof jose) => {
4242
return !env.isDeno
4343
}
4444
if (vector.input.alg === 'EdDSA') {
45-
return (env.isWebKit && env.isWebKitAbove17) || !env.isBrowser
45+
return env.isWebKitAbove17 || !env.isBrowser
4646
}
4747
return true
4848
}
@@ -258,7 +258,6 @@ export default (QUnit: QUnit, lib: typeof jose) => {
258258
await lib.importJWK(
259259
toJWK(vector.input.pwd || vector.input.key),
260260
dir ? vector.input.enc : vector.input.alg,
261-
true,
262261
)
263262
)
264263
let publicKey

0 commit comments

Comments
 (0)