@@ -64,40 +64,32 @@ test('navigating to the reverse dependencies page', async function(assert) {
64
64
hasText ( assert , $revDep , 'unicorn-rpc' ) ;
65
65
} ) ;
66
66
67
- test ( 'navigating to a user page' , function ( assert ) {
68
- visit ( '/crates/nanomsg' ) ;
69
- click ( '.owners li:last a' ) ;
70
-
71
- andThen ( function ( ) {
72
- assert . equal ( currentURL ( ) , '/users/blabaere' ) ;
73
- hasText ( assert , '#crates-heading h1' , 'thehydroimpulse' ) ;
74
- } ) ;
67
+ test ( 'navigating to a user page' , async function ( assert ) {
68
+ await visit ( '/crates/nanomsg' ) ;
69
+ await click ( '.owners li:last a' ) ;
70
+
71
+ assert . equal ( currentURL ( ) , '/users/blabaere' ) ;
72
+ hasText ( assert , '#crates-heading h1' , 'thehydroimpulse' ) ;
75
73
} ) ;
76
74
77
- test ( 'navigating to a team page' , function ( assert ) {
78
- visit ( '/crates/nanomsg' ) ;
79
- click ( '.owners li:first a ' ) ;
75
+ test ( 'navigating to a team page' , async function ( assert ) {
76
+ await visit ( '/crates/nanomsg' ) ;
77
+ await click ( '.owners li:first a ' ) ;
80
78
81
- andThen ( function ( ) {
82
- assert . equal ( currentURL ( ) , '/teams/github:org:thehydroimpulse' ) ;
83
- hasText ( assert , '.team-info h2' , 'thehydroimpulseteam' ) ;
84
- } ) ;
79
+ assert . equal ( currentURL ( ) , '/teams/github:org:thehydroimpulse' ) ;
80
+ hasText ( assert , '.team-info h2' , 'thehydroimpulseteam' ) ;
85
81
} ) ;
86
82
87
- test ( 'crates having user-owners' , function ( assert ) {
88
- visit ( '/crates/nanomsg' ) ;
83
+ test ( 'crates having user-owners' , async function ( assert ) {
84
+ await visit ( '/crates/nanomsg' ) ;
89
85
90
- andThen ( function ( ) {
91
- findWithAssert ( 'ul.owners li:first a[href="/teams/github:org:thehydroimpulse"] img[src="https://avatars.githubusercontent.com/u/565790?v=3&s=64"]' ) ;
92
- assert . equal ( find ( 'ul.owners li' ) . length , 4 ) ;
93
- } ) ;
86
+ findWithAssert ( 'ul.owners li:first a[href="/teams/github:org:thehydroimpulse"] img[src="https://avatars.githubusercontent.com/u/565790?v=3&s=64"]' ) ;
87
+ assert . equal ( find ( 'ul.owners li' ) . length , 4 ) ;
94
88
} ) ;
95
89
96
- test ( 'crates having team-owners' , function ( assert ) {
97
- visit ( '/crates/nanomsg' ) ;
90
+ test ( 'crates having team-owners' , async function ( assert ) {
91
+ await visit ( '/crates/nanomsg' ) ;
98
92
99
- andThen ( function ( ) {
100
- findWithAssert ( 'ul.owners li:first a[href="/teams/github:org:thehydroimpulse"]' ) ;
101
- assert . equal ( find ( 'ul.owners li' ) . length , 4 ) ;
102
- } ) ;
93
+ findWithAssert ( 'ul.owners li:first a[href="/teams/github:org:thehydroimpulse"]' ) ;
94
+ assert . equal ( find ( 'ul.owners li' ) . length , 4 ) ;
103
95
} ) ;
0 commit comments