These tests have been flaky, and in general it was probably unwise to try to rely on an external site like this. I was unable to determine exactly why the test is failing. The page loads, and then puppeteer throws an error. I don't know if it is really feasible to bring these back in some form. It's probably more effort than it is worth. Closes https://github.com/rust-lang/mdBook/issues/2765
41 lines
2 KiB
Text
41 lines
2 KiB
Text
go-to: |DOC_PATH| + "format/config.html"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html"})
|
|
|
|
// Check that it preserves fragments when redirecting.
|
|
go-to: |DOC_PATH| + "format/config.html#fragment"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html#fragment"})
|
|
|
|
// The fragment one here isn't necessary, but should still work.
|
|
go-to: |DOC_PATH| + "pointless-fragment.html"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html"})
|
|
go-to: |DOC_PATH| + "pointless-fragment.html#foo"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html#foo"})
|
|
|
|
// Page rename, and a fragment rename.
|
|
go-to: |DOC_PATH| + "rename-page-and-fragment.html"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html"})
|
|
go-to: |DOC_PATH| + "rename-page-and-fragment.html#orig"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html#new"})
|
|
|
|
// Page rename, and the fragment goes to a *different* page from the default.
|
|
go-to: |DOC_PATH| + "rename-page-fragment-elsewhere.html"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html"})
|
|
go-to: |DOC_PATH| + "rename-page-fragment-elsewhere.html#orig"
|
|
assert-window-property: ({"location": |DOC_PATH| + "suffix.html#new"})
|
|
|
|
// Rename fragment on an existing page.
|
|
go-to: |DOC_PATH| + "prefix.html#orig"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html#new"})
|
|
|
|
// Other fragments aren't affected.
|
|
go-to: |DOC_PATH| + "index.html" // Reset page since redirects are processed on load.
|
|
go-to: |DOC_PATH| + "prefix.html"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html"})
|
|
go-to: |DOC_PATH| + "index.html" // Reset page since redirects are processed on load.
|
|
go-to: |DOC_PATH| + "prefix.html#dont-change"
|
|
assert-window-property: ({"location": |DOC_PATH| + "prefix.html#dont-change"})
|
|
|
|
// Rename fragment on an existing page to another page.
|
|
go-to: |DOC_PATH| + "index.html" // Reset page since redirects are processed on load.
|
|
go-to: |DOC_PATH| + "prefix.html#orig-new-page"
|
|
assert-window-property: ({"location": |DOC_PATH| + "suffix.html#new"})
|