You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: calm-hub-ui/README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,18 @@ You may also see any lint errors in the console.
19
19
Launches the test runner in the interactive watch mode.\
20
20
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
21
22
-
### `npm e2e`
22
+
### `npm run start-cypress`
23
+
24
+
End to End tests are written with cypress. Cypress can be run in headless and headed modes.
25
+
The above command runs in headed mode and allows the developer to locally run through the spec
26
+
files and observe the test runs. [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/) queries and paradigm for testing features
27
+
heavily in these tests as these help maintainability by organising tests around how the UI is used
28
+
and not how its implemented. [Cypress and its best practices](https://docs.cypress.io/app/core-concepts/best-practices) are also used in writing and updating
29
+
these tests.
30
+
31
+
#### Test Stubbing
32
+
The tests are all stubbed to return desired responses. These will need to be maintained in tandem with
33
+
calm-hub API. This section can be updated when a different and more reliable integration strategy is devised
0 commit comments