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.
This commit is contained in:
Rūdolfs Ošiņš
2026-10-01 18:20:25 +02:00
parent 699e0604f5
commit 47d55c4418
+4
View File
@@ -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);