Fix mocked portal UI authentication
Test, build, and deploy ComfyUI Jobs / test-build (push) Successful in 4m40s
Test, build, and deploy ComfyUI Jobs / deploy (push) Successful in 15s
Test, build, and deploy ComfyUI Jobs / browser-test (push) Failing after 2m16s
Test, build, and deploy ComfyUI Jobs / qa-gate (push) Failing after 4s

This commit is contained in:
2026-10-26 16:25:29 +00:00
parent fc66e6ab7c
commit 3c2468319e
+2
View File
@@ -73,6 +73,8 @@ const connectedServer = {
const managerInfo = { managerVersion: '3.0.0', currentVersion: '0.3.0', versions: ['0.3.0', '0.2.9'] };
async function mockReadOnlyApi(page, { user = adminUser, jobs = [], running = null, server = connectedServer, manager = managerInfo } = {}) {
test.skip(!requiresCredentials, 'deployed read-only UI tests require the configured E2E account');
await page.context().addCookies([{ name: 'cp_auth', value: username, url: process.env.E2E_BASE_URL || 'http://127.0.0.1:7002' }]);
await page.route('**/api/**', async (route) => {
const request = route.request();
const url = new URL(request.url());