@@ -61,17 +61,17 @@ module('Acceptance | storage-buckets | create', function (hooks) {
61
61
const storageBucketCount = getStorageBucketCount ( ) ;
62
62
await visit ( urls . storageBuckets ) ;
63
63
64
- await click ( `[href=" ${ urls . newStorageBucket } "]` ) ;
64
+ await click ( commonSelectors . HREF ( urls . newStorageBucket ) ) ;
65
65
await fillIn ( commonSelectors . FIELD_NAME , commonSelectors . FIELD_NAME_VALUE ) ;
66
66
await select ( selectors . FIELD_SCOPE , 'global' ) ;
67
- await waitFor ( selectors . CODE_EDITOR_CM_LOADED ) ;
67
+ await waitFor ( commonSelectors . CODE_EDITOR_CM ) ;
68
68
69
- const editorElement = find ( selectors . EDITOR_WORKER_FILTER ) ;
69
+ const editorElement = find ( commonSelectors . CODE_EDITOR_CODE ) ;
70
70
const editorView = editorElement . editor ;
71
71
editorView . dispatch ( {
72
72
changes : {
73
73
from : editorView . state . selection . main . from ,
74
- insert : selectors . EDITOR_WORKER_FILTER_VALUE ,
74
+ insert : '"dev" in "/tags/env"' ,
75
75
} ,
76
76
} ) ;
77
77
@@ -87,27 +87,28 @@ module('Acceptance | storage-buckets | create', function (hooks) {
87
87
88
88
assert . strictEqual ( storageBucket . name , commonSelectors . FIELD_NAME_VALUE ) ;
89
89
assert . strictEqual ( storageBucket . scopeId , 'global' ) ;
90
+
90
91
assert
91
92
. dom ( selectors . READONLY_WORKER_FILTER )
92
- . hasText ( selectors . EDITOR_WORKER_FILTER_VALUE ) ;
93
+ . hasText ( '"dev" in "/tags/env"' ) ;
93
94
assert . strictEqual ( getStorageBucketCount ( ) , storageBucketCount + 1 ) ;
94
95
} ) ;
95
96
96
97
test ( 'users can create a new storage bucket aws plugin type with org scope' , async function ( assert ) {
97
98
const storageBucketCount = getStorageBucketCount ( ) ;
98
99
await visit ( urls . storageBuckets ) ;
99
100
100
- await click ( `[href=" ${ urls . newStorageBucket } "]` ) ;
101
+ await click ( commonSelectors . HREF ( urls . newStorageBucket ) ) ;
101
102
await fillIn ( commonSelectors . FIELD_NAME , commonSelectors . FIELD_NAME_VALUE ) ;
102
103
await select ( selectors . FIELD_SCOPE , instances . scopes . org . id ) ;
103
- await waitFor ( selectors . CODE_EDITOR_CM_LOADED ) ;
104
+ await waitFor ( commonSelectors . CODE_EDITOR_CM ) ;
104
105
105
- const editorElement = find ( selectors . EDITOR_WORKER_FILTER ) ;
106
+ const editorElement = find ( commonSelectors . CODE_EDITOR_CODE ) ;
106
107
const editorView = editorElement . editor ;
107
108
editorView . dispatch ( {
108
109
changes : {
109
110
from : editorView . state . selection . main . from ,
110
- insert : selectors . EDITOR_WORKER_FILTER_VALUE ,
111
+ insert : '"dev" in "/tags/env"' ,
111
112
} ,
112
113
} ) ;
113
114
@@ -134,7 +135,7 @@ module('Acceptance | storage-buckets | create', function (hooks) {
134
135
135
136
// Navigate to new storage bucket
136
137
await visit ( urls . storageBuckets ) ;
137
- await click ( `[href=" ${ urls . newStorageBucket } "]` ) ;
138
+ await click ( commonSelectors . HREF ( urls . newStorageBucket ) ) ;
138
139
139
140
// Fill the form
140
141
await fillIn ( commonSelectors . FIELD_NAME , commonSelectors . FIELD_NAME_VALUE ) ;
@@ -150,14 +151,14 @@ module('Acceptance | storage-buckets | create', function (hooks) {
150
151
) ;
151
152
await fillIn ( selectors . FIELD_ACCESS_KEY , selectors . FIELD_ACCESS_KEY_VALUE ) ;
152
153
await fillIn ( selectors . FIELD_SECRET_KEY , selectors . FIELD_SECRET_KEY_VALUE ) ;
153
- await waitFor ( selectors . CODE_EDITOR_CM_LOADED ) ;
154
+ await waitFor ( commonSelectors . CODE_EDITOR_CM ) ;
154
155
155
- const editorElement = find ( selectors . EDITOR_WORKER_FILTER ) ;
156
+ const editorElement = find ( commonSelectors . CODE_EDITOR_CODE ) ;
156
157
const editorView = editorElement . editor ;
157
158
editorView . dispatch ( {
158
159
changes : {
159
160
from : editorView . state . selection . main . from ,
160
- insert : selectors . EDITOR_WORKER_FILTER_VALUE ,
161
+ insert : '"dev" in "/tags/env"' ,
161
162
} ,
162
163
} ) ;
163
164
@@ -185,22 +186,22 @@ module('Acceptance | storage-buckets | create', function (hooks) {
185
186
const storageBucketCount = getStorageBucketCount ( ) ;
186
187
await visit ( urls . storageBuckets ) ;
187
188
188
- await click ( `[href=" ${ urls . newStorageBucket } "]` ) ;
189
+ await click ( commonSelectors . HREF ( urls . newStorageBucket ) ) ;
189
190
await fillIn ( commonSelectors . FIELD_NAME , commonSelectors . FIELD_NAME_VALUE ) ;
190
191
191
192
// There are 2 credential types
192
193
assert . dom ( selectors . GROUP_CREDENTIAL_TYPE ) . exists ( { count : 2 } ) ;
193
194
194
195
await click ( selectors . FIELD_DYNAMIC_CREDENTIAL ) ;
195
196
await fillIn ( selectors . FIELD_ROLE_ARN , selectors . FIELD_ROLE_ARN_VALUE ) ;
196
- await waitFor ( selectors . CODE_EDITOR_CM_LOADED ) ;
197
+ await waitFor ( commonSelectors . CODE_EDITOR_CM ) ;
197
198
198
- const editorElement = find ( selectors . EDITOR_WORKER_FILTER ) ;
199
+ const editorElement = find ( commonSelectors . CODE_EDITOR_CODE ) ;
199
200
const editorView = editorElement . editor ;
200
201
editorView . dispatch ( {
201
202
changes : {
202
203
from : editorView . state . selection . main . from ,
203
- insert : selectors . EDITOR_WORKER_FILTER_VALUE ,
204
+ insert : '"dev" in "/tags/env"' ,
204
205
} ,
205
206
} ) ;
206
207
@@ -219,21 +220,21 @@ module('Acceptance | storage-buckets | create', function (hooks) {
219
220
const storageBucketCount = getStorageBucketCount ( ) ;
220
221
await visit ( urls . storageBuckets ) ;
221
222
222
- await click ( `[href=" ${ urls . newStorageBucket } "]` ) ;
223
+ await click ( commonSelectors . HREF ( urls . newStorageBucket ) ) ;
223
224
await fillIn ( commonSelectors . FIELD_NAME , commonSelectors . FIELD_NAME_VALUE ) ;
224
225
assert . dom ( selectors . GROUP_CREDENTIAL_TYPE ) . exists ( { count : 2 } ) ;
225
226
226
227
await click ( selectors . FIELD_STATIC_CREDENTIAL ) ;
227
228
await fillIn ( selectors . FIELD_ACCESS_KEY , selectors . FIELD_ACCESS_KEY_VALUE ) ;
228
229
await fillIn ( selectors . FIELD_SECRET_KEY , selectors . FIELD_SECRET_KEY_VALUE ) ;
229
- await waitFor ( selectors . CODE_EDITOR_CM_LOADED ) ;
230
+ await waitFor ( commonSelectors . CODE_EDITOR_CM ) ;
230
231
231
- const editorElement = find ( selectors . EDITOR_WORKER_FILTER ) ;
232
+ const editorElement = find ( commonSelectors . CODE_EDITOR_CODE ) ;
232
233
const editorView = editorElement . editor ;
233
234
editorView . dispatch ( {
234
235
changes : {
235
236
from : editorView . state . selection . main . from ,
236
- insert : selectors . EDITOR_WORKER_FILTER_VALUE ,
237
+ insert : '"dev" in "/tags/env"' ,
237
238
} ,
238
239
} ) ;
239
240
@@ -254,7 +255,7 @@ module('Acceptance | storage-buckets | create', function (hooks) {
254
255
255
256
// Navigate to new storage bucket
256
257
await visit ( urls . storageBuckets ) ;
257
- await click ( `[href=" ${ urls . newStorageBucket } "]` ) ;
258
+ await click ( commonSelectors . HREF ( urls . newStorageBucket ) ) ;
258
259
259
260
// Fill the form
260
261
await fillIn ( commonSelectors . FIELD_NAME , commonSelectors . FIELD_NAME_VALUE ) ;
@@ -269,14 +270,14 @@ module('Acceptance | storage-buckets | create', function (hooks) {
269
270
) ;
270
271
await fillIn ( selectors . FIELD_ACCESS_KEY , selectors . FIELD_ACCESS_KEY_VALUE ) ;
271
272
await fillIn ( selectors . FIELD_SECRET_KEY , selectors . FIELD_SECRET_KEY_VALUE ) ;
272
- await waitFor ( selectors . CODE_EDITOR_CM_LOADED ) ;
273
+ await waitFor ( commonSelectors . CODE_EDITOR_CM ) ;
273
274
274
- const editorElement = find ( selectors . EDITOR_WORKER_FILTER ) ;
275
+ const editorElement = find ( commonSelectors . CODE_EDITOR_CODE ) ;
275
276
const editorView = editorElement . editor ;
276
277
editorView . dispatch ( {
277
278
changes : {
278
279
from : editorView . state . selection . main . from ,
279
- insert : selectors . EDITOR_WORKER_FILTER_VALUE ,
280
+ insert : '"dev" in "/tags/env"' ,
280
281
} ,
281
282
} ) ;
282
283
@@ -303,7 +304,7 @@ module('Acceptance | storage-buckets | create', function (hooks) {
303
304
const storageBucketCount = getStorageBucketCount ( ) ;
304
305
await visit ( urls . storageBuckets ) ;
305
306
306
- await click ( `[href=" ${ urls . newStorageBucket } "]` ) ;
307
+ await click ( commonSelectors . HREF ( urls . newStorageBucket ) ) ;
307
308
await fillIn ( commonSelectors . FIELD_NAME , commonSelectors . FIELD_NAME_VALUE ) ;
308
309
309
310
await click ( commonSelectors . CANCEL_BTN ) ;
@@ -334,15 +335,15 @@ module('Acceptance | storage-buckets | create', function (hooks) {
334
335
} ) ;
335
336
await visit ( urls . storageBuckets ) ;
336
337
337
- await click ( `[href=" ${ urls . newStorageBucket } "]` ) ;
338
- await waitFor ( selectors . CODE_EDITOR_CM_LOADED ) ;
338
+ await click ( commonSelectors . HREF ( urls . newStorageBucket ) ) ;
339
+ await waitFor ( commonSelectors . CODE_EDITOR_CM ) ;
339
340
340
- const editorElement = find ( selectors . EDITOR_WORKER_FILTER ) ;
341
+ const editorElement = find ( commonSelectors . CODE_EDITOR_CODE ) ;
341
342
const editorView = editorElement . editor ;
342
343
editorView . dispatch ( {
343
344
changes : {
344
345
from : editorView . state . selection . main . from ,
345
- insert : selectors . EDITOR_WORKER_FILTER_VALUE ,
346
+ insert : '"dev" in "/tags/env"' ,
346
347
} ,
347
348
} ) ;
348
349
await click ( commonSelectors . SAVE_BTN ) ;
0 commit comments