Skip to content

Commit 35c3d55

Browse files
authored
test: temporarily remove check of FE version in the System Information pop-up (#37)
1 parent 67d1844 commit 35c3d55

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

src/test-data/props/sys-info.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff 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

3227
interface 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
}

src/tests/portal/01-general/1.2-general.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)