Files
supabase/apps/studio/tests
Ivan Vasilov 326c7535f6 chore: Bump vulnerable deps. (#34395)
* Bump all testing libs to force babel to upgrade itself.

* Remove react-hooks package, it's included in @testing-library/react.

* Add await to all useEvent calls.

* Remove duplicate babel/helpers.

* Deduplicate babel/core.

* Bump vite to non-vuln version.

* Bump estree-util-value-to-estree.
2025-04-16 10:02:06 +02:00
..
2024-10-01 11:29:37 +02:00
2025-03-18 11:30:34 +01:00
2025-04-08 11:32:29 +08:00
2024-07-04 14:48:10 +08:00
2025-03-18 11:30:34 +01:00

UI Testing Notes

<Popover> vs <Dropdown>

When simulating clicks on these components, do the following:

// for Popovers
import userEvent from '@testing-library/user-event'
await 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")