File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,14 @@ go-to: "file://" + |DOC_PATH| + "/lib2/index.html"
34
34
// We enter it into the search.
35
35
write: (".search-input", "HasALongTraitWithParams")
36
36
wait-for-document-property: {"title": "HasALongTraitWithParams in lib2 - Rust"}
37
- assert-document-property: ({"URL": "/lib2/struct.HasALongTraitWithParams.html"}, ENDS_WITH)
37
+ assert-window-property: ({"location": "/lib2/struct.HasALongTraitWithParams.html"}, ENDS_WITH)
38
+
39
+ // Regression test for <https://github.com/rust-lang/rust/issues/112676>.
40
+ // If "go-to-only-result" is enabled and you go back to history, it should not lead you back to the
41
+ // page result again automatically.
42
+ history-go-back:
43
+ wait-for-document-property: {"title": "lib2 - Rust"}
44
+ assert-window-property: ({"location": "/lib2/index.html"}, ENDS_WITH)
38
45
39
46
// We try again to see if it goes to the only result
40
47
go-to: "file://" + |DOC_PATH| + "/lib2/index.html?search=HasALongTraitWithParams"
You can’t perform that action at this time.
0 commit comments