MS2: Expose "Include this {period}" in time-series chrome (#44247)
* Expose "Include this {period}" in timeseries chrome * Fix type errors * Simplify type guards * Add unit tests * Remove Flex wrapper around Switch * Extract `IncludeCurrentSwitch` component * Add E2E smoke tests * Cover the toggle behavior with E2E tests * Simplify test with a simple helper
Showing
- e2e/test/scenarios/filters/time-series-chrome.cy.spec.ts 247 additions, 0 deletionse2e/test/scenarios/filters/time-series-chrome.cy.spec.ts
- e2e/test/scenarios/question-reproductions/reproductions-2.cy.spec.js 0 additions, 102 deletions...enarios/question-reproductions/reproductions-2.cy.spec.js
- frontend/src/metabase/querying/components/DatePicker/DateOperatorPicker/DateOperatorPicker.tsx 6 additions, 1 deletion...ents/DatePicker/DateOperatorPicker/DateOperatorPicker.tsx
- frontend/src/metabase/querying/components/DatePicker/DateOperatorPicker/DateOperatorPicker.unit.spec.tsx 83 additions, 0 deletions...icker/DateOperatorPicker/DateOperatorPicker.unit.spec.tsx
- frontend/src/metabase/querying/components/DatePicker/RelativeDatePicker/DateIntervalPicker/DateIntervalPicker.tsx 3 additions, 22 deletions...ativeDatePicker/DateIntervalPicker/DateIntervalPicker.tsx
- frontend/src/metabase/querying/components/DatePicker/RelativeDatePicker/IncludeCurrentSwitch/IncludeCurrentSwitch.tsx 38 additions, 0 deletions...eDatePicker/IncludeCurrentSwitch/IncludeCurrentSwitch.tsx
- frontend/src/metabase/querying/components/DatePicker/RelativeDatePicker/IncludeCurrentSwitch/index.ts 1 addition, 0 deletions...tePicker/RelativeDatePicker/IncludeCurrentSwitch/index.ts
- frontend/src/metabase/querying/components/DatePicker/RelativeDatePicker/utils.ts 7 additions, 0 deletions...uerying/components/DatePicker/RelativeDatePicker/utils.ts
Loading
Please register or sign in to comment