Skip to content

Commit

Permalink
Added UI tests to auto testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TomStrong committed Dec 12, 2023
1 parent d0b858c commit 915d34f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run tests
- name: Run API tests
run: npm test
env:
MONGODB_URI: mongodb://admin:admin@localhost:27017
JWT_SECRET: secret
AZURE_STORAGE_CONNECTION_STRING: 'DefaultEndpointsProtocol=https;AccountName=account;AccountKey=key;EndpointSuffix=core.windows.net'

- name: Run UI tests
run: npm run test-ui
env:
MONGODB_URI: mongodb://admin:admin@localhost:27017
JWT_SECRET: secret
AZURE_STORAGE_CONNECTION_STRING: 'DefaultEndpointsProtocol=https;AccountName=account;AccountKey=key;EndpointSuffix=core.windows.net'
1 change: 1 addition & 0 deletions tests/userInterface.puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ try {
}

await browser.close();
console.log('Tests completed successfully.');
} catch (err) {
console.error(err);
process.exit(1);
Expand Down

0 comments on commit 915d34f

Please sign in to comment.