@@ -40,7 +40,7 @@ suite(`Check links to documentation page in Dashboard ${BASE_TEST_CONSTANTS.TEST
40
40
const workspaceDetails : WorkspaceDetails = e2eContainer . get ( CLASSES . WorkspaceDetails ) ;
41
41
const shellExecutor : ShellExecutor = e2eContainer . get ( CLASSES . ShellExecutor ) ;
42
42
const browserTabsUtil : BrowserTabsUtil = e2eContainer . get ( CLASSES . BrowserTabsUtil ) ;
43
- const testingVersion : string = BASE_TEST_CONSTANTS . TESTING_APPLICATION_VERSION ;
43
+ const majorMinorVersion : string = BASE_TEST_CONSTANTS . TESTING_APPLICATION_VERSION . split ( '.' ) . slice ( 0 , 2 ) . join ( '.' ) ; // extract major.minor version from full version
44
44
let parentGUID : string = '' ;
45
45
let docs : any , links : any , productVersion : any ;
46
46
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
55
55
try {
56
56
( { docs, links, productVersion } = JSON . parse (
57
57
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-${ majorMinorVersion } -rhel-8/devspaces-dashboard/packages/dashboard-frontend/assets/branding/product.json`
59
59
)
60
60
) ) ;
61
61
} catch ( e ) {
@@ -71,7 +71,7 @@ suite(`Check links to documentation page in Dashboard ${BASE_TEST_CONSTANTS.TEST
71
71
72
72
test ( 'Check if product.json config contains correct application version' , function ( ) : void {
73
73
[ 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 ( majorMinorVersion ) ;
75
75
} ) ;
76
76
} ) ;
77
77
@@ -112,12 +112,6 @@ suite(`Check links to documentation page in Dashboard ${BASE_TEST_CONSTANTS.TEST
112
112
expect ( await workspaceDetails . getOpenStorageTypeDocumentationLink ( ) , '"Storage types" doc link is broken' ) . eqls ( storageTypes ) ;
113
113
} ) ;
114
114
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
-
121
115
if ( BASE_TEST_CONSTANTS . IS_PRODUCT_DOCUMENTATION_RELEASED ) {
122
116
test ( 'Check if product.json documentation links returns status code 200' , async function ( ) : Promise < void > {
123
117
const documentationLinks : string [ ] = [ devfile , workspace , general , storageTypes , webSocketTroubleshooting ] ;
0 commit comments