@@ -40,7 +40,7 @@ suite(`Check links to documentation page in Dashboard ${BASE_TEST_CONSTANTS.TEST
4040 const workspaceDetails : WorkspaceDetails = e2eContainer . get ( CLASSES . WorkspaceDetails ) ;
4141 const shellExecutor : ShellExecutor = e2eContainer . get ( CLASSES . ShellExecutor ) ;
4242 const browserTabsUtil : BrowserTabsUtil = e2eContainer . get ( CLASSES . BrowserTabsUtil ) ;
43- const testingVersion : string = BASE_TEST_CONSTANTS . TESTING_APPLICATION_VERSION ;
43+ const majorVersion : string = BASE_TEST_CONSTANTS . TESTING_APPLICATION_VERSION . split ( '.' ) . slice ( 0 , 2 ) . join ( '.' ) ;
4444 let parentGUID : string = '' ;
4545 let docs : any , links : any , productVersion : any ;
4646 let webSocketTroubleshooting : any , workspace : any , devfile : any , general : any , storageTypes : any ;
@@ -55,7 +55,7 @@ suite(`Check links to documentation page in Dashboard ${BASE_TEST_CONSTANTS.TEST
5555 try {
5656 ( { docs, links, productVersion } = JSON . parse (
5757 shellExecutor . curl (
58- `https://raw.githubusercontent.com/redhat-developer/devspaces-images/devspaces-${ testingVersion } -rhel-8/devspaces-dashboard/packages/dashboard-frontend/assets/branding/product.json`
58+ `https://raw.githubusercontent.com/redhat-developer/devspaces-images/devspaces-${ majorVersion } -rhel-8/devspaces-dashboard/packages/dashboard-frontend/assets/branding/product.json`
5959 )
6060 ) ) ;
6161 } catch ( e ) {
@@ -71,7 +71,7 @@ suite(`Check links to documentation page in Dashboard ${BASE_TEST_CONSTANTS.TEST
7171
7272 test ( 'Check if product.json config contains correct application version' , function ( ) : void {
7373 [ productVersion , links [ 1 ] . href , devfile , workspace , general , storageTypes , webSocketTroubleshooting ] . forEach ( ( e ) : void => {
74- expect ( e , 'Fetched links not matches with tested product version' ) . contains ( testingVersion ) ;
74+ expect ( e , 'Fetched links not matches with tested product version' ) . contains ( majorVersion ) ;
7575 } ) ;
7676 } ) ;
7777
@@ -112,12 +112,6 @@ suite(`Check links to documentation page in Dashboard ${BASE_TEST_CONSTANTS.TEST
112112 expect ( await workspaceDetails . getOpenStorageTypeDocumentationLink ( ) , '"Storage types" doc link is broken' ) . eqls ( storageTypes ) ;
113113 } ) ;
114114
115- test ( 'Check if Workspace Details page contains "Devfile" documentation link' , async function ( ) : Promise < void > {
116- await workspaceDetails . closeStorageTypeInfo ( ) ;
117- await workspaceDetails . selectTab ( 'Devfile' ) ;
118- expect ( await workspaceDetails . getDevfileDocumentationLink ( ) , '"Devfile" doc link is broken' ) . eqls ( devfile ) ;
119- } ) ;
120-
121115 if ( BASE_TEST_CONSTANTS . IS_PRODUCT_DOCUMENTATION_RELEASED ) {
122116 test ( 'Check if product.json documentation links returns status code 200' , async function ( ) : Promise < void > {
123117 const documentationLinks : string [ ] = [ devfile , workspace , general , storageTypes , webSocketTroubleshooting ] ;
0 commit comments