@@ -8,13 +8,13 @@ import { setupApplicationTest } from 'cargo/tests/helpers';
8
8
9
9
import axeConfig from '../axe-config' ;
10
10
11
- module ( 'Acceptance | /crates/:name/owners ' , function ( hooks ) {
11
+ module ( 'Acceptance | /crates/:name/settings ' , function ( hooks ) {
12
12
setupApplicationTest ( hooks ) ;
13
13
14
- test ( 'listing crate owners ' , async function ( assert ) {
14
+ test ( 'listing crate settings ' , async function ( assert ) {
15
15
this . server . loadFixtures ( ) ;
16
16
17
- await visit ( '/crates/nanomsg/owners ' ) ;
17
+ await visit ( '/crates/nanomsg/settings ' ) ;
18
18
19
19
assert . dom ( '[data-test-owners] [data-test-owner-team]' ) . exists ( { count : 2 } ) ;
20
20
assert . dom ( '[data-test-owners] [data-test-owner-user]' ) . exists ( { count : 2 } ) ;
@@ -30,15 +30,15 @@ module('Acceptance | /crates/:name/owners', function (hooks) {
30
30
test ( 'attempting to add owner without username' , async function ( assert ) {
31
31
this . server . loadFixtures ( ) ;
32
32
33
- await visit ( '/crates/nanomsg/owners ' ) ;
33
+ await visit ( '/crates/nanomsg/settings ' ) ;
34
34
await fillIn ( 'input[name="username"]' , '' ) ;
35
35
assert . dom ( '[data-test-save-button]' ) . isDisabled ( ) ;
36
36
} ) ;
37
37
38
38
test ( 'attempting to add non-existent owner' , async function ( assert ) {
39
39
this . server . loadFixtures ( ) ;
40
40
41
- await visit ( '/crates/nanomsg/owners ' ) ;
41
+ await visit ( '/crates/nanomsg/settings ' ) ;
42
42
await fillIn ( 'input[name="username"]' , 'spookyghostboo' ) ;
43
43
await click ( '[data-test-save-button]' ) ;
44
44
@@ -52,7 +52,7 @@ module('Acceptance | /crates/:name/owners', function (hooks) {
52
52
test ( 'add a new owner' , async function ( assert ) {
53
53
this . server . loadFixtures ( ) ;
54
54
55
- await visit ( '/crates/nanomsg/owners ' ) ;
55
+ await visit ( '/crates/nanomsg/settings ' ) ;
56
56
await fillIn ( 'input[name="username"]' , 'iain8' ) ;
57
57
await click ( '[data-test-save-button]' ) ;
58
58
@@ -64,7 +64,7 @@ module('Acceptance | /crates/:name/owners', function (hooks) {
64
64
test ( 'remove a crate owner when owner is a user' , async function ( assert ) {
65
65
this . server . loadFixtures ( ) ;
66
66
67
- await visit ( '/crates/nanomsg/owners ' ) ;
67
+ await visit ( '/crates/nanomsg/settings ' ) ;
68
68
await click ( '[data-test-owner-user="thehydroimpulse"] [data-test-remove-owner-button]' ) ;
69
69
70
70
assert . dom ( '[data-test-notification-message="success"]' ) . hasText ( 'User thehydroimpulse removed as crate owner' ) ;
@@ -86,7 +86,7 @@ module('Acceptance | /crates/:name/owners', function (hooks) {
86
86
87
87
this . authenticateAs ( user ) ;
88
88
89
- await visit ( `/crates/${ crate . name } /owners ` ) ;
89
+ await visit ( `/crates/${ crate . name } /settings ` ) ;
90
90
await click ( `[data-test-owner-user="${ user2 . login } "] [data-test-remove-owner-button]` ) ;
91
91
92
92
assert
@@ -98,7 +98,7 @@ module('Acceptance | /crates/:name/owners', function (hooks) {
98
98
test ( 'remove a crate owner when owner is a team' , async function ( assert ) {
99
99
this . server . loadFixtures ( ) ;
100
100
101
- await visit ( '/crates/nanomsg/owners ' ) ;
101
+ await visit ( '/crates/nanomsg/settings ' ) ;
102
102
await click ( '[data-test-owner-team="github:org:thehydroimpulse"] [data-test-remove-owner-button]' ) ;
103
103
104
104
assert
@@ -122,7 +122,7 @@ module('Acceptance | /crates/:name/owners', function (hooks) {
122
122
123
123
this . authenticateAs ( user ) ;
124
124
125
- await visit ( `/crates/${ crate . name } /owners ` ) ;
125
+ await visit ( `/crates/${ crate . name } /settings ` ) ;
126
126
await click ( `[data-test-owner-team="${ team . login } "] [data-test-remove-owner-button]` ) ;
127
127
128
128
assert
0 commit comments