mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-10-18 19:10:45 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user