feat: Replace timezone offset with timezone selector
All checks were successful
/ check-changes (push) Successful in 8s
/ build (push) Successful in 3m25s

This commit is contained in:
Djuri 2025-04-05 22:33:55 +02:00
parent 6cbc2418fa
commit 0e278d1be4
Signed by: djuri
GPG key ID: 61B9B2DDE5AA3AC1
4 changed files with 535 additions and 31 deletions

View file

@ -28,19 +28,19 @@ test('api page has expected load button', async ({ page }) => {
await expect(page.getByRole('button', { name: 'Load' })).toBeVisible();
});
test('timezone can be negative, zero and positive', async ({ page }) => {
await page.goto('/');
await page.getByRole('button', { name: 'Show all' }).click();
// test('timezone can be negative, zero and positive', async ({ page }) => {
// await page.goto('/');
// await page.getByRole('button', { name: 'Show all' }).click();
const tzOffsetField = 'input#tzOffset';
// const tzOffsetField = 'input#tzOffset';
for (const val of ['-10', '0', '42']) {
await page.fill(tzOffsetField, val);
const resultValue = await page.$eval(tzOffsetField, (input: HTMLInputElement) => input.value);
expect(resultValue).toBe(val);
await page.getByRole('button', { name: 'Save' }).click();
}
});
// for (const val of ['-10', '0', '42']) {
// await page.fill(tzOffsetField, val);
// const resultValue = await page.$eval(tzOffsetField, (input: HTMLInputElement) => input.value);
// expect(resultValue).toBe(val);
// await page.getByRole('button', { name: 'Save' }).click();
// }
// });
test('time values can not be zero or negative', async ({ page }) => {
await page.goto('/');