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

Automated tests #30

Open
wants to merge 16 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 0 additions & 111 deletions .github/workflows/cd.yml

This file was deleted.

166 changes: 0 additions & 166 deletions .github/workflows/ci.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Playwright Tests
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.47.0-jammy
steps:
- uses: actions/checkout@v4
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
- run: cd loama
- name: Build repo
uses: borales/actions-yarn@v5
with:
cmd: build
- name: Install Playwright Browsers
uses: borales/actions-yarn@v5
with:
cmd: playwright install --with-deps
dir: loama
- name: Run playwright tests
uses: borales/actions-yarn@v5
with:
cmd: test
dir: loama
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: loama/playwright-report/
retention-days: 30
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules/
dist/
build/
.env
pods/

.nx/cache
.nx/workspace-data
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Adds a switch will remove the access of a user. It preserves the given permissions in the index & will prevent remote from overwriting these when an item is disabled
- Add button to remove access from resource for subject
- Change components so everything uses typescript
- Add automated UI tests
- Add Github action to run UI tests on PR to default branch
- Add pinia store for external state management in loama
36 changes: 21 additions & 15 deletions css/config/seeds.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
[
{
"email": "[email protected]",
"password": "abc123",
"pods": [
{ "name": "pod1" }
]
},
{
"email": "[email protected]",
"password": "123abc",
"pods": [
{ "name": "pod2" },
{ "name": "pod3" }
]
}
{
"email": "[email protected]",
"password": "abc123",
"pods": [
{
"name": "pod1"
}
]
},
{
"email": "[email protected]",
"password": "123abc",
"pods": [
{
"name": "pod2"
},
{
"name": "pod3"
}
]
}
]
Loading
Loading