Skip to content

Commit

Permalink
migrate e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Sep 29, 2022
1 parent 1a2ddd2 commit 0f57e59
Show file tree
Hide file tree
Showing 13 changed files with 2,092 additions and 122 deletions.
53 changes: 0 additions & 53 deletions cypress/integration/CodeMirror.spec.js

This file was deleted.

23 changes: 0 additions & 23 deletions cypress/integration/CodeViewer.spec.js

This file was deleted.

20 changes: 0 additions & 20 deletions cypress/integration/Issues.spec.js

This file was deleted.

24 changes: 0 additions & 24 deletions cypress/integration/Sandpack.spec.js

This file was deleted.

27 changes: 27 additions & 0 deletions sandpack-react/.github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- 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@v2
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
4 changes: 4 additions & 0 deletions sandpack-react/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ storybook-static
.rpt2_cache
dist
.env
node_modules/
/test-results/
/playwright-report/
/playwright/.cache/
Loading

0 comments on commit 0f57e59

Please sign in to comment.