Skip to content

Commit e957118

Browse files
revert extra changes in tests
1 parent 7f0e670 commit e957118

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

src/codegen/browser/__snapshots__/browser/locators/get-by-alt-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default async function () {
1515
const page = await browser.newPage();
1616

1717
try {
18-
await page.getByAltText("Grot is happy", { exact: true }).click();
18+
await page.getByAltText("Grot is happy").click();
1919
} finally {
2020
await page?.close();
2121
}

src/codegen/browser/__snapshots__/browser/locators/get-by-label.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default async function () {
1515
const page = await browser.newPage();
1616

1717
try {
18-
await page.getByLabel("Username", { exact: true }).fill("my-username");
18+
await page.getByLabel("Username").fill("my-username");
1919
} finally {
2020
await page?.close();
2121
}

src/codegen/browser/__snapshots__/browser/locators/get-by-placeholder.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ export default async function () {
1515
const page = await browser.newPage();
1616

1717
try {
18-
await page
19-
.getByPlaceholder("Enter your email", { exact: true })
20-
.fill("test@example.com");
18+
await page.getByPlaceholder("Enter your email").fill("test@example.com");
2119
} finally {
2220
await page?.close();
2321
}

src/codegen/browser/__snapshots__/browser/locators/get-by-title.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default async function () {
1515
const page = await browser.newPage();
1616

1717
try {
18-
await page.getByTitle("Submit your form", { exact: true }).click();
18+
await page.getByTitle("Submit your form").click();
1919
} finally {
2020
await page?.close();
2121
}

src/codegen/browser/__snapshots__/browser/wait-for-statement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default async function () {
1616

1717
try {
1818
await page
19-
.getByTitle("Submit your form", { exact: true })
19+
.getByTitle("Submit your form")
2020
.waitFor({ timeout: 5000, state: "hidden" });
2121
} finally {
2222
await page?.close();

src/codegen/browser/codegen.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ it('should emit a getByAltText locator', async ({ expect }) => {
10441044
nodeId: 'locator',
10451045
selector: {
10461046
type: 'alt',
1047-
text: { value: 'Grot is happy', exact: true },
1047+
text: { value: 'Grot is happy' },
10481048
},
10491049
inputs: { page: { nodeId: 'page' } },
10501050
},
@@ -1085,7 +1085,7 @@ it('should emit a getByLabel locator', async ({ expect }) => {
10851085
nodeId: 'locator',
10861086
selector: {
10871087
type: 'label',
1088-
text: { value: 'Username', exact: true },
1088+
text: { value: 'Username' },
10891089
},
10901090
inputs: { page: { nodeId: 'page' } },
10911091
},
@@ -1120,7 +1120,7 @@ it('should emit a getByPlaceholder locator', async ({ expect }) => {
11201120
nodeId: 'locator',
11211121
selector: {
11221122
type: 'placeholder',
1123-
text: { value: 'Enter your email', exact: true },
1123+
text: { value: 'Enter your email' },
11241124
},
11251125
inputs: { page: { nodeId: 'page' } },
11261126
},
@@ -1155,7 +1155,7 @@ it('should emit a getByTitle locator', async ({ expect }) => {
11551155
nodeId: 'locator',
11561156
selector: {
11571157
type: 'title',
1158-
text: { value: 'Submit your form', exact: true },
1158+
text: { value: 'Submit your form' },
11591159
},
11601160
inputs: { page: { nodeId: 'page' } },
11611161
},
@@ -1196,7 +1196,7 @@ it('should emit a waitFor statement', async ({ expect }) => {
11961196
nodeId: 'locator',
11971197
selector: {
11981198
type: 'title',
1199-
text: { value: 'Submit your form', exact: true },
1199+
text: { value: 'Submit your form' },
12001200
},
12011201
inputs: { page: { nodeId: 'page' } },
12021202
},

0 commit comments

Comments
 (0)