Skip to content

Commit 495738a

Browse files
committed
Leap year test fix
1 parent e5d9ec7 commit 495738a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

e2e/specs/stateless/ownership.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,8 @@ test.describe('Extend name', () => {
11751175
await extendNamesModal.getExtendButton.click()
11761176
await transactionModal.autoComplete()
11771177
const newTimestamp = await ownershipPage.getExpiryTimestamp()
1178-
expect(newTimestamp).toEqual(timestamp + 31536000000)
1178+
// Allow 1 day tolerance for leap year differences
1179+
expect(Math.abs(newTimestamp - timestamp - 31536000000)).toBeLessThanOrEqual(86400000)
11791180
})
11801181
})
11811182
})

0 commit comments

Comments
 (0)