Skip to content

Commit 987fed3

Browse files
chore: update browser example to point to correct element (#1652)
1 parent b456f70 commit 987fed3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/sources/next/using-k6-browser/running-browser-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export async function browserTest() {
329329
330330
await page.locator('#checkbox1').check();
331331
332-
const info = await page.locator('#counter-button').textContent();
332+
const info = await page.locator('#checkbox-info-display').textContent();
333333
check(info, {
334334
'checkbox is checked': (info) => info === 'Thanks for checking the box',
335335
});

docs/sources/v0.52.x/using-k6-browser/running-browser-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export async function browserTest() {
329329
330330
await page.locator('#checkbox1').check();
331331
332-
const info = await page.locator('#counter-button').textContent();
332+
const info = await page.locator('#checkbox-info-display').textContent();
333333
check(info, {
334334
'checkbox is checked': (info) => info === 'Thanks for checking the box',
335335
});

0 commit comments

Comments
 (0)