@@ -11,6 +11,7 @@ describe('FREE: global header menu items test', () => {
1111 before ( ( ) => {
1212 cy . flush ( ) . then ( ( ) =>
1313 cy . signin ( ) . then ( ( ) => {
14+ cy . setFeatureFlagsNoNav ( createOrgsFeatureFlags )
1415 cy . request ( {
1516 method : 'GET' ,
1617 url : 'api/v2/orgs' ,
@@ -19,8 +20,6 @@ describe('FREE: global header menu items test', () => {
1920 if ( res . body . orgs ) {
2021 idpeOrgID = res . body . orgs [ 0 ] . id
2122 }
22-
23- cy . setFeatureFlags ( createOrgsFeatureFlags )
2423 } )
2524 } )
2625 )
@@ -31,9 +30,7 @@ describe('FREE: global header menu items test', () => {
3130 Cypress . Cookies . preserveOnce ( 'sid' )
3231
3332 makeQuartzUseIDPEOrgID ( idpeOrgID )
34- cy . visit ( '/' ) . then ( ( ) => {
35- cy . setFeatureFlags ( createOrgsFeatureFlags )
36- } )
33+ cy . visit ( '/' )
3734 } )
3835
3936 it ( 'has add more organizations in menu items' , ( ) => {
@@ -52,6 +49,7 @@ describe('PAYG: global header menu items test', () => {
5249 before ( ( ) => {
5350 cy . flush ( ) . then ( ( ) =>
5451 cy . signin ( ) . then ( ( ) => {
52+ cy . setFeatureFlagsNoNav ( createOrgsFeatureFlags )
5553 cy . request ( {
5654 method : 'GET' ,
5755 url : 'api/v2/orgs' ,
@@ -62,17 +60,14 @@ describe('PAYG: global header menu items test', () => {
6260 }
6361
6462 Cypress . Cookies . preserveOnce ( 'sid' )
65- cy . setFeatureFlags ( createOrgsFeatureFlags )
6663 } )
6764 } )
6865 )
6966 } )
7067
7168 beforeEach ( ( ) => {
7269 makeQuartzUseIDPEOrgID ( idpeOrgID , 'pay_as_you_go' )
73- cy . visit ( '/' ) . then ( ( ) => {
74- cy . setFeatureFlags ( createOrgsFeatureFlags )
75- } )
70+ cy . visit ( '/' )
7671 } )
7772
7873 it ( 'PAYG: can check create organization menu item exists' , ( ) => {
@@ -91,6 +86,7 @@ describe('Contract: global header menu items test', () => {
9186 before ( ( ) => {
9287 cy . flush ( ) . then ( ( ) =>
9388 cy . signin ( ) . then ( ( ) => {
89+ cy . setFeatureFlagsNoNav ( createOrgsFeatureFlags )
9490 cy . request ( {
9591 method : 'GET' ,
9692 url : 'api/v2/orgs' ,
@@ -101,17 +97,14 @@ describe('Contract: global header menu items test', () => {
10197 }
10298
10399 Cypress . Cookies . preserveOnce ( 'sid' )
104- cy . setFeatureFlags ( createOrgsFeatureFlags )
105100 } )
106101 } )
107102 )
108103 } )
109104
110105 beforeEach ( ( ) => {
111106 makeQuartzUseIDPEOrgID ( idpeOrgID , 'contract' )
112- cy . visit ( '/' ) . then ( ( ) => {
113- cy . setFeatureFlags ( createOrgsFeatureFlags )
114- } )
107+ cy . visit ( '/' )
115108 } )
116109
117110 it ( 'Contract: can check create organization menu item exists' , ( ) => {
0 commit comments