File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ <h1>Navigation</h1>
35
35
< p > < a id ="same-origin-unannotated-link " href ="/src/tests/fixtures/one.html "> Same-origin unannotated link</ a > </ p >
36
36
< p > < form id ="same-origin-unannotated-form " method ="get " action ="/src/tests/fixtures/one.html "> < button > Same-origin unannotated form</ button > </ form > </ p >
37
37
< p > < a id ="same-origin-replace-link " href ="/src/tests/fixtures/one.html " data-turbo-action ="replace "> Same-origin data-turbo-action=replace link</ a > </ p >
38
- < p > < form id ="same-origin-replace-form " method =" get " action ="/src/tests/fixtures/one.html " data-turbo-action ="replace "> < button > Same-origin data-turbo-action=replace form</ button > </ form > </ p >
39
- < p > < form id ="same-origin-replace-form-submitter " method =" get " action ="/src/tests/fixtures/one.html "> < button data-turbo-action ="replace "> Same-origin data-turbo-action=replace form</ button > </ form > </ p >
38
+ < p > < form id ="same-origin-replace-form- get " action ="/src/tests/fixtures/one.html " data-turbo-action ="replace "> < button > Same-origin data-turbo-action=replace form</ button > </ form > </ p >
39
+ < p > < form id ="same-origin-replace-form-submitter- get " action ="/src/tests/fixtures/one.html "> < button data-turbo-action ="replace "> Same-origin data-turbo-action=replace form</ button > </ form > </ p >
40
40
< p > < a id ="same-origin-false-link " href ="/src/tests/fixtures/one.html " data-turbo ="false "> Same-origin data-turbo=false link</ a > </ p >
41
41
< p data-turbo ="false "> < a id ="same-origin-unannotated-link-inside-false-container " href ="/src/tests/fixtures/one.html "> Same-origin unannotated link inside data-turbo=false container</ a > </ p >
42
42
< p data-turbo ="false "> < a id ="same-origin-true-link-inside-false-container " href ="/src/tests/fixtures/one.html " data-turbo ="true "> Same-origin data-turbo=true link inside data-turbo=false container</ a > </ p >
Original file line number Diff line number Diff line change @@ -63,15 +63,15 @@ export class NavigationTests extends TurboDriveTestCase {
63
63
this . assert . equal ( await this . visitAction , "replace" )
64
64
}
65
65
66
- async "test following a same-origin data-turbo-action=replace form[method=GET ]" ( ) {
67
- this . clickSelector ( "#same-origin-replace-form button" )
66
+ async "test following a same-origin GET form[ data-turbo-action=replace]" ( ) {
67
+ this . clickSelector ( "#same-origin-replace-form-get button" )
68
68
await this . nextBody
69
69
this . assert . equal ( await this . pathname , "/src/tests/fixtures/one.html" )
70
70
this . assert . equal ( await this . visitAction , "replace" )
71
71
}
72
72
73
- async "test following a same-origin form with button[data-turbo-action=replace]" ( ) {
74
- this . clickSelector ( "#same-origin-replace-form-submitter button" )
73
+ async "test following a same-origin GET form button[data-turbo-action=replace]" ( ) {
74
+ this . clickSelector ( "#same-origin-replace-form-submitter-get button" )
75
75
await this . nextBody
76
76
this . assert . equal ( await this . pathname , "/src/tests/fixtures/one.html" )
77
77
this . assert . equal ( await this . visitAction , "replace" )
You can’t perform that action at this time.
0 commit comments