diff options
| author | Hank <hank@mullvad.net> | 2022-10-07 11:01:55 +0200 |
|---|---|---|
| committer | Hank <hank@mullvad.net> | 2022-10-07 11:01:55 +0200 |
| commit | fc57836b0579f44ad477cc028fedc88f7884c8e7 (patch) | |
| tree | 9c34d4de033b750aff891707a765f8e9342c33d2 /gui | |
| parent | 725a6939c1f273f48ef583f89742c9e54f79468e (diff) | |
| parent | 03151066fb74cf3e9b9a81b0a692eed38b3cdee2 (diff) | |
| download | mullvadvpn-fc57836b0579f44ad477cc028fedc88f7884c8e7.tar.xz mullvadvpn-fc57836b0579f44ad477cc028fedc88f7884c8e7.zip | |
Merge branch 'fix-flaky-test'
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/test/e2e/mocked/settings.spec.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/test/e2e/mocked/settings.spec.ts b/gui/test/e2e/mocked/settings.spec.ts index 510c5e97e6..dc45e07d09 100644 --- a/gui/test/e2e/mocked/settings.spec.ts +++ b/gui/test/e2e/mocked/settings.spec.ts @@ -33,10 +33,11 @@ test('Account button should be displayed correctly', async () => { /** * 729 days left + * Add a one-second margin to the test, since it randomly fails in Github Actions otherwise */ await sendMockIpcResponse<IAccountData>({ channel: 'account-', - response: { expiry: new Date(Date.now() + 730 * 24 * 60 * 60 * 1000).toISOString() }, + response: { expiry: new Date(Date.now() + 730 * 24 * 60 * 60 * 1000 - 1000).toISOString() }, }); expiryText = accountButton.locator('span'); await expect(expiryText).toContainText(/729 days left/i); |
