mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Cypress: Fix date parameters false positive (#3873)
This commit is contained in:
@@ -177,6 +177,7 @@ function EditParameterSettingsDialog(props) {
|
||||
<Checkbox
|
||||
defaultChecked={param.useCurrentDateTime}
|
||||
onChange={e => setParam({ ...param, useCurrentDateTime: e.target.checked })}
|
||||
data-test="UseCurrentDateTimeCheckbox"
|
||||
>
|
||||
Default to Today/Now if no other value is set
|
||||
</Checkbox>
|
||||
|
||||
@@ -120,6 +120,7 @@ describe('Parameter', () => {
|
||||
ParameterSettings-test-parameter
|
||||
ParameterTypeSelect
|
||||
DateParameterTypeOption
|
||||
UseCurrentDateTimeCheckbox
|
||||
SaveParameterSettings
|
||||
`);
|
||||
|
||||
@@ -159,6 +160,7 @@ describe('Parameter', () => {
|
||||
ParameterSettings-test-parameter
|
||||
ParameterTypeSelect
|
||||
DateTimeParameterTypeOption
|
||||
UseCurrentDateTimeCheckbox
|
||||
SaveParameterSettings
|
||||
`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user