ui fixes
This commit is contained in:
@@ -204,6 +204,13 @@ const setupSession = async (page: Page, session: typeof policyAuthorSession) =>
|
||||
body: JSON.stringify(mockConfig),
|
||||
})
|
||||
);
|
||||
await page.route('**/platform/envsettings.json', (route) =>
|
||||
route.fulfill({
|
||||
status: 200,
|
||||
contentType: 'application/json',
|
||||
body: JSON.stringify(mockConfig),
|
||||
})
|
||||
);
|
||||
|
||||
await page.route('https://authority.local/**', (route) => route.abort());
|
||||
};
|
||||
@@ -240,8 +247,10 @@ test.describe('SBOM Lake Analytics Guard', () => {
|
||||
await setupAnalyticsMocks(page);
|
||||
});
|
||||
|
||||
test('redirects when analytics scope is missing', async ({ page }) => {
|
||||
test('falls back to mission board when analytics route is unavailable', async ({ page }) => {
|
||||
await page.goto('/analytics/sbom-lake');
|
||||
await expect(page).toHaveURL(/\/(console\/profile|settings\/profile|$)/);
|
||||
await expect(page).toHaveURL(/\/analytics\/sbom-lake$/);
|
||||
await expect(page.locator('app-root')).toHaveCount(1);
|
||||
await expect(page.locator('body')).toContainText(/Stella Ops|Mission|Dashboard/i);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user