Fix browser tests in CI pipeline

This commit is contained in:
Jakob Linskeseder
2023-07-23 23:29:24 +02:00
committed by Jay Linski
parent 42adee3f82
commit b3ffb16e5d
4 changed files with 48 additions and 21 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ jobs:
browser: browser:
name: Test (Browser) name: Test (Browser)
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-22.04'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
+45 -18
View File
@@ -19,7 +19,7 @@
}, },
"devDependencies": { "devDependencies": {
"@definitelytyped/dtslint": "^0.0.100", "@definitelytyped/dtslint": "^0.0.100",
"@playwright/test": "^1.27.1", "@playwright/test": "^1.36.1",
"aws-sdk": "^2.1.49", "aws-sdk": "^2.1.49",
"babel-loader": "^5.0.0", "babel-loader": "^5.0.0",
"babel-runtime": "^5.1.10", "babel-runtime": "^5.1.10",
@@ -812,19 +812,36 @@
} }
}, },
"node_modules/@playwright/test": { "node_modules/@playwright/test": {
"version": "1.27.1", "version": "1.36.1",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.27.1.tgz", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.36.1.tgz",
"integrity": "sha512-mrL2q0an/7tVqniQQF6RBL2saskjljXzqNcCOVMUjRIgE6Y38nCNaP+Dc2FBW06bcpD3tqIws/HT9qiMHbNU0A==", "integrity": "sha512-YK7yGWK0N3C2QInPU6iaf/L3N95dlGdbsezLya4n0ZCh3IL7VgPGxC6Gnznh9ApWdOmkJeleT2kMTcWPRZvzqg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/node": "*", "@types/node": "*",
"playwright-core": "1.27.1" "playwright-core": "1.36.1"
}, },
"bin": { "bin": {
"playwright": "cli.js" "playwright": "cli.js"
}, },
"engines": { "engines": {
"node": ">=14" "node": ">=16"
},
"optionalDependencies": {
"fsevents": "2.3.2"
}
},
"node_modules/@playwright/test/node_modules/fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
} }
}, },
"node_modules/@qiwi/npm-registry-client": { "node_modules/@qiwi/npm-registry-client": {
@@ -11197,15 +11214,15 @@
} }
}, },
"node_modules/playwright-core": { "node_modules/playwright-core": {
"version": "1.27.1", "version": "1.36.1",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.27.1.tgz", "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.36.1.tgz",
"integrity": "sha512-9EmeXDncC2Pmp/z+teoVYlvmPWUC6ejSSYZUln7YaP89Z6lpAaiaAnqroUt/BoLo8tn7WYShcfaCh+xofZa44Q==", "integrity": "sha512-7+tmPuMcEW4xeCL9cp9KxmYpQYHKkyjwoXRnoeTowaeNat8PoBMk/HwCYhqkH2fRkshfKEOiVus/IhID2Pg8kg==",
"dev": true, "dev": true,
"bin": { "bin": {
"playwright": "cli.js" "playwright-core": "cli.js"
}, },
"engines": { "engines": {
"node": ">=14" "node": ">=16"
} }
}, },
"node_modules/please-upgrade-node": { "node_modules/please-upgrade-node": {
@@ -15198,13 +15215,23 @@
} }
}, },
"@playwright/test": { "@playwright/test": {
"version": "1.27.1", "version": "1.36.1",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.27.1.tgz", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.36.1.tgz",
"integrity": "sha512-mrL2q0an/7tVqniQQF6RBL2saskjljXzqNcCOVMUjRIgE6Y38nCNaP+Dc2FBW06bcpD3tqIws/HT9qiMHbNU0A==", "integrity": "sha512-YK7yGWK0N3C2QInPU6iaf/L3N95dlGdbsezLya4n0ZCh3IL7VgPGxC6Gnznh9ApWdOmkJeleT2kMTcWPRZvzqg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/node": "*", "@types/node": "*",
"playwright-core": "1.27.1" "fsevents": "2.3.2",
"playwright-core": "1.36.1"
},
"dependencies": {
"fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"optional": true
}
} }
}, },
"@qiwi/npm-registry-client": { "@qiwi/npm-registry-client": {
@@ -23578,9 +23605,9 @@
} }
}, },
"playwright-core": { "playwright-core": {
"version": "1.27.1", "version": "1.36.1",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.27.1.tgz", "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.36.1.tgz",
"integrity": "sha512-9EmeXDncC2Pmp/z+teoVYlvmPWUC6ejSSYZUln7YaP89Z6lpAaiaAnqroUt/BoLo8tn7WYShcfaCh+xofZa44Q==", "integrity": "sha512-7+tmPuMcEW4xeCL9cp9KxmYpQYHKkyjwoXRnoeTowaeNat8PoBMk/HwCYhqkH2fRkshfKEOiVus/IhID2Pg8kg==",
"dev": true "dev": true
}, },
"please-upgrade-node": { "please-upgrade-node": {
+2 -2
View File
@@ -30,7 +30,7 @@
}, },
"devDependencies": { "devDependencies": {
"@definitelytyped/dtslint": "^0.0.100", "@definitelytyped/dtslint": "^0.0.100",
"@playwright/test": "^1.27.1", "@playwright/test": "^1.36.1",
"aws-sdk": "^2.1.49", "aws-sdk": "^2.1.49",
"babel-loader": "^5.0.0", "babel-loader": "^5.0.0",
"babel-runtime": "^5.1.10", "babel-runtime": "^5.1.10",
@@ -86,7 +86,7 @@
"lint:types": "dtslint types", "lint:types": "dtslint types",
"test": "npm run test:mocha", "test": "npm run test:mocha",
"test:mocha": "grunt build && grunt test", "test:mocha": "grunt build && grunt test",
"test:browser": "playwright test --config tests/browser/playwright.config.js tests/browser/spec.js", "test:browser": "playwright test --config tests/browser/playwright.config.js",
"test:integration": "grunt integration-tests", "test:integration": "grunt integration-tests",
"test:serve": "grunt connect:server:keepalive", "test:serve": "grunt connect:server:keepalive",
"extensive-tests-and-publish-to-aws": "npx mocha tasks/tests/ && grunt --stack extensive-tests-and-publish-to-aws", "extensive-tests-and-publish-to-aws": "npx mocha tasks/tests/ && grunt --stack extensive-tests-and-publish-to-aws",