Skip to content

Commit 26c0fdb

Browse files
authored
Merge pull request #485 from integer32llc/fix-version-test
Fix the frontend search test looking for the version
2 parents b70e2f6 + c0c88a6 commit 26c0fdb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: rust
2-
rust: nightly
2+
rust: stable
33
sudo: false
44

55
cache:

tests/acceptance/search-test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ test('searching for "rust"', function(assert) {
2121
hasText(assert, '#crates-heading', 'Search Results for \'rust\'');
2222
hasText(assert, '#results', 'Displaying 1-10 of 18 total results Sort by Relevance Relevance Downloads');
2323

24-
hasText(assert, '#crates .row:first .desc .info', 'rust_mixin 0.0.1');
24+
hasText(assert, '#crates .row:first .desc .info', 'rust_mixin');
25+
findWithAssert('#crates .row:first .desc .info .vers img[alt="0.0.1"]');
2526
hasText(assert, '#crates .row:first .desc .summary', 'Yo dawg, use Rust to generate Rust, right in your Rust. (See `external_mixin` to use scripting languages.)');
2627
hasText(assert, '#crates .row:first .downloads', '477');
2728
});
@@ -37,6 +38,7 @@ test('searching for "rust"', function(assert) {
3738
hasText(assert, '#crates-heading', 'Search Results for \'rust\'');
3839
hasText(assert, '#results', 'Displaying 11-18 of 18 total results Sort by Relevance Relevance Downloads');
3940

40-
hasText(assert, '#crates .row:first .desc .info', 'rusted_cypher 0.7.1');
41+
hasText(assert, '#crates .row:first .desc .info', 'rusted_cypher');
42+
findWithAssert('#crates .row:first .desc .info .vers img[alt="0.7.1"]');
4143
});
4244
});

0 commit comments

Comments
 (0)