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: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,9 +118,10 @@ The aim is to enable the user of our "complex" component to use either complete
118
118
### Testing:
119
119
When adding/making changes to a component, always make sure your code is tested:
120
120
- use React Testing Library for unit testing
121
-
- add tests to a `[ComponentName].test.tsx` file to your component's directory
122
-
- add component tests to the `cypress` folder, consider adding E2E tests accordingly
123
-
- make sure all the core logic is covered
121
+
- add unit tests to a `[ComponentName].test.tsx` file to your component's directory
122
+
- make sure all the core functionality is covered using Cypress component or E2E tests
123
+
- add component tests to `cypress/component/[ComponentName].cy.tsx` file and E2E tests to `cypress/e2e/[ComponentName].spec.cy.ts`
124
+
- add `ouiaId` to component props definition with a default value of the component name (for subcomponents, let's use `ComponentName-element-specification` naming convention e.g. `ouiaId="DataView-actions-button"`)
0 commit comments