First commit
This commit is contained in:
9
e2e-playwright/Dockerfile
Normal file
9
e2e-playwright/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM mcr.microsoft.com/playwright:v1.29.2-focal
|
||||
|
||||
COPY . /e2e-playwright
|
||||
|
||||
WORKDIR /e2e-playwright
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD [ "npx", "playwright", "test", "--reporter=list" ]
|
||||
8
e2e-playwright/package.json
Normal file
8
e2e-playwright/package.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "e2e-playwright-in-docker",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"playwright": "^1.29.2",
|
||||
"@playwright/test": "^1.29.2"
|
||||
}
|
||||
}
|
||||
19
e2e-playwright/playwright.config.js
Normal file
19
e2e-playwright/playwright.config.js
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
timeout: 10000,
|
||||
retries: 0,
|
||||
reporter: "list",
|
||||
workers: 5,
|
||||
use: {
|
||||
baseURL: "http://localhost:7777",
|
||||
headless: true,
|
||||
ignoreHTTPSErrors: true,
|
||||
},
|
||||
projects: [
|
||||
{
|
||||
name: "e2e-headless-chromium",
|
||||
use: {
|
||||
browserName: "chromium",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
5
e2e-playwright/tests/hello-world.spec.js
Normal file
5
e2e-playwright/tests/hello-world.spec.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
|
||||
test("Empty test", async ({ page }) => {
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user