mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
added in ui tesitng notes
This commit is contained in:
1 parent
d4b816a752
commit
475b2c63fe
1 file changed
+16
@@ -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')
|
||||
```
|
||||
Reference in new issue
Block a user