Skip to content

Commit 881d009

Browse files
committed
Test for navigating to the Dependent Crates page
1 parent 20184db commit 881d009

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/acceptance/crate-test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,16 @@ test('navigating to the all versions page', function(assert) {
3030
matchesText(assert, '.info', /All 12 versions of nanomsg since December \d+, 2014/);
3131
});
3232
});
33+
34+
test('navigating to the reverse dependencies page', function(assert) {
35+
visit('/crates/nanomsg');
36+
click('a:contains("Dependent crates")');
37+
38+
andThen(function() {
39+
assert.equal(currentURL(), '/crates/nanomsg/reverse_dependencies');
40+
41+
const $revDep = findWithAssert('#crate-all-reverse-dependencies a[href="/crates/unicorn-rpc"]:first');
42+
43+
hasText(assert, $revDep, 'unicorn-rpc');
44+
});
45+
});

0 commit comments

Comments
 (0)