@@ -60,6 +60,7 @@ describe('Quota workflow tests', () => {
6060 const mockQuotas = [
6161 quotaFactory . build ( {
6262 quota_id : `obj-bytes-${ selectedDomain } ` ,
63+ quota_type : 'obj-bytes' ,
6364 description : randomLabel ( 50 ) ,
6465 endpoint_type : mockSelectedEndpoint . endpoint_type ,
6566 quota_limit : 10 ,
@@ -69,6 +70,7 @@ describe('Quota workflow tests', () => {
6970 } ) ,
7071 quotaFactory . build ( {
7172 quota_id : `obj-buckets-${ selectedDomain } ` ,
73+ quota_type : 'obj-buckets' ,
7274 description : randomLabel ( 50 ) ,
7375 endpoint_type : mockSelectedEndpoint . endpoint_type ,
7476 quota_limit : 78 ,
@@ -78,6 +80,7 @@ describe('Quota workflow tests', () => {
7880 } ) ,
7981 quotaFactory . build ( {
8082 quota_id : `obj-objects-${ selectedDomain } ` ,
83+ quota_type : 'obj-objects' ,
8184 description : randomLabel ( 50 ) ,
8285 endpoint_type : mockSelectedEndpoint . endpoint_type ,
8386 quota_limit : 400 ,
@@ -134,25 +137,32 @@ describe('Quota workflow tests', () => {
134137 } ,
135138 } ) . as ( 'getFeatureFlags' ) ;
136139 } ) ;
140+
137141 it ( 'Quotas and quota usages display properly' , function ( ) {
138- cy . visitWithLogin ( '/account/quotas' ) ;
142+ cy . visitWithLogin ( '/quotas' ) ;
143+
139144 cy . wait ( [ '@getFeatureFlags' , '@getObjectStorageEndpoints' ] ) ;
145+
140146 // Quotas table placeholder text is shown
141147 cy . get ( '[data-testid="table-row-empty"]' ) . should ( 'be.visible' ) ;
142148
143149 // Object Storage Endpoint field is blank
144150 cy . findByPlaceholderText ( placeholderText )
145151 . should ( 'be.visible' )
146152 . should ( 'be.enabled' ) ;
153+
147154 ui . autocomplete
148155 . findByLabel ( 'Object Storage Endpoint' )
149156 . should ( 'be.visible' )
150157 . type ( this . selectedDomain ) ;
158+
151159 ui . autocompletePopper
152160 . findByTitle ( this . selectedDomain , { exact : false } )
153161 . should ( 'be.visible' )
154162 . click ( ) ;
163+
155164 cy . wait ( [ '@getQuotas' , '@getQuotaUsages' ] ) ;
165+
156166 cy . get ( 'table[data-testid="table-endpoint-quotas"]' )
157167 . find ( 'tbody' )
158168 . within ( ( ) => {
@@ -200,6 +210,7 @@ describe('Quota workflow tests', () => {
200210 const updatedQuotas = [
201211 quotaFactory . build ( {
202212 quota_id : `obj-bytes-${ updatedDomain } ` ,
213+ quota_type : 'obj-bytes' ,
203214 description : randomLabel ( 50 ) ,
204215 endpoint_type : updatedEndpoint . endpoint_type ,
205216 quota_limit : 20 ,
@@ -209,6 +220,7 @@ describe('Quota workflow tests', () => {
209220 } ) ,
210221 quotaFactory . build ( {
211222 quota_id : `obj-buckets-${ updatedDomain } ` ,
223+ quota_type : 'obj-buckets' ,
212224 description : randomLabel ( 50 ) ,
213225 endpoint_type : updatedEndpoint . endpoint_type ,
214226 quota_limit : 122 ,
@@ -218,6 +230,7 @@ describe('Quota workflow tests', () => {
218230 } ) ,
219231 quotaFactory . build ( {
220232 quota_id : `obj-objects-${ updatedDomain } ` ,
233+ quota_type : 'obj-objects' ,
221234 description : randomLabel ( 50 ) ,
222235 endpoint_type : updatedEndpoint . endpoint_type ,
223236 quota_limit : 450 ,
0 commit comments