-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[QUESTION] failed to launch chromium error while running npx jest within Dockerfile.bionic #4485
Copy link
Copy link
Closed
Description
Context:
I am using this container
https://github.com/microsoft/playwright/blob/master/docs/docker/Dockerfile.bionic
After running the container, install all dependencies successfully, I have the following error:
Command used to run the container:
docker run -it --name playwright -v "C:\myProject\web":/home mcr.microsoft.com/playwright bash
Command used to install project dependencies:
npm install
Command to run tests:
npx jest
Error:
root@f542143afa64:/home/e2e_tests# npm run test
catalogue-testing-framework-with-playwright@1.0.0 test /home/e2e_tests
npx jest
Error: Failed to launch chromium because executable doesn't exist at /root/.cache/ms-playwright/chromium-827102/chrome-linux/chrome
Try re-installing playwright with "npm install playwright"
Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs.
at Chromium._launchProcess (/home/e2e_tests/node_modules/playwright/lib/server/browserType.js:128:19)
at async Chromium._innerLaunch (/home/e2e_tests/node_modules/playwright/lib/server/browserType.js:70:62)
at async ProgressController.run (/home/e2e_tests/node_modules/playwright/lib/server/progress.js:85:28)
at async Chromium.launch (/home/e2e_tests/node_modules/playwright/lib/server/browserType.js:53:25)
at async BrowserServerLauncherImpl.launchServer (/home/e2e_tests/node_modules/playwright/lib/browserServerImpl.js:35:25)
at async PlaywrightRunner.launchServer (/home/e2e_tests/node_modules/jest-playwright-preset/lib/PlaywrightRunner.js:61:48)
at async PlaywrightRunner.getTests (/home/e2e_tests/node_modules/jest-playwright-preset/lib/PlaywrightRunner.js:96:40)
at async PlaywrightRunner.runTests (/home/e2e_tests/node_modules/jest-playwright-preset/lib/PlaywrightRunner.js:123:30)
at async TestScheduler.scheduleTests (/home/e2e_tests/node_modules/@jest/core/build/TestScheduler.js:321:13)
at async runJest (/home/e2e_tests/node_modules/@jest/core/build/runJest.js:376:19)
Any idea to what is going wrong here? thx
my package.json
{
"name": "catalogue-testing-framework-with-playwright",
"version": "1.0.0",
"description": " E2E testing framework",
"main": "index.js",
"scripts": {
"lint": "eslint test/**/*.{js,ts,tsx} --quiet --fix",
"pretty": "npx prettier --no-config test/**/*.{js,ts,tsx} --write",
"test": "npx jest"
},
"dependencies": {
"chromedriver": "85.0.1",
"jest": "26.6.3",
"jest-playwright": "0.0.1",
"jest-playwright-preset": "^1.4.0",
"playwright": "^1.5.2",
"ts-jest": "26.4.4",
"typescript": "4.0.5"
},
"devDependencies": {
"@types/jest": "26.0.15",
"@types/node": "13.13.30",
"eslint": "^6.6.0",
"expect-playwright": "^0.2.6",
"jest-circus": "^26.6.3",
"jest-html-reporters": "^2.1.0",
"playwright-core": "^1.5.2",
"prettier": "2.1.2"
},
"license": "MIT",
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels