diff --git a/tests/rendered_output.rs b/tests/rendered_output.rs
index 88d44fef..47b5fc9f 100644
--- a/tests/rendered_output.rs
+++ b/tests/rendered_output.rs
@@ -72,27 +72,6 @@ fn check_correct_cross_links_in_nested_dir() {
);
}
-#[test]
-fn check_correct_relative_links_in_print_page() {
- let temp = DummyBook::new().build().unwrap();
- let md = MDBook::load(temp.path()).unwrap();
- md.build().unwrap();
-
- let first = temp.path().join("book");
-
- assert_contains_strings(
- first.join("print.html"),
- &[
- r##"the first section,"##,
- r##"outside"##,
- r##"
"##,
- r##"fragment link"##,
- r##"HTML Link"##,
- r##"
"##,
- ],
- );
-}
-
#[test]
fn chapter_content_appears_in_rendered_document() {
let content = vec![
diff --git a/tests/testsuite/main.rs b/tests/testsuite/main.rs
index daec2814..298cf12d 100644
--- a/tests/testsuite/main.rs
+++ b/tests/testsuite/main.rs
@@ -11,6 +11,7 @@ mod init;
mod markdown;
mod playground;
mod preprocessor;
+mod print;
mod prelude {
pub use crate::book_test::BookTest;
diff --git a/tests/testsuite/print.rs b/tests/testsuite/print.rs
new file mode 100644
index 00000000..bac27a06
--- /dev/null
+++ b/tests/testsuite/print.rs
@@ -0,0 +1,23 @@
+//! Tests for print page.
+
+use crate::prelude::*;
+
+// Tests relative links from the print page.
+#[test]
+fn relative_links() {
+ BookTest::from_dir("print/relative_links")
+ .check_main_file("book/print.html",
+ str
+
+
+## Some section