diff --git a/templates/ts-playwright-test-runner/.actor/Dockerfile b/templates/ts-playwright-test-runner/.actor/Dockerfile index 3966bc48..27c07c56 100644 --- a/templates/ts-playwright-test-runner/.actor/Dockerfile +++ b/templates/ts-playwright-test-runner/.actor/Dockerfile @@ -1,4 +1,4 @@ -FROM apify/actor-node-playwright:20-1.37.1 +FROM apify/actor-node-playwright:22-1.49.1 COPY package*.json ./ diff --git a/templates/ts-playwright-test-runner/.dockerignore b/templates/ts-playwright-test-runner/.dockerignore index 05741991..81ef6a35 100644 --- a/templates/ts-playwright-test-runner/.dockerignore +++ b/templates/ts-playwright-test-runner/.dockerignore @@ -10,6 +10,7 @@ storage # generated test results playwright-report test-results.json +test-results # installed files node_modules diff --git a/templates/ts-playwright-test-runner/.gitignore b/templates/ts-playwright-test-runner/.gitignore index 7e53151b..ecf94982 100644 --- a/templates/ts-playwright-test-runner/.gitignore +++ b/templates/ts-playwright-test-runner/.gitignore @@ -8,3 +8,4 @@ dist playwright-report src/tests test-results.json +test-results/ diff --git a/templates/ts-playwright-test-runner/package.json b/templates/ts-playwright-test-runner/package.json index eb241387..a790480b 100644 --- a/templates/ts-playwright-test-runner/package.json +++ b/templates/ts-playwright-test-runner/package.json @@ -18,7 +18,7 @@ "dependencies": { "@apify/eslint-config-ts": "^0.3.0", "@apify/tsconfig": "^0.1.0", - "@playwright/test": "1.37.1", + "@playwright/test": "1.49.1", "@types/uuid": "^9.0.4", "apify": "^3.2.6", "tsx": "^4.6.2", diff --git a/templates/ts-playwright-test-runner/src/main.ts b/templates/ts-playwright-test-runner/src/main.ts index f17a6e42..7bb66e1e 100644 --- a/templates/ts-playwright-test-runner/src/main.ts +++ b/templates/ts-playwright-test-runner/src/main.ts @@ -38,6 +38,11 @@ export default defineConfig({ colorScheme: '${darkMode ? 'dark' : 'light'}', locale: '${locale}', video: '${video}', + launchOptions: { + args: [ + '--disable-gpu', + ] + }, }, reporter: [ ['html', { outputFolder: '${getResultDir()}', open: 'never' }],