Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renable ignored tests #440

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions tests/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,16 @@ fn loads_js() {
assert!(page.contents.contains(r#"<script src="/artifacts.js">"#));
}

#[ignore]
#[test]
fn creates_download_for_mac() {
let _guard = TEST_RUNTIME.enter();
let (_t, temp_dir) = temp_build_dir();
let config = oranda_config::cargo_dist(temp_dir);
let layout = Layout::new(&config).unwrap();
let page = page::index_with_artifacts(&config, &layout);
assert!(page.contents.contains(r#"<span class="detect">We have detected you are on <span class="detected-os">mac</span>, are we wrong?</span>"#));
assert!(page
.contents
.contains(r#"<option value="x86_64-apple-darwin">x64 macOS</option>"#));
}

#[test]
Expand Down Expand Up @@ -214,7 +215,6 @@ fn creates_copy_to_clipboard_artifacts() {
}

#[test]
#[ignore]
fn adds_prefix() {
let _guard = TEST_RUNTIME.enter();
let (_t, temp_dir) = temp_build_dir();
Expand All @@ -224,10 +224,9 @@ fn adds_prefix() {
assert!(page.contents.contains("<script src=\"/axo/artifacts.js\">"));
assert!(page
.contents
.contains(r#"<a href="/axo/artifacts/">View all installation options</a>"#))
.contains(r#"href="/axo/artifacts/">View all installation options.</a>"#))
}

#[ignore]
#[test]
fn adds_prefix_with_package_managers() {
let _guard = TEST_RUNTIME.enter();
Expand All @@ -236,9 +235,6 @@ fn adds_prefix_with_package_managers() {
let layout = Layout::new(&config).unwrap();
let page = page::index_with_artifacts(&config, &layout);
assert!(page.contents.contains("<script src=\"/axo/artifacts.js\">"));
assert!(page
.contents
.contains(r#"<a class="download-all" href="/axo/artifacts.html">View all downloads</a>"#));
}

#[test]
Expand Down