From 47d55c4418e81fec92fba4bb5a1e2761dd197d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 30 Sep 2026 17:43:56 +0200 Subject: [PATCH] Check the published verdict in the draft review test Publishing an accept as a reject went unnoticed, since the test only checked that the review appeared. --- tests/e2e/repo/patch.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/repo/patch.spec.ts b/tests/e2e/repo/patch.spec.ts index 0d1daae84..f1a756bfa 100644 --- a/tests/e2e/repo/patch.spec.ts +++ b/tests/e2e/repo/patch.spec.ts @@ -126,6 +126,10 @@ test("a draft review is published with its comments and verdict", async ({ await expect(summary).toBeHidden(); await expect(page.getByText("Looks good to me").first()).toBeVisible(); + await expect( + page.getByText("Accepted", { exact: true }).first(), + ).toBeVisible(); + await expect(page.getByText("Rejected", { exact: true })).toHaveCount(0); await expect(page.getByText("Shouting is fine here").first()).toBeVisible(); await reload(page);