File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,8 @@ export async function getSysInfo(): Promise<SysInfo> {
1313 throw Error ( await getRestFailMsg ( 'Getting System Information' , response ) )
1414 }
1515
16- const buildInfo : {
17- backendVersion : string
18- frontendVersion : string
19- productionMode : boolean
20- } = {
16+ const buildInfo : BuildInfo = {
2117 backendVersion : jsonBody . backendVersion ,
22- frontendVersion : ( jsonBody . frontendVersion ) . replace ( '\n' , '' ) ,
2318 productionMode : jsonBody . productionMode ,
2419 }
2520
@@ -31,9 +26,10 @@ export async function getSysInfo(): Promise<SysInfo> {
3126
3227interface SysInfo {
3328 environment : string
34- build : {
35- backendVersion : string
36- frontendVersion : string
37- productionMode : boolean
38- }
29+ build : BuildInfo
30+ }
31+
32+ interface BuildInfo {
33+ backendVersion : string
34+ productionMode : boolean
3935}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ test.describe('General', () => {
6666 await expect . soft ( sysInfoPopup . content ) . toBeVisible ( )
6767 await expect . soft ( sysInfoPopup . closeBtn ) . toBeVisible ( )
6868 await expect . soft ( sysInfoPopup . content ) . toContainText ( build . backendVersion )
69- await expect . soft ( sysInfoPopup . content ) . toContainText ( build . frontendVersion )
69+ // TODO: add FE version check for non empty value
7070 // TODO: Add checking api/v1/system/info "externalLinks": []
7171 } )
7272
You can’t perform that action at this time.
0 commit comments