fix: add back month and year selection for date picker

This commit is contained in:
Elias Schneider
2025-05-23 11:56:08 +02:00
parent 869c4c5871
commit 6c35570e78
4 changed files with 110 additions and 39 deletions

View File

@@ -19,7 +19,7 @@ test.describe("API Key Management", () => {
// Choose the date
const currentDate = new Date();
await page.getByLabel("Expires At").click();
await page.getByRole("button", { name: "Select a date" }).click();
await page.getByLabel("Select year").click();
// Select the next year
await page.getByText((currentDate.getFullYear() + 1).toString()).click();
@@ -45,7 +45,10 @@ test.describe("API Key Management", () => {
expect(token?.length).toBe(32);
// Close the dialog
await page.getByRole("button", { name: "Close" }).click();
await page
.getByRole("button", { name: "Close", exact: true })
.nth(1)
.click();
await page.reload();