diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-09-26 16:16:14 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-11-30 10:36:19 +0100 |
| commit | b2c24898e5e871f78fc1b65a7f19789a9388a2a2 (patch) | |
| tree | fac50589f5b11efbc8f7715064a6b9c53bddf56c | |
| parent | 6f15a08566c716237b0b51bced94ee849f899ca2 (diff) | |
| download | mullvadvpn-b2c24898e5e871f78fc1b65a7f19789a9388a2a2.tar.xz mullvadvpn-b2c24898e5e871f78fc1b65a7f19789a9388a2a2.zip | |
Remove await from appWindow.locator in tests
| -rw-r--r-- | gui/test/e2e/mocked/tunnel-state.spec.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/test/e2e/mocked/tunnel-state.spec.ts b/gui/test/e2e/mocked/tunnel-state.spec.ts index c1f0317e24..77ee715103 100644 --- a/gui/test/e2e/mocked/tunnel-state.spec.ts +++ b/gui/test/e2e/mocked/tunnel-state.spec.ts @@ -2,9 +2,9 @@ import { expect, test } from '@playwright/test'; import { Page } from 'playwright'; import { colors } from '../../../src/config.json'; -import { ILocation, ITunnelEndpoint, TunnelState } from '../../../src/shared/daemon-rpc-types'; -import { getBackgroundColor, getColor } from '../utils'; import { startAppWithMocking, MockIpcHandle, SendMockIpcResponse } from './mocked-utils'; +import { ErrorStateCause, ILocation, ITunnelEndpoint, TunnelState } from '../../../src/shared/daemon-rpc-types'; +import { getBackgroundColor, getColor } from '../utils'; const UNSECURED_COLOR = colors.red; const SECURE_COLOR = colors.green; @@ -161,7 +161,7 @@ test('App should show error tunnel state', async () => { await sendMockIpcResponse<TunnelState>({ channel: 'tunnel-', - response: { state: 'error', details: { cause: { reason: 'is_offline' } } }, + response: { state: 'error', details: { cause: ErrorStateCause.isOffline } }, }); const statusLabel = getLabel(); |
