Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e) : for all common scenarios #2650

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
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: 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@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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,7 @@ fabric.properties
# video and screenshot of the tests from Cypress
./e2e/screenshots
./e2e/videos
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
21 changes: 0 additions & 21 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,27 +157,6 @@
"src/**/*.html"
]
}
},
"cypress-open": {
"builder": "@cypress/schematic:cypress",
"options": {
"watch": true,
"headless": false,
"devServerTarget": "ndb-core:serve"
}
},
"e2e": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "ndb-core:serve",
"watch": false,
"headless": true
},
"configurations": {
"production": {
"devServerTarget": "ndb-core:serve:production"
}
}
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions e2e/fixtures/example.json

This file was deleted.

21 changes: 0 additions & 21 deletions e2e/integration/HidingFilterOnSmallScreen.cy.ts

This file was deleted.

49 changes: 0 additions & 49 deletions e2e/integration/LinkingChildToSchool.cy.ts

This file was deleted.

35 changes: 0 additions & 35 deletions e2e/integration/RecordingAttendanceOfChild.cy.ts

This file was deleted.

3 changes: 0 additions & 3 deletions e2e/plugins/index.ts

This file was deleted.

63 changes: 0 additions & 63 deletions e2e/support/commands.ts

This file was deleted.

17 changes: 0 additions & 17 deletions e2e/support/index.ts

This file was deleted.

Loading