diff --git a/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/custom-bridge.spec.ts b/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/custom-bridge.spec.ts index 34efb60f268b..c022329e7495 100644 --- a/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/custom-bridge.spec.ts +++ b/desktop/packages/mullvad-vpn/test/e2e/installed/state-dependent/custom-bridge.spec.ts @@ -36,10 +36,9 @@ test('App should enable bridge mode', async () => { RoutePath.openVpnSettings, ); - await page.getByTestId('bridge-mode-on').click(); - await expect(page.getByText('Enable bridge mode?')).toBeVisible(); - - await page.getByTestId('enable-confirm').click(); + const bridgeModeOnButton = page.getByTestId('bridge-mode-on'); + await bridgeModeOnButton.click(); + await expect(bridgeModeOnButton).toHaveAttribute('aria-selected', 'true'); await util.waitForNavigation(() => page.click('button[aria-label="Back"]')); await util.waitForNavigation(() => page.click('button[aria-label="Back"]'));