diff options
| author | Oliver <oliver@mohlin.dev> | 2025-05-07 17:45:43 +0200 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-05-27 21:38:04 +0200 |
| commit | 28adbe09380800edf0712b9c1e98ba6ee55cb5f4 (patch) | |
| tree | 5d6d2aac2da26bea564f0faffa97465e395bf6e0 | |
| parent | c50a802ec4658c6bdfc9c00ba4be261bfec915bf (diff) | |
| download | mullvadvpn-28adbe09380800edf0712b9c1e98ba6ee55cb5f4.tar.xz mullvadvpn-28adbe09380800edf0712b9c1e98ba6ee55cb5f4.zip | |
Move LAN sharing settings test to vpn settings test file
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$/); + }); }); |
