Skip to content

Commit

Permalink
renable ignored tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Jun 22, 2023
1 parent 4d4111b commit 64d6adb
Showing 1 changed file with 4 additions and 8 deletions.
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

0 comments on commit 64d6adb

Please sign in to comment.