docs(readme): swap locator for getByText (#22059)

This commit is contained in:
Sander 2023-03-29 20:13:55 +02:00 committed by GitHub
parent 6929214dbf
commit 81f3f987be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ test.use({
test('Mobile and geolocation', async ({ page }) => {
await page.goto('https://maps.google.com');
await page.locator('text="Your location"').click();
await page.getByText('Your location').click();
await page.waitForRequest(/.*preview\/pwa/);
await page.screenshot({ path: 'colosseum-iphone.png' });
});