mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 15:05:26 +03:00
fix frontend tests
This commit is contained in:
parent
0b0041734c
commit
e593ac9599
@ -460,10 +460,9 @@ test.describe("Multi-Review Export @high", () => {
|
|||||||
.filter({ hasText: /Export 2 reviews/i });
|
.filter({ hasText: /Export 2 reviews/i });
|
||||||
await expect(dialog).toBeVisible({ timeout: 5_000 });
|
await expect(dialog).toBeVisible({ timeout: 5_000 });
|
||||||
// The dialog uses a Select trigger for case selection (admins). The
|
// The dialog uses a Select trigger for case selection (admins). The
|
||||||
// default "Create new case" value is shown on the trigger and the
|
// default "None" value is shown on the trigger.
|
||||||
// New-case inputs render directly below.
|
|
||||||
await expect(dialog.locator("button[role='combobox']")).toBeVisible();
|
await expect(dialog.locator("button[role='combobox']")).toBeVisible();
|
||||||
await expect(dialog.getByText(/Create new case/i)).toBeVisible();
|
await expect(dialog.getByText(/None/)).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("starting an export posts the expected payload and navigates to the case", async ({
|
test("starting an export posts the expected payload and navigates to the case", async ({
|
||||||
@ -513,6 +512,12 @@ test.describe("Multi-Review Export @high", () => {
|
|||||||
.filter({ hasText: /Export 2 reviews/i });
|
.filter({ hasText: /Export 2 reviews/i });
|
||||||
await expect(dialog).toBeVisible({ timeout: 5_000 });
|
await expect(dialog).toBeVisible({ timeout: 5_000 });
|
||||||
|
|
||||||
|
// Select "Create new case" from the case dropdown (default is "None")
|
||||||
|
await dialog.locator("button[role='combobox']").click();
|
||||||
|
await frigateApp.page
|
||||||
|
.getByRole("option", { name: /Create new case/i })
|
||||||
|
.click();
|
||||||
|
|
||||||
const nameInput = dialog.locator("input").first();
|
const nameInput = dialog.locator("input").first();
|
||||||
await nameInput.fill("E2E Incident");
|
await nameInput.fill("E2E Incident");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user