@@ -23,33 +23,38 @@ describe('Overview - Upgrade Step', () => {
2323 server . restore ( ) ;
2424 } ) ;
2525
26- test ( 'Shows link to setup upgrade docs for on-prem installations' , ( ) => {
27- const { exists } = testBed ;
26+ describe ( 'On-prem' , ( ) => {
27+ test ( 'Shows link to setup upgrade docs' , ( ) => {
28+ const { exists } = testBed ;
2829
29- expect ( exists ( 'upgradeSetupDocsLink' ) ) . toBe ( true ) ;
30- expect ( exists ( 'upgradeSetupCloudLink' ) ) . toBe ( false ) ;
30+ expect ( exists ( 'upgradeSetupDocsLink' ) ) . toBe ( true ) ;
31+ expect ( exists ( 'upgradeSetupCloudLink' ) ) . toBe ( false ) ;
32+ } ) ;
3133 } ) ;
3234
33- test ( 'Shows upgrade CTA and link to docs for cloud installations' , async ( ) => {
34- await act ( async ( ) => {
35- testBed = await setupOverviewPage ( {
36- kibanaContextOverrides : {
37- cloud : {
38- isCloudEnabled : true ,
39- deploymentUrl : 'https://cloud.elastic.co./deployments/bfdad4ef99a24212a06d387593686d63' ,
35+ describe ( 'On Cloud' , ( ) => {
36+ test ( 'Shows upgrade CTA and link to docs' , async ( ) => {
37+ await act ( async ( ) => {
38+ testBed = await setupOverviewPage ( {
39+ kibanaContextOverrides : {
40+ cloud : {
41+ isCloudEnabled : true ,
42+ deploymentUrl :
43+ 'https://cloud.elastic.co./deployments/bfdad4ef99a24212a06d387593686d63' ,
44+ } ,
4045 } ,
41- } ,
46+ } ) ;
4247 } ) ;
43- } ) ;
4448
45- const { component, exists, find } = testBed ;
46- component . update ( ) ;
49+ const { component, exists, find } = testBed ;
50+ component . update ( ) ;
4751
48- expect ( exists ( 'upgradeSetupCloudLink ' ) ) . toBe ( true ) ;
49- expect ( exists ( 'upgradeSetupDocsLink ' ) ) . toBe ( true ) ;
52+ expect ( exists ( 'upgradeSetupDocsLink ' ) ) . toBe ( true ) ;
53+ expect ( exists ( 'upgradeSetupCloudLink ' ) ) . toBe ( true ) ;
5054
51- expect ( find ( 'upgradeSetupCloudLink' ) . props ( ) . href ) . toBe (
52- 'https://cloud.elastic.co./deployments/bfdad4ef99a24212a06d387593686d63'
53- ) ;
55+ expect ( find ( 'upgradeSetupCloudLink' ) . props ( ) . href ) . toBe (
56+ 'https://cloud.elastic.co./deployments/bfdad4ef99a24212a06d387593686d63'
57+ ) ;
58+ } ) ;
5459 } ) ;
5560} ) ;
0 commit comments