Skip to content

Commit

Permalink
Ensure we only target one element with inIp locator
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-jarvelov committed Mar 3, 2025
1 parent 6e6d491 commit 46b52f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 46b52f4

Please sign in to comment.