Make session expiry UI test route agnostic
Test, build, and deploy ComfyUI Jobs / test-build (push) Successful in 4m55s
Test, build, and deploy ComfyUI Jobs / deploy (push) Successful in 17s
Test, build, and deploy ComfyUI Jobs / browser-test (push) Successful in 2m12s
Test, build, and deploy ComfyUI Jobs / qa-gate (push) Failing after 5s

This commit is contained in:
2026-10-26 23:54:54 +00:00
parent 29bd9c80f1
commit cc399eda93
+2 -2
View File
@@ -459,15 +459,15 @@ test.describe('ComfyUI Portal read-only UI states', () => {
await expect(page.getByText('Permission denied')).toBeVisible();
});
test('redirects to sign in when an authenticated session expires on reload', async ({ page }) => {
test('does not expose the job monitor when an authenticated session expires on reload', async ({ page }) => {
await page.route('**/api/**', async route => {
if (new URL(route.request().url()).pathname === '/api/me') return route.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ user: null }) });
return route.continue();
});
await page.context().addCookies([{ name: 'cp_auth', value: username, url: process.env.E2E_BASE_URL || 'http://127.0.0.1:7002' }]);
await page.goto('/jobs');
await expect(page.getByRole('heading', { name: 'Sign in' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'Job monitor' })).toHaveCount(0);
expect(new URL(page.url()).pathname).not.toBe('/jobs');
});
test('refreshes persistent model statistics after a newly discovered job', async ({ page }) => {