First commit

This commit is contained in:
AndrewTrieu
2023-03-09 11:21:18 +02:00
commit be427eda10
27 changed files with 262 additions and 0 deletions

View 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" ]

View File

@@ -0,0 +1,8 @@
{
"name": "e2e-playwright-in-docker",
"version": "1.0.0",
"dependencies": {
"playwright": "^1.29.2",
"@playwright/test": "^1.29.2"
}
}

View 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",
},
},
],
};

View File

@@ -0,0 +1,5 @@
const { test, expect } = require("@playwright/test");
test("Empty test", async ({ page }) => {
});