Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SteRiccio committed Oct 28, 2024
1 parent 28fbb61 commit 0d76805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/e2e/tests/surveyFormPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export default () =>
// it is possible the default value was set one minute after the startTime was initialized in the test
const startTimeDate = new Date(startTime)
const startTimePlus1Minute = DateUtils.addMinutes(startTimeDate, 1)
const possibleDateValues = [new Date(startTime), startTimePlus1Minute]
const possibleDateValues = [startTimeDate, startTimePlus1Minute]
const expectedPossibleValues = possibleDateValues.map((possibleDateValue) => {
const timezoneOffsetDiff = startTimeDate.getTimezoneOffset() + 60 // browser timezone=Europe/Rome
const timezoneOffsetDiff = startTimeDate.getTimezoneOffset() // browser timezone=Europe/Rome
const dateWithTimezoneOffset = DateUtils.addMinutes(possibleDateValue, timezoneOffsetDiff)
return formatTime(dateWithTimezoneOffset)
})
Expand Down
1 change: 0 additions & 1 deletion webapp/components/expression/nodes/call/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ const Call = (props) => {
items={dropdownItems}
onChange={onFunctionChange}
placeholder={i18n.t('expressionEditor.selectAFunction')}
searchable={false}
selection={selectedItem}
/>
{selectedItem && selectedFunctionComponent && <ButtonIconEdit onClick={openEditDialog} />}
Expand Down

0 comments on commit 0d76805

Please sign in to comment.