Skip to content

Commit

Permalink
Verify that history API returns non-empty history
Browse files Browse the repository at this point in the history
  • Loading branch information
raimohanska committed Apr 15, 2024
1 parent 8fb6e62 commit e2f13e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playwright/src/tests/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit e2f13e6

Please sign in to comment.