Skip to content

Commit

Permalink
feat: implement playwright tests for Web IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
xpyctumo committed Feb 11, 2025
1 parent b427d23 commit ab02cb6
Show file tree
Hide file tree
Showing 19 changed files with 2,177 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { all } = require("axios");

/* eslint-env node */
module.exports = {
extends: [
Expand All @@ -17,6 +19,8 @@ module.exports = {
"!.lintstagedrc.js",
".lintstagedrc.js",
"next.config.js",
"playwright.config.ts",
"tests/*",
],
plugins: ["@typescript-eslint"],
root: true,
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Web IDE Browser Tests
on:
push:
branches: ['**']
pull_request:
branches: ['**']
jobs:
test:
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: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# Playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
Loading

0 comments on commit ab02cb6

Please sign in to comment.