mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
* Fix tests in tests/unit, tests/components and files under tests, looking into tests/pages * Fix tests under pages/projects root * Fix * Comment out broken tests that im stuck with * Fix api-report.test * Fix storage-report-test * chore: fix some tests * chore: remove logging * Fix LogsPreviewer.test.js * Fix most of logs-query-test * Skip broken tests instead of false positiving them --------- Co-authored-by: TzeYiing <ty@tzeyiing.com>
20 lines
416 B
Markdown
20 lines
416 B
Markdown
# 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 Dropdowns
|
|
import clickDropdown from 'tests/helpers'
|
|
clickDropdown('Hello world')
|
|
```
|
|
|
|
### Rules
|
|
|
|
- All tests should be run consistently (avoid situations whereby tests fails "sometimes")
|