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", () => {
10311031 `/form-method?method=${ method } &submitterFormMethod=${ overrideMethod } ` ,
10321032 true
10331033 ) ;
1034- await app . clickElement ( `text=Submit with ${ overrideMethod } ` ) ;
1034+ await page . locator ( `text=Submit with ${ overrideMethod } ` ) . click ( ) ;
10351035 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
10391038 ) ;
10401039 }
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" ) ;
10441041 } ) ;
10451042 } ) ;
10461043 } ) ;
You can’t perform that action at this time.
0 commit comments