Skip to content

Commit

Permalink
Remove old E2E test code
Browse files Browse the repository at this point in the history
  • Loading branch information
joonashak committed Oct 26, 2024
1 parent f2f0a3c commit e2e948e
Show file tree
Hide file tree
Showing 30 changed files with 4 additions and 5,679 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ jobs:
if: success() || failure()
run: npm run lint
working-directory: server
- name: Lint E2E
if: success() || failure()
run: npm run lint
working-directory: e2e

test-server:
name: Test server
Expand All @@ -57,28 +53,3 @@ jobs:
run: npm ci
- name: Run unit tests
run: npm test

# Disabled temporarily.
# test-e2e:
# name: E2E tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Build and start containers
# run: docker compose -f compose.ci.yaml up -d mongo server web
# - name: Run E2E tests
# run: docker compose -f compose.ci.yaml run e2e
# - name: Print server logs
# if: failure()
# run: docker compose -f compose.ci.yaml logs server
# - name: Print stack status
# if: failure()
# run: docker ps
# - name: Save Cypress results
# uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: Cypress Results
# path: |
# e2e/cypress/videos
# e2e/cypress/screenshots
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ node_modules
/mongo_data_test
/db_dump.json
.env*

# E2E
/e2e/cypress/screenshots
/e2e/cypress/videos
13 changes: 0 additions & 13 deletions compose.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,5 @@ services:
networks:
- ci

e2e:
build: ./e2e/
networks:
- ci
container_name: holenav-e2e
environment:
- CYPRESS_BASE_URL=http://web:5173
- CYPRESS_API_URL=http://server:3001
volumes:
- ./e2e/cypress:/e2e/cypress
depends_on:
- server

networks:
ci:
14 changes: 1 addition & 13 deletions docs/src/developing/command-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ up. :::
### Run Linter

Lints all sub-projects when run in repository root. Can also be run in
sub-project folders `client`, `e2e` and `server`.
sub-project folders `client` and `server`.

```bash
npm run lint
Expand Down Expand Up @@ -101,18 +101,6 @@ commands.
npm test
```

### Run Only End-to-End Tests (Cypress)

```bash
npm run test:e2e
```

### Open Cypress GUI

```bash
npm run test:open
```

## Database Management

### Drop Database
Expand Down
10 changes: 0 additions & 10 deletions e2e/.eslintrc.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions e2e/Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions e2e/cypress.config.ts

This file was deleted.

3 changes: 0 additions & 3 deletions e2e/cypress.env.json

This file was deleted.

58 changes: 0 additions & 58 deletions e2e/cypress/e2e/settings/folderManagement.cy.ts

This file was deleted.

74 changes: 0 additions & 74 deletions e2e/cypress/e2e/signatures.cy.ts

This file was deleted.

Loading

0 comments on commit e2e948e

Please sign in to comment.