File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1031,16 +1031,13 @@ test.describe("Forms", () => {
1031
1031
`/form-method?method=${ method } &submitterFormMethod=${ overrideMethod } ` ,
1032
1032
true
1033
1033
) ;
1034
- await app . clickElement ( `text=Submit with ${ overrideMethod } ` ) ;
1034
+ await page . locator ( `text=Submit with ${ overrideMethod } ` ) . click ( ) ;
1035
1035
if ( overrideMethod !== "GET" ) {
1036
- await page . waitForSelector ( "#action-method" ) ;
1037
- expect ( await app . getHtml ( "pre#action-method" ) ) . toBe (
1038
- `<pre id="action-method">${ overrideMethod } </pre>`
1036
+ await expect ( page . locator ( "pre#action-method" ) ) . toHaveText (
1037
+ overrideMethod
1039
1038
) ;
1040
1039
}
1041
- expect ( await app . getHtml ( "pre#loader-method" ) ) . toBe (
1042
- `<pre id="loader-method">GET</pre>`
1043
- ) ;
1040
+ await expect ( page . locator ( "pre#loader-method" ) ) . toHaveText ( "GET" ) ;
1044
1041
} ) ;
1045
1042
} ) ;
1046
1043
} ) ;
You can’t perform that action at this time.
0 commit comments