Skip to content

Commit

Permalink
Merge pull request #645 from nblackburn/playwright-tests
Browse files Browse the repository at this point in the history
Playwright
  • Loading branch information
nblackburn authored Dec 18, 2024
2 parents faaf36a + 07ae573 commit 6511d21
Show file tree
Hide file tree
Showing 10 changed files with 114 additions and 2,789 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ charset = utf-8
end_of_line = crlf
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = false
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
29 changes: 29 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Playwright
on:
pull_request:
branches: main
jobs:
test:
name: 'Run E2E Tests'
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install dependencies
run: yarn

- name: Install Playwright Browsers
run: yarn playwright install --with-deps

- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.log
dist/
test-results/
node_modules
.yarn/*
!.yarn/patches
Expand All @@ -10,3 +11,6 @@ node_modules
*.env
.astro/
.vercel
/playwright-report/
/blob-report/
/playwright/.cache/
25 changes: 0 additions & 25 deletions checkly.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@vanilla-extract/vite-plugin": "^4.0.18",
"checkly": "^4.14.0",
"eslint": "^9.16.0",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-vue": "^9.32.0",
Expand Down
20 changes: 20 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
testDir: './tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
trace: 'on-first-retry'
},

projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
}
]
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

1 comment on commit 6511d21

@vercel
Copy link

@vercel vercel bot commented on 6511d21 Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.