added in ui tesitng notes

This commit is contained in:
TzeYiing committed 2022-01-20 01:46:22 +08:00
1 parent d4b816a752
commit 475b2c63fe
1 file changed
+16
+16
View File
@@ -72,3 +72,19 @@ Then run the following commands to install dependencies and start the dashboard.
npm install
npm run dev
```
## UI Testing Notes
### `<Popover>` vs `<Dropdown>`
When simulating clicks on these components, do the following:
```js
// for Popovers
import userEvent from '@testing-library/user-event'
userEvent.click('Hello world')
// for Popovers
import clickDropdown from 'tests/helpers'
clickDropdown('Hello world')
```