@@ -188,7 +188,7 @@ test("supports transforming a POST submission to a GET in a turbo:submit-start l
188
188
test ( "supports transforming a GET submission to a POST in a turbo:submit-start listener" , async ( { page } ) => {
189
189
await page . evaluate ( ( ) =>
190
190
addEventListener ( "turbo:submit-start" , ( ( { detail } ) => {
191
- detail . formSubmission . method = "post "
191
+ detail . formSubmission . method = "POST "
192
192
detail . formSubmission . body . set ( "path" , "/src/tests/fixtures/one.html" )
193
193
detail . formSubmission . body . set ( "greeting" , "Hello, from an event listener" )
194
194
} ) )
@@ -992,7 +992,7 @@ test("link method form submission submits a single request", async ({ page }) =>
992
992
const { fetchOptions } = await nextEventNamed ( page , "turbo:before-fetch-request" )
993
993
994
994
assert . ok ( await noNextEventNamed ( page , "turbo:before-fetch-request" ) )
995
- assert . equal ( fetchOptions . method , "post " , "[data-turbo-method] overrides the GET method" )
995
+ assert . equal ( fetchOptions . method , "POST " , "[data-turbo-method] overrides the GET method" )
996
996
assert . equal ( requestCounter , 1 , "submits a single HTTP request" )
997
997
} )
998
998
@@ -1006,7 +1006,7 @@ test("link method form submission inside frame submits a single request", async
1006
1006
const { fetchOptions } = await nextEventNamed ( page , "turbo:before-fetch-request" )
1007
1007
1008
1008
assert . ok ( await noNextEventNamed ( page , "turbo:before-fetch-request" ) )
1009
- assert . equal ( fetchOptions . method , "post " , "[data-turbo-method] overrides the GET method" )
1009
+ assert . equal ( fetchOptions . method , "POST " , "[data-turbo-method] overrides the GET method" )
1010
1010
assert . equal ( requestCounter , 1 , "submits a single HTTP request" )
1011
1011
} )
1012
1012
@@ -1020,7 +1020,7 @@ test("link method form submission targeting frame submits a single request", asy
1020
1020
const { fetchOptions } = await nextEventNamed ( page , "turbo:before-fetch-request" )
1021
1021
1022
1022
assert . ok ( await noNextEventNamed ( page , "turbo:before-fetch-request" ) )
1023
- assert . equal ( fetchOptions . method , "post " , "[data-turbo-method] overrides the GET method" )
1023
+ assert . equal ( fetchOptions . method , "POST " , "[data-turbo-method] overrides the GET method" )
1024
1024
assert . equal ( requestCounter , 2 , "submits a single HTTP request then follows a redirect" )
1025
1025
} )
1026
1026
0 commit comments