diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-02-27 14:54:39 +0100 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-04-28 12:53:03 +0200 |
| commit | b17ef0b91c32388abd6c549ff83380515c5ef352 (patch) | |
| tree | 8c1803accc8eb14c97a01f14c39b4ca56479164b | |
| parent | d1a69ba42e9ee45a852418dcd0cf6c8487b478e0 (diff) | |
| download | mullvadvpn-b17ef0b91c32388abd6c549ff83380515c5ef352.tar.xz mullvadvpn-b17ef0b91c32388abd6c549ff83380515c5ef352.zip | |
Ensure we only target one element with inIp locator
This locator currently can be resolved to two elements.
See:
https://github.com/mullvad/mullvadvpn-app/actions/runs/13564177651/job/37914262416#step:9:985
| -rw-r--r-- | desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/tunnel-state.spec.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/tunnel-state.spec.ts b/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/tunnel-state.spec.ts index 8129de2d17..edeabf9c62 100644 --- a/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/tunnel-state.spec.ts +++ b/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/tunnel-state.spec.ts @@ -37,7 +37,7 @@ test('App should connect', async () => { await expectConnected(page); const relay = page.getByTestId('hostname-line'); - const inIp = page.getByText('In', { exact: true }).locator('+ span'); + const inIp = page.getByTestId('in-ip'); // If IPv6 is enabled, there will be two "Out" IPs, one for IPv4 and one for IPv6 // Selecting the first resolves to the IPv4 address regardless of the IP setting const outIp = page.locator(':text("Out") + div > span').first(); |
