Skip to content

Commit

Permalink
Refactor bridge mode test to not expect dialog and verify selection
Browse files Browse the repository at this point in the history
  • Loading branch information
olmoh committed Jan 7, 2025
1 parent 7eb54f3 commit a1b4cf2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]'));
Expand Down

0 comments on commit a1b4cf2

Please sign in to comment.