summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOliver <oliver@mohlin.dev>2025-05-07 17:45:43 +0200
committerTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-05-27 21:38:04 +0200
commit28adbe09380800edf0712b9c1e98ba6ee55cb5f4 (patch)
tree5d6d2aac2da26bea564f0faffa97465e395bf6e0
parentc50a802ec4658c6bdfc9c00ba4be261bfec915bf (diff)
downloadmullvadvpn-28adbe09380800edf0712b9c1e98ba6ee55cb5f4.tar.xz
mullvadvpn-28adbe09380800edf0712b9c1e98ba6ee55cb5f4.zip
Move LAN sharing settings test to vpn settings test file
-rw-r--r--desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/settings.spec.ts18
-rw-r--r--desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/vpn-settings/vpn-settings.spec.ts18
2 files changed, 18 insertions, 18 deletions
diff --git a/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/settings.spec.ts b/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/settings.spec.ts
index 007e8a22da..22d45ba81e 100644
--- a/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/settings.spec.ts
+++ b/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/settings.spec.ts
@@ -86,22 +86,4 @@ test.describe('VPN Settings', () => {
const autoConnectToggle = page.getByText('Auto-connect').locator('..').getByRole('checkbox');
await autoConnectToggle.click();
});
-
- test('LAN settings', async () => {
- // Find the LAN toggle
- const lanToggle = page.getByText('Local network sharing').locator('..').getByRole('checkbox');
-
- // Check initial state
- const initialCliState = execSync('mullvad lan get').toString().trim();
- expect(initialCliState).toMatch(/block$/);
- await expect(lanToggle).toHaveAttribute('aria-checked', 'false');
-
- // Toggle LAN setting
- await lanToggle.click();
-
- // Verify the setting was applied correctly
- await expect(lanToggle).toHaveAttribute('aria-checked', 'true');
- const newState = execSync('mullvad lan get').toString().trim();
- expect(newState).toMatch(/allow$/);
- });
});
diff --git a/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/vpn-settings/vpn-settings.spec.ts b/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/vpn-settings/vpn-settings.spec.ts
index 994363ebea..9dbab30770 100644
--- a/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/vpn-settings/vpn-settings.spec.ts
+++ b/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/vpn-settings/vpn-settings.spec.ts
@@ -115,4 +115,22 @@ test.describe('VPN settings', () => {
expect(cliAutoConnect).toContain('on');
});
});
+
+ test('LAN settings', async () => {
+ // Find the LAN toggle
+ const lanToggle = page.getByText('Local network sharing').locator('..').getByRole('checkbox');
+
+ // Check initial state
+ const initialCliState = execSync('mullvad lan get').toString().trim();
+ expect(initialCliState).toMatch(/block$/);
+ await expect(lanToggle).toHaveAttribute('aria-checked', 'false');
+
+ // Toggle LAN setting
+ await lanToggle.click();
+
+ // Verify the setting was applied correctly
+ await expect(lanToggle).toHaveAttribute('aria-checked', 'true');
+ const newState = execSync('mullvad lan get').toString().trim();
+ expect(newState).toMatch(/allow$/);
+ });
});