File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,17 @@ module('Acceptance | crate page', function(hooks) {
61
61
} ) ;
62
62
63
63
test ( 'visiting a crate page from the front page' , async function ( assert ) {
64
- this . server . create ( 'crate' , 'withVersion' , { id : 'nanomsg' } ) ;
64
+ this . server . create ( 'crate' , { id : 'nanomsg' , newest_version : '0.6.1' } ) ;
65
+ this . server . create ( 'version' , { crate : 'nanomsg' , num : '0.6.1' } ) ;
65
66
66
67
await visit ( '/' ) ;
67
68
await click ( '[data-test-just-updated] [data-test-crate-link="0"]' ) ;
68
69
69
- assert . equal ( currentURL ( ) , '/crates/nanomsg/6.8.9 ' ) ;
70
+ assert . equal ( currentURL ( ) , '/crates/nanomsg/0.6.1 ' ) ;
70
71
assert . equal ( title ( ) , 'nanomsg - crates.io: Rust Package Registry' ) ;
72
+
73
+ assert . dom ( '[data-test-heading] [data-test-crate-name]' ) . hasText ( 'nanomsg' ) ;
74
+ assert . dom ( '[data-test-heading] [data-test-crate-version]' ) . hasText ( '0.6.1' ) ;
71
75
} ) ;
72
76
73
77
test ( 'visiting /crates/nanomsg' , async function ( assert ) {
You can’t perform that action at this time.
0 commit comments