Skip to content

Commit

Permalink
remove cypress usage
Browse files Browse the repository at this point in the history
  • Loading branch information
antpaw committed Dec 13, 2024
1 parent 21b821d commit e0be33a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 48 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,49 +27,3 @@ jobs:
- name: 📝 Run frontend unit tests
run: pnpm test:unit:ci
shell: bash

integration_tests:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup
with:
run_install: true

# Run frontend integration test with the Cypress runner
# https://github.com/cypress-io/github-action
- name: 📝 Run integration tests
uses: cypress-io/github-action@c8b086ac389f43967b149b87d5f9cfe73f4ed20e
with:
component: true
install: false
headed: false
browser: chrome
command: pnpm test:integration
build: npx cypress info
env:
# Enables Cypress debugging logs, very useful if Cypress crashes, like out-of-memory issues.
# DEBUG: "cypress:*" # Enable all logs. See https://docs.cypress.io/guides/references/troubleshooting.html#Print-DEBUG-logs
DEBUG: "cypress:server:util:process_profiler" # Enable logs for "memory and CPU usage". See https://docs.cypress.io/guides/references/troubleshooting.html#Log-memory-and-CPU-usage
NODE_ENV: production

- name: ⬆️ Upload Images
if: failure()
uses: actions/upload-artifact@v3
with:
name: cypress-screenshots
path: ./cypress/screenshots
if-no-files-found: ignore
retention-days: 5

- name: ⬆️ Upload Videos
if: failure()
uses: actions/upload-artifact@v3
with:
name: cypress-videos
path: ./cypress/videos
if-no-files-found: ignore
retention-days: 5
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
"lint:all": "pnpm run lint:check && pnpm run lint:headers && pnpm run lint:format",
"test:unit": "TZ=UTC pnpm vitest run --outputFile.junit=./test-results/junit.xml",
"test:unit:ci": "pnpm test:unit --coverage --silent",
"test:integration": "pnpm cypress run --component --env ELECTRON_EXTRA_LAUNCH_ARGS=--disable-gpu,LIBVA_DRIVER_NAME=--disable-software-rasterizer",
"test:integration:open": "pnpm cypress open --component --browser=chrome",
"preview": "vite preview",
"storybook": "BUILD_ENV='storybook' storybook dev -p 6006",
"storybook:build": "BUILD_ENV='storybook' storybook build"
Expand Down
Empty file added test-results/junit.xml
Empty file.

0 comments on commit e0be33a

Please sign in to comment.