From e2f13e6c681616398134b9d60ab30cc28545f9f7 Mon Sep 17 00:00:00 2001 From: Juha Paananen Date: Mon, 15 Apr 2024 19:57:10 +0300 Subject: [PATCH] Verify that history API returns non-empty history --- playwright/src/tests/api.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright/src/tests/api.spec.ts b/playwright/src/tests/api.spec.ts index 5b917c4f..a90532f8 100644 --- a/playwright/src/tests/api.spec.ts +++ b/playwright/src/tests/api.spec.ts @@ -95,7 +95,8 @@ test.describe("API endpoints", () => { }) await test.step("Get board history", async () => { - expect(await Api.getBoardHistory(accessToken, id)).toEqual(expect.arrayContaining([])) + const history = (await Api.getBoardHistory(accessToken, id)).history + expect(history.length).toBeGreaterThan(0) }) await test.step("Get board as CSV", async () => {