mirror of
https://github.com/documenso/documenso.git
synced 2026-07-23 00:13:46 +10:00
test(e2e): assert audit-log page growth instead of exact count
This commit is contained in:
@@ -166,7 +166,9 @@ test.describe('Document audit log embedding', () => {
|
|||||||
await expect(async () => {
|
await expect(async () => {
|
||||||
const signedPageCount = await getFirstEnvelopeItemSignedPageCount(envelope.id, signer.token);
|
const signedPageCount = await getFirstEnvelopeItemSignedPageCount(envelope.id, signer.token);
|
||||||
|
|
||||||
expect(signedPageCount).toBe(baselinePageCount + 1);
|
// The audit log may span multiple pages depending on the number of
|
||||||
|
// audit events — assert growth rather than an exact page count.
|
||||||
|
expect(signedPageCount).toBeGreaterThan(baselinePageCount);
|
||||||
}).toPass();
|
}).toPass();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user