Skip to content

Commit

Permalink
Resolve TypeScript build error
Browse files Browse the repository at this point in the history
Merging [9c74f77][] introduced a TypeScript build error, which is
failing our CI build. This commit replaces the old `formSubmitted`
helper with the newer `formSubmitEnded`.

[9c74f77]: 9c74f77#diff-225e8f674fa1e4fd108c22a917fd5673e51909d4a5d8958e4874ae9e402dca2f
  • Loading branch information
seanpdoyle committed Nov 13, 2021
1 parent 9e0a9b4 commit 23963f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/functional/form_submission_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,14 +584,14 @@ export class FormSubmissionTests extends TurboDriveTestCase {
await this.clickSelector('#dialog-formmethod-turbo-frame [formmethod="dialog"]')
await this.nextBeat

this.assert.notOk(await this.formSubmitted)
this.assert.notOk(await this.formSubmitEnded)
}

async "test form submission targetting frame skipped within method=dialog"() {
await this.clickSelector('#dialog-method-turbo-frame button')
await this.nextBeat

this.assert.notOk(await this.formSubmitted)
this.assert.notOk(await this.formSubmitEnded)
}

async "test form submission targetting frame skipped with submitter formmethod=dialog"() {
Expand Down

0 comments on commit 23963f1

Please sign in to comment.