Update apps/web/playwright/lib/fixtures.ts

10-26-chore_Adds_dayjs_as_fixture
Omar López 2023-10-26 13:02:53 -07:00 committed by GitHub
parent a19c5b4af0
commit 4f9e890bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export const test = base.extend<Fixtures>({
await use(bookingPage);
},
dayjs: async ({ timezoneId }, use) => {
// We default all dayjs calls to use Europe/London timezone
// We default all dayjs calls to use the browser configured timezone
const dayjs = (...args: Parameters<typeof _dayjs>) => _dayjs(...args).tz(timezoneId);
await use(dayjs);
},