test(app-switcher): add tests for CDN app integration
quality / commitlint (push) Skipped
quality / changes (push) Successful in 5s
quality / web (push) Skipped
quality / docker-check (push) Skipped
quality / api (push) Successful in 34s
CD / quality (push) Successful in 43s
CD / publish (push) Successful in 1m25s

- Updated app-switcher tests to include verification for the newly integrated CDN app.
- Added assertions to check the presence and authentication mode of the CDN app in the response.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-09-04 14:18:00 +07:00
co-authored by Cursor
parent 0f1f89776b
commit 01d3a79e13
+4
View File
@@ -18,11 +18,15 @@ describe('app-switcher API', () => {
expect(body.menuLabel).toBeTruthy()
expect(body.apps.map((a) => a.id).sort()).toEqual([
'bgp',
'cdn',
'cfdm',
'dns',
'fw',
'vps',
])
expect(body.apps.find((a) => a.id === 'cdn')).toMatchObject({
authMode: 'jwt',
})
expect(body.apps.find((a) => a.id === 'dns')).toMatchObject({
authMode: 'oidc',
})