summaryrefslogtreecommitdiffhomepage
path: root/gui/test
diff options
context:
space:
mode:
Diffstat (limited to 'gui/test')
-rw-r--r--gui/test/e2e/mocked/tunnel-state.spec.ts6
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();