@@ -12,6 +12,7 @@ import {
1212describe ( 'To Validate cla-manager API call' , function ( ) {
1313 // Define a variable for the environment
1414 const environment = Cypress . env ( 'CYPRESS_ENV' ) ;
15+ const timeout = 180000 ;
1516
1617 // Import the appropriate configuration based on the environment
1718 let appConfig ;
@@ -46,7 +47,7 @@ describe('To Validate cla-manager API call', function () {
4647 cy . request ( {
4748 method : 'GET' ,
4849 url : `${ claEndpoint } cla-manager-distribution` ,
49- timeout : 180000 ,
50+ timeout : timeout ,
5051 failOnStatusCode : allowFail ,
5152 headers : getXACLHeader ( ) ,
5253 auth : {
@@ -62,7 +63,7 @@ describe('To Validate cla-manager API call', function () {
6263 cy . request ( {
6364 method : 'GET' ,
6465 url : `${ claEndpoint } company/${ companyID } ` ,
65- timeout : 180000 ,
66+ timeout : timeout ,
6667 failOnStatusCode : allowFail ,
6768 headers : getXACLHeader ( ) ,
6869 auth : {
@@ -80,7 +81,7 @@ describe('To Validate cla-manager API call', function () {
8081 cy . request ( {
8182 method : 'GET' ,
8283 url : `${ claEndpoint } company/${ companyID } /project/${ projectSFID } ` ,
83- timeout : 180000 ,
84+ timeout : timeout ,
8485 failOnStatusCode : allowFail ,
8586 headers : getXACLHeader ( ) ,
8687 auth : {
@@ -102,7 +103,7 @@ describe('To Validate cla-manager API call', function () {
102103 cy . request ( {
103104 method : 'GET' ,
104105 url : `${ claEndpoint } project` ,
105- timeout : 180000 ,
106+ timeout : timeout ,
106107 failOnStatusCode : allowFail ,
107108 headers : getXACLHeader ( ) ,
108109 auth : {
@@ -121,7 +122,7 @@ describe('To Validate cla-manager API call', function () {
121122 cy . request ( {
122123 method : 'GET' ,
123124 url : `${ claEndpoint } project?=${ projectID } ` ,
124- timeout : 180000 ,
125+ timeout : timeout ,
125126 failOnStatusCode : allowFail ,
126127 headers : getXACLHeader ( ) ,
127128 auth : {
@@ -137,7 +138,7 @@ describe('To Validate cla-manager API call', function () {
137138 cy . request ( {
138139 method : 'GET' ,
139140 url : `${ claEndpoint } top-companies` ,
140- timeout : 180000 ,
141+ timeout : timeout ,
141142 failOnStatusCode : allowFail ,
142143 headers : getXACLHeader ( ) ,
143144 auth : {
@@ -153,7 +154,7 @@ describe('To Validate cla-manager API call', function () {
153154 cy . request ( {
154155 method : 'GET' ,
155156 url : `${ claEndpoint } top-projects` ,
156- timeout : 180000 ,
157+ timeout : timeout ,
157158 failOnStatusCode : allowFail ,
158159 headers : getXACLHeader ( ) ,
159160 auth : {
@@ -169,7 +170,7 @@ describe('To Validate cla-manager API call', function () {
169170 cy . request ( {
170171 method : 'GET' ,
171172 url : `${ claEndpoint } total-count` ,
172- timeout : 180000 ,
173+ timeout : timeout ,
173174 failOnStatusCode : allowFail ,
174175 headers : getXACLHeader ( ) ,
175176 auth : {
@@ -372,7 +373,7 @@ describe('To Validate cla-manager API call', function () {
372373 cy . request ( {
373374 method : 'GET' ,
374375 url : `${ URL } ?nextKey=${ NextKey } &pageSize=100` ,
375- timeout : 180000 ,
376+ timeout : timeout ,
376377 failOnStatusCode : allowFail ,
377378 headers : getXACLHeader ( ) ,
378379 auth : {
0 commit comments