Skip to content

Commit 47bc8e5

Browse files
authored
test: add FE version check in the test and remove FE version from the summary report (#38)
1 parent 35c3d55 commit 47bc8e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/services/custom-reporter/reports/ApihubStyledHtmlReport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class ApihubStyledHtmlReport extends BaseReport {
2929
ratio: this.getRatio(),
3030
envName: sysInfo.environment,
3131
backendVersion: sysInfo.build.backendVersion,
32-
frontendVersion: sysInfo.build.frontendVersion,
32+
frontendVersion: '-', // there is no more information about FE version on the backend
3333
pwBranch: process.env.CI_PW_BRANCH || '-',
3434
ciJobLink: process.env.CI_JOB_LINK ? `<a class="link" href="${process.env.CI_JOB_LINK}">#${process.env.CI_JOB_NUMBER}</a>` : '-',
3535
ciUser: process.env.CI_USER || '-',

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-
// TODO: add FE version check for non empty value
69+
await expect.soft(sysInfoPopup.content).toContainText(/Frontend\sv.\s\S+/)
7070
// TODO: Add checking api/v1/system/info "externalLinks": []
7171
})
7272

0 commit comments

Comments
 (0)