Skip to content

Commit 114f8bf

Browse files
authored
Update README.md
1 parent 0b476f6 commit 114f8bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ The aim is to enable the user of our "complex" component to use either complete
118118
### Testing:
119119
When adding/making changes to a component, always make sure your code is tested:
120120
- 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"`)
124125

125126
### Styling:
126127
- for styling always use JSS

0 commit comments

Comments
 (0)