Files
supabase/apps/studio/tests
Jordi Enric 2865138adb Update reports datepickers (#34727)
* default to 69mins add 3 hours opt

* Enhance Reports Datepicker Helpers with Plan Availability

- Introduced `ReportsDatetimeHelper` interface to include `availableIn` property for plan-specific availability.
- Updated existing datepicker helpers to specify availability for different plans.
- Renamed 'Last 30 days' to 'Last 28 days' for consistency.
- Added `createFilteredDatePickerHelpers` function to filter helpers based on the user's plan.

* Refactor Datepicker Helpers in API Overview Report

- Replaced the usage of `REPORTS_DATEPICKER_HELPERS` with the new `createFilteredDatePickerHelpers` function to enhance plan-specific filtering.
- This change streamlines the datepicker helper logic based on user plan availability.

* Refactor Storage Report Datepicker Helpers

- Updated the Storage Report component to use `createFilteredDatePickerHelpers` for plan-specific datepicker logic.
- This change simplifies the datepicker helper implementation and enhances maintainability.

* fix test
2025-04-04 11:58:42 +02:00
..
2024-10-01 11:29:37 +02:00
2025-03-18 11:30:34 +01:00
2024-10-01 11:29:37 +02:00
2024-07-04 14:48:10 +08:00
2024-05-11 12:05:25 +02: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'
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")