Skip to content

Commit

Permalink
Cypress: Fix date parameters false positive (getredash#3873)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldutra authored Jun 4, 2019
1 parent 0e3e2ea commit a82fd0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/app/components/EditParameterSettingsDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions client/cypress/integration/query/parameter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ describe('Parameter', () => {
ParameterSettings-test-parameter
ParameterTypeSelect
DateParameterTypeOption
UseCurrentDateTimeCheckbox
SaveParameterSettings
`);

Expand Down Expand Up @@ -159,6 +160,7 @@ describe('Parameter', () => {
ParameterSettings-test-parameter
ParameterTypeSelect
DateTimeParameterTypeOption
UseCurrentDateTimeCheckbox
SaveParameterSettings
`);

Expand Down

0 comments on commit a82fd0c

Please sign in to comment.