diff options
| author | Hank <hank@mullvad.net> | 2022-10-07 10:45:55 +0200 |
|---|---|---|
| committer | Hank <hank@mullvad.net> | 2022-10-07 11:01:28 +0200 |
| commit | 03151066fb74cf3e9b9a81b0a692eed38b3cdee2 (patch) | |
| tree | 9c34d4de033b750aff891707a765f8e9342c33d2 | |
| parent | 725a6939c1f273f48ef583f89742c9e54f79468e (diff) | |
| download | mullvadvpn-03151066fb74cf3e9b9a81b0a692eed38b3cdee2.tar.xz mullvadvpn-03151066fb74cf3e9b9a81b0a692eed38b3cdee2.zip | |
Add a one-second margin to flaky test
| -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); |
