forked from hpi-sam/digital-fuesim-manv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: Cypress tests * Add tests for the hospital editor * Remove deleteExercise afterEach hook * Refactor passing values from the application to cypress * Refactor optimistic action handler to use less generics. * Refactor socket listeners to the optimistic action handler This is done because socket.io seems to have no way to listen to ClientToServer events on the client * Properly access the store in cypress * Try to refactor the optimistic action handler generics again * Rename data-cy value for draggable items * Change Object.keys to Object.values where applicable * Refactor custom commands and add new chainable commands for our usecase. * Move functionality from OA handler to exercise service * Speed up tests! * Fix linter * Update package.json files to node 18 * Update node version in all places * Apply suggestion for obserable pipe filters * Add --install-links to npm ci * Add global .npmrc file with install-links * Add MORE npmrcs * Remove --install-links=false in favor of npmrc * Change host to 127.0.0.1 because of changes to webpack * Add video and screenshot output to pipeline * Update the main readme * Refactor setupCypressTestingValues to use lodashs default * Fix linter * Add Alarm Group Call to Alarm Group Test * Add test for start/stop/tick * Add test for managing clients * Add test for managing settings * Add test for simulated regions * Add test for transfer points * Fix tests * Add test to transfer vehicles with patients to hospitals * Rename nthElement and nthLastElement to atPosition * Remove leftovers from testing from the exercise service * Add migration because I fixed a typo * Add test to be able to transfer between transfer points * Change ordering of tests * Add fix so cypress is using node 18 in the pipeline * Add test for managing patients on the map * Add lfs to cypress checkout * Remove unnecessary code * Remove cy.wait and trigger a double click instead * Also pull lfs * Increase pipeline timeout to 20 minutes * Replace dblclick with click * always upload screenshots * Add matrix browser for cypress * Add a wait statement before common flakyness places * Remove typing tests to reduce flake and increase timeout for common errors * Exchange chrome with chromium * Add two more common error timeouts * Introduce variable for magic value * Disable video output --------- Co-authored-by: Benildur <[email protected]>
- Loading branch information
1 parent
c9b31a9
commit 9f64f5f
Showing
62 changed files
with
1,419 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
}, | ||
"private": true, | ||
"engines": { | ||
"node": ">=16", | ||
"node": ">=18", | ||
"npm": ">=8" | ||
}, | ||
"dependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
frontend/cypress-visual-screenshots/baseline/landing-page.spec.ts-landing-page.png
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { defineConfig } from 'cypress'; | ||
|
||
export default defineConfig({ | ||
retries: { | ||
runMode: 4, | ||
openMode: 1, | ||
}, | ||
e2e: { | ||
baseUrl: 'http://127.0.0.1:4200', | ||
video: false, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.