Skip to content

Commit

Permalink
Clarify HTTP verb in Form Submission test descriptions
Browse files Browse the repository at this point in the history
Add details to various Form Submission test descriptions to emphasize
the HTTP verb (either `GET` or `POST`) of the `<form>` element being
submitted.
  • Loading branch information
seanpdoyle committed Jul 29, 2023
1 parent a566c74 commit 49e1e2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/functional/form_submission_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ test("test standard form submission does not render a progress bar before expiri
assert.notOk(await hasSelector(page, ".turbo-progress-bar"), "does not show progress bar before delay")
})

test("test standard form submission with redirect response", async ({ page }) => {
test("test standard POST form submission with redirect response", async ({ page }) => {
await page.click("#standard form.redirect input[type=submit]")
await nextBody(page)

Expand Down Expand Up @@ -684,7 +684,7 @@ test("test frame form submission with redirect response", async ({ page }) => {
assert.equal(await page.getAttribute("#frame", "src"), url.href, "redirects the target frame")
})

test("test frame form submission toggles the ancestor frame's [aria-busy] attribute", async ({ page }) => {
test("test frame POST form submission toggles the ancestor frame's [aria-busy] attribute", async ({ page }) => {
await page.click("#frame form.redirect input[type=submit]")
await nextBeat()

Expand All @@ -698,7 +698,7 @@ test("test frame form submission toggles the ancestor frame's [aria-busy] attrib
)
})

test("test frame form submission toggles the target frame's [aria-busy] attribute", async ({ page }) => {
test("test frame POST form submission toggles the target frame's [aria-busy] attribute", async ({ page }) => {
await page.click('#targets-frame form.frame [type="submit"]')
await nextBeat()

Expand Down

0 comments on commit 49e1e2c

Please sign in to comment.