diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44f0a9f..b89da83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: [pull_request] jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: Git checkout diff --git a/package.json b/package.json index 66140cc..a6b3460 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "start": "node app.js", "test": "npx playwright test --ui", "test_ci": "npx playwright test", - "format": "sudo npx prettier .", + "format": "npx prettier .", "format:fix": "npx prettier . --write" }, "dependencies": { diff --git a/playwright.config.js b/playwright.config.js index 227c232..5cf45a7 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -30,6 +30,12 @@ export default defineConfig({ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', }, + expect: { + toHaveScreenshot: { + // An acceptable amount of pixels that could be different, unset by default. + maxDiffPixelRatio: 0.05, + }, + }, /* Configure projects for major browsers */ projects: [ diff --git a/public/login/santaLogin.html b/public/login/santaLogin.html index 6b9930f..6e8f753 100644 --- a/public/login/santaLogin.html +++ b/public/login/santaLogin.html @@ -94,11 +94,11 @@