Skip to content

Commit

Permalink
fix(datepicker): timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Jul 29, 2024
1 parent 30c01e4 commit 69da3fd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ describe('ods-datepicker behaviour', () => {
it('should emit an odsChange event', async() => {
const value = new Date('10 May 2024');
await setup('<ods-datepicker name="ods-datepicker"></ods-datepicker>');
await page.emulateTimezone('Europe/Madrid');
await page.evaluate((value) => {
document.querySelector<OdsDatepicker & HTMLElement>('ods-datepicker')!.value = value;
}, value);
Expand Down

0 comments on commit 69da3fd

Please sign in to comment.