test: stabilize browser session setup and OpenAPI assertions
This commit is contained in:
1 parent
ca32d3767f
commit
eacfab0dd8
12 files changed
+459
-2
No files matched your search
@@ -15,6 +15,10 @@ async function login(page) {
|
||||
await page.locator('.btn-signin').click();
|
||||
await expect(page).toHaveURL(/\/$/);
|
||||
await expect(page.locator('.page-title, .page-heading').first()).toBeVisible();
|
||||
await page.waitForFunction(() => Boolean(window.CrankAuth && typeof window.CrankAuth.fetchSession === 'function'));
|
||||
await page.evaluate(async () => {
|
||||
await window.CrankAuth.fetchSession(false);
|
||||
});
|
||||
}
|
||||
|
||||
async function browserJson(page, method, urlPath, body, okStatuses = [200]) {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
const { test, expect } = require('@playwright/test');
|
||||
const { login } = require('./helpers');
|
||||
|
||||
test('login helper leaves a ready CSRF session under a delayed csrf refresh', async ({ page }) => {
|
||||
let csrfRequests = 0;
|
||||
await page.route('**/api/auth/session/csrf', async (route) => {
|
||||
csrfRequests += 1;
|
||||
await new Promise((resolve) => setTimeout(resolve, 800));
|
||||
await route.continue();
|
||||
});
|
||||
|
||||
await login(page);
|
||||
|
||||
const tokenReady = await page.evaluate(
|
||||
() => Boolean(window.CrankAuth && typeof window.CrankAuth.getCsrfToken === 'function' && window.CrankAuth.getCsrfToken())
|
||||
);
|
||||
expect(tokenReady).toBe(true);
|
||||
expect(csrfRequests).toBeGreaterThan(0);
|
||||
});
|
||||
@@ -201,7 +201,10 @@ test('validation, upstream and compatibility errors recover from the last author
|
||||
});
|
||||
|
||||
await page.goto('/');
|
||||
await page.getByTestId('onboarding-trigger').click();
|
||||
if (!await page.getByTestId('onboarding-checklist').isVisible()) {
|
||||
await page.getByTestId('onboarding-trigger').click();
|
||||
}
|
||||
await expect(page.getByTestId('onboarding-checklist')).toBeVisible();
|
||||
for (let index = 0; index < failures.length; index += 1) {
|
||||
failureIndex = index;
|
||||
await page.getByTestId('onboarding-refresh').click();
|
||||
|
||||
@@ -112,7 +112,7 @@ paths:
|
||||
await expect(importedOperation.locator('.openapi-import-mapping-preview')).toContainText('Header');
|
||||
await expect(importedOperation.locator('.openapi-import-mapping-preview')).toContainText('X-API-Version');
|
||||
await expect(importedOperation.locator('.openapi-import-mapping-preview')).toContainText('Body');
|
||||
await expect(importedOperation.locator('.openapi-import-mapping-preview')).toContainText('symbols');
|
||||
await expect(importedOperation.locator('.openapi-import-mapping-chip').filter({ hasText: /^body$/ })).toHaveCount(1);
|
||||
await expect(importedOperation.locator('.openapi-import-mapping-preview')).toContainText(localized('Response', 'Ответ'));
|
||||
await expect(page.locator('#openapi-import-selection')).toContainText(localized('Selected: 2', 'Выбрано: 2'));
|
||||
await page.locator('#openapi-import-search').fill('status');
|
||||
|
||||
@@ -64,3 +64,14 @@ Forced-interleaving RED/GREEN подтверждает гонку исходно
|
||||
отчёта. Он описывает будущие проверки всех эпиков и не означает их выполнения.
|
||||
Внешняя человеческая приёмка и длительные испытания сохраняют статус `not_run`.
|
||||
Серверные проверки сборки и тестов доступны в [PR #83](https://git.itexp.me/bsodfather/crank/pulls/83).
|
||||
|
||||
|
||||
### Полный браузерный набор после проверки CI
|
||||
|
||||
[Актуальная проверка браузерного набора](./pr-browser-reconciliation-2026-10-05.json)
|
||||
сохраняет 57 успешных сценариев без повторов, включая постоянный тест готовности
|
||||
сессии при задержанной выдаче CSRF. После исходного отчёта переноса изменены
|
||||
только тестовый помощник входа и два существующих сценария, добавлен один
|
||||
регрессионный тест. Производственный код не менялся. Отчёт содержит SHA каждого
|
||||
тестового файла и журналы воспроизведения до исправления, включая промежуточный
|
||||
отказ CSRF; предыдущие результаты не переписываются.
|
||||
@@ -0,0 +1,66 @@
|
||||
npm notice run e2e
|
||||
npm notice run playwright test --workers=1 --retries=0
|
||||
|
||||
Running 57 tests using 1 worker
|
||||
|
||||
(node:263735) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
(Use `node --trace-warnings ...` to show where the warning was created)
|
||||
✓ 1 [chromium] › tests/e2e/agents.spec.js:4:1 › agents page shows demo cards and edit drawer opens (3.0s)
|
||||
✓ 2 [chromium] › tests/e2e/agents.spec.js:28:1 › agent drawer configures on-demand tool discovery and catalog sections (3.5s)
|
||||
✓ 3 [chromium] › tests/e2e/agents.spec.js:51:1 › agent lifecycle stale conflict shows localized recovery message (2.2s)
|
||||
✓ 4 [chromium] › tests/e2e/api-keys.spec.js:4:1 › api keys page opens create key flow (3.7s)
|
||||
✓ 5 [chromium] › tests/e2e/api-keys.spec.js:65:1 › failed clipboard write preserves one-time key material (2.6s) # community-scope: allow=one-time-token
|
||||
✓ 6 [chromium] › tests/e2e/api-keys.spec.js:101:1 › ambiguous create failure reconciles metadata before deliberate retry (2.9s)
|
||||
✓ 7 [chromium] › tests/e2e/api-keys.spec.js:136:1 › stale create response reconciles metadata without changing a newer modal generation (2.8s)
|
||||
✓ 8 [chromium] › tests/e2e/api-keys.spec.js:217:1 › duplicate key revoke and delete clicks send one request while the first request is pending (2.8s)
|
||||
✓ 9 [chromium] › tests/e2e/approvals.spec.js:4:1 › logs approval panel renders safe pending approval metadata (2.4s)
|
||||
✓ 10 [chromium] › tests/e2e/login-readiness.spec.js:4:1 › login helper leaves a ready CSRF session under a delayed csrf refresh (2.1s)
|
||||
✓ 11 [chromium] › tests/e2e/login.spec.js:41:1 › login page rejects invalid credentials (912ms)
|
||||
✓ 12 [chromium] › tests/e2e/login.spec.js:49:1 › login page signs in and redirects to operations (1.1s)
|
||||
✓ 13 [chromium] › tests/e2e/login.spec.js:81:1 › login page switches to bootstrap mode and submits one-time token (979ms) # community-scope: allow=one-time-token
|
||||
✓ 14 [chromium] › tests/e2e/login.spec.js:107:1 › CrankApi attaches csrf token to unsafe auth requests (478ms)
|
||||
✓ 15 [chromium] › tests/e2e/logs-usage.spec.js:4:1 › logs and usage pages show seeded data (2.4s)
|
||||
✓ 16 [chromium] › tests/e2e/observability.spec.js:4:1 › shell and wizard expose stable diagnostics hooks (2.5s)
|
||||
✓ 17 [chromium] › tests/e2e/observability.spec.js:19:1 › secrets page exposes stable secret management hooks (2.0s)
|
||||
✓ 18 [chromium] › tests/e2e/observability.spec.js:32:1 › API errors retain only bounded canonical support identities (1.5s)
|
||||
✓ 19 [chromium] › tests/e2e/onboarding.spec.js:70:1 › optional Getting Started checklist is server-derived, resumable, bilingual and accessible (3.8s)
|
||||
✓ 20 [chromium] › tests/e2e/onboarding.spec.js:136:1 › onboarding error exposes safe support correlation and retries without a client completion bypass (2.2s)
|
||||
✓ 21 [chromium] › tests/e2e/onboarding.spec.js:176:1 › validation, upstream and compatibility errors recover from the last authoritative onboarding step (2.5s)
|
||||
✓ 22 [chromium] › tests/e2e/onboarding.spec.js:222:1 › authentication recovery returns to an incomplete authoritative onboarding projection (3.1s)
|
||||
✓ 23 [chromium] › tests/e2e/onboarding.spec.js:250:1 › a BroadcastChannel refresh updates a second open tab from server progress (2.8s)
|
||||
✓ 24 [chromium] › tests/e2e/onboarding.spec.js:276:1 › bursty browser refresh signals coalesce into one request plus one trailing refresh (1.9s)
|
||||
✓ 25 [chromium] › tests/e2e/onboarding.spec.js:336:1 › stale onboarding deep link requires server reset before explicit reselection (2.7s)
|
||||
✓ 26 [chromium] › tests/e2e/onboarding.spec.js:371:1 › one-time key connection config is never recoverable after the reveal is lost (3.0s) # community-scope: allow=one-time-token
|
||||
✓ 27 [chromium] › tests/e2e/onboarding.spec.js:410:1 › first value is proven only by a real tools/call through the public MCP endpoint (11.6s)
|
||||
✓ 28 [chromium] › tests/e2e/operation-lifecycle.spec.js:4:1 › Operation lifecycle keeps published versions immutable and exposes safe correlation (2.8s)
|
||||
✓ 29 [chromium] › tests/e2e/operation-lifecycle.spec.js:132:3 › catalog lifecycle actions are state-aware in ru (3.6s)
|
||||
✓ 30 [chromium] › tests/e2e/operation-lifecycle.spec.js:132:3 › catalog lifecycle actions are state-aware in en (3.3s)
|
||||
✓ 31 [chromium] › tests/e2e/operations.spec.js:14:1 › operations page shows demo catalog and filter works (1.8s)
|
||||
✓ 32 [chromium] › tests/e2e/operations.spec.js:26:1 › operations page imports OpenAPI methods as drafts (3.3s)
|
||||
✓ 33 [chromium] › tests/e2e/operations.spec.js:144:1 › OpenAPI upload rejects invalid files locally and restores focus after Escape (3.1s)
|
||||
✓ 34 [chromium] › tests/e2e/operations.spec.js:210:1 › OpenAPI upload recovers from pagehide and a preview server error (2.1s)
|
||||
✓ 35 [chromium] › tests/e2e/operations.spec.js:245:1 › OpenAPI apply cancellation preserves the import job for an idempotent retry (4.2s)
|
||||
✓ 36 [chromium] › tests/e2e/operations.spec.js:344:1 › OpenAPI apply preserves job authority after language or workspace changes (4.1s)
|
||||
✓ 37 [chromium] › tests/e2e/operations.spec.js:435:1 › OpenAPI upload only renders the latest selected file and clears reset or close races (3.7s)
|
||||
✓ 38 [chromium] › tests/e2e/operations.spec.js:515:1 › OpenAPI upload ignores a stale failure and renders only correlation identifiers (3.0s)
|
||||
✓ 39 [chromium] › tests/e2e/secrets.spec.js:4:1 › created workspace secret renders styled table actions (2.0s)
|
||||
✓ 40 [chromium] › tests/e2e/secrets.spec.js:30:1 › secret modal shows fields for selected secret kind only (2.1s)
|
||||
✓ 41 [chromium] › tests/e2e/secrets.spec.js:69:1 › generic json secret modal stays inside compact viewport (1.9s)
|
||||
✓ 42 [chromium] › tests/e2e/secrets.spec.js:88:1 › secret modal clears sensitive values and locks duplicate submit while saving (2.0s)
|
||||
✓ 43 [chromium] › tests/e2e/secrets.spec.js:141:1 › stale secret rotation cannot close or report success for a newer modal context (2.8s)
|
||||
✓ 44 [chromium] › tests/e2e/staging-authenticated.spec.js:16:1 › authenticated staging smoke logs in and exposes session json (1.8s)
|
||||
✓ 45 [chromium] › tests/e2e/staging-authenticated.spec.js:25:1 › authenticated staging smoke opens core pages without console errors (4.5s)
|
||||
✓ 46 [chromium] › tests/e2e/wizard.spec.js:23:1 › mobile wizard progress connector crosses the indicator centers (1.8s)
|
||||
✓ 47 [chromium] › tests/e2e/wizard.spec.js:46:1 › onboarding helper does not cover wizard navigation (2.0s)
|
||||
✓ 48 [chromium] › tests/e2e/wizard.spec.js:52:1 › onboarding helper does not cover wizard navigation on mobile (1.8s)
|
||||
✓ 49 [chromium] › tests/e2e/wizard.spec.js:59:1 › wizard loads and protocol selection updates flow (2.4s)
|
||||
✓ 50 [chromium] › tests/e2e/wizard.spec.js:80:1 › community wizard exposes REST-only protocol flow (3.2s)
|
||||
✓ 51 [chromium] › tests/e2e/wizard.spec.js:95:1 › REST method callout clears when switching to methods without request body (3.6s)
|
||||
✓ 52 [chromium] › tests/e2e/wizard.spec.js:152:1 › wizard loads reusable upstreams from backend (2.7s)
|
||||
✓ 53 [chromium] › tests/e2e/wizard.spec.js:191:1 › wizard builds visual request mappings from JSON sample and path params (3.8s)
|
||||
✓ 54 [chromium] › tests/e2e/wizard.spec.js:253:1 › wizard edit mode hydrates fields from operation version snapshot (2.9s)
|
||||
✓ 55 [chromium] › tests/e2e/wizard.spec.js:475:1 › wizard shows agent-facing MCP preview from current draft fields (3.2s)
|
||||
✓ 56 [chromium] › tests/e2e/wizard.spec.js:674:1 › wizard edit mode preserves explicit request mapping targets on save (2.6s)
|
||||
✓ 57 [chromium] › tests/e2e/workspace-settings.spec.js:4:1 › workspace and settings pages show live session data (2.1s)
|
||||
|
||||
57 passed (2.7m)
|
||||
@@ -0,0 +1,91 @@
|
||||
npm notice run e2e
|
||||
npm notice run playwright test --workers=1 --retries=0
|
||||
|
||||
Running 56 tests using 1 worker
|
||||
|
||||
(node:249960) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
(Use `node --trace-warnings ...` to show where the warning was created)
|
||||
✓ 1 [chromium] › tests/e2e/agents.spec.js:4:1 › agents page shows demo cards and edit drawer opens (2.4s)
|
||||
✓ 2 [chromium] › tests/e2e/agents.spec.js:28:1 › agent drawer configures on-demand tool discovery and catalog sections (2.6s)
|
||||
✓ 3 [chromium] › tests/e2e/agents.spec.js:51:1 › agent lifecycle stale conflict shows localized recovery message (1.7s)
|
||||
✓ 4 [chromium] › tests/e2e/api-keys.spec.js:4:1 › api keys page opens create key flow (3.1s)
|
||||
✓ 5 [chromium] › tests/e2e/api-keys.spec.js:65:1 › failed clipboard write preserves one-time key material (2.2s) # community-scope: allow=one-time-token
|
||||
✓ 6 [chromium] › tests/e2e/api-keys.spec.js:101:1 › ambiguous create failure reconciles metadata before deliberate retry (2.6s)
|
||||
✓ 7 [chromium] › tests/e2e/api-keys.spec.js:136:1 › stale create response reconciles metadata without changing a newer modal generation (2.8s)
|
||||
✓ 8 [chromium] › tests/e2e/api-keys.spec.js:217:1 › duplicate key revoke and delete clicks send one request while the first request is pending (2.6s)
|
||||
✓ 9 [chromium] › tests/e2e/approvals.spec.js:4:1 › logs approval panel renders safe pending approval metadata (2.2s)
|
||||
✓ 10 [chromium] › tests/e2e/login.spec.js:41:1 › login page rejects invalid credentials (971ms)
|
||||
✓ 11 [chromium] › tests/e2e/login.spec.js:49:1 › login page signs in and redirects to operations (1.1s)
|
||||
✓ 12 [chromium] › tests/e2e/login.spec.js:81:1 › login page switches to bootstrap mode and submits one-time token (1.1s) # community-scope: allow=one-time-token
|
||||
✓ 13 [chromium] › tests/e2e/login.spec.js:107:1 › CrankApi attaches csrf token to unsafe auth requests (519ms)
|
||||
✓ 14 [chromium] › tests/e2e/logs-usage.spec.js:4:1 › logs and usage pages show seeded data (2.4s)
|
||||
✓ 15 [chromium] › tests/e2e/observability.spec.js:4:1 › shell and wizard expose stable diagnostics hooks (2.4s)
|
||||
✓ 16 [chromium] › tests/e2e/observability.spec.js:19:1 › secrets page exposes stable secret management hooks (1.8s)
|
||||
✓ 17 [chromium] › tests/e2e/observability.spec.js:32:1 › API errors retain only bounded canonical support identities (1.4s)
|
||||
✓ 18 [chromium] › tests/e2e/onboarding.spec.js:70:1 › optional Getting Started checklist is server-derived, resumable, bilingual and accessible (3.8s)
|
||||
✓ 19 [chromium] › tests/e2e/onboarding.spec.js:136:1 › onboarding error exposes safe support correlation and retries without a client completion bypass (2.1s)
|
||||
✓ 20 [chromium] › tests/e2e/onboarding.spec.js:176:1 › validation, upstream and compatibility errors recover from the last authoritative onboarding step (2.6s)
|
||||
✓ 21 [chromium] › tests/e2e/onboarding.spec.js:222:1 › authentication recovery returns to an incomplete authoritative onboarding projection (3.0s)
|
||||
✓ 22 [chromium] › tests/e2e/onboarding.spec.js:250:1 › a BroadcastChannel refresh updates a second open tab from server progress (2.7s)
|
||||
✓ 23 [chromium] › tests/e2e/onboarding.spec.js:276:1 › bursty browser refresh signals coalesce into one request plus one trailing refresh (1.8s)
|
||||
✓ 24 [chromium] › tests/e2e/onboarding.spec.js:336:1 › stale onboarding deep link requires server reset before explicit reselection (2.5s)
|
||||
✓ 25 [chromium] › tests/e2e/onboarding.spec.js:371:1 › one-time key connection config is never recoverable after the reveal is lost (2.9s) # community-scope: allow=one-time-token
|
||||
✓ 26 [chromium] › tests/e2e/onboarding.spec.js:410:1 › first value is proven only by a real tools/call through the public MCP endpoint (11.0s)
|
||||
✘ 27 [chromium] › tests/e2e/operation-lifecycle.spec.js:4:1 › Operation lifecycle keeps published versions immutable and exposes safe correlation (1.5s)
|
||||
(node:250896) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
(Use `node --trace-warnings ...` to show where the warning was created)
|
||||
✓ 28 [chromium] › tests/e2e/operation-lifecycle.spec.js:132:3 › catalog lifecycle actions are state-aware in ru (3.7s)
|
||||
✓ 29 [chromium] › tests/e2e/operation-lifecycle.spec.js:132:3 › catalog lifecycle actions are state-aware in en (3.3s)
|
||||
✓ 30 [chromium] › tests/e2e/operations.spec.js:14:1 › operations page shows demo catalog and filter works (1.7s)
|
||||
✓ 31 [chromium] › tests/e2e/operations.spec.js:26:1 › operations page imports OpenAPI methods as drafts (3.2s)
|
||||
✓ 32 [chromium] › tests/e2e/operations.spec.js:144:1 › OpenAPI upload rejects invalid files locally and restores focus after Escape (2.9s)
|
||||
✓ 33 [chromium] › tests/e2e/operations.spec.js:210:1 › OpenAPI upload recovers from pagehide and a preview server error (2.3s)
|
||||
✓ 34 [chromium] › tests/e2e/operations.spec.js:245:1 › OpenAPI apply cancellation preserves the import job for an idempotent retry (5.1s)
|
||||
✓ 35 [chromium] › tests/e2e/operations.spec.js:344:1 › OpenAPI apply preserves job authority after language or workspace changes (3.9s)
|
||||
✓ 36 [chromium] › tests/e2e/operations.spec.js:435:1 › OpenAPI upload only renders the latest selected file and clears reset or close races (3.5s)
|
||||
✓ 37 [chromium] › tests/e2e/operations.spec.js:515:1 › OpenAPI upload ignores a stale failure and renders only correlation identifiers (3.2s)
|
||||
✓ 38 [chromium] › tests/e2e/secrets.spec.js:4:1 › created workspace secret renders styled table actions (1.8s)
|
||||
✓ 39 [chromium] › tests/e2e/secrets.spec.js:30:1 › secret modal shows fields for selected secret kind only (1.9s)
|
||||
✓ 40 [chromium] › tests/e2e/secrets.spec.js:69:1 › generic json secret modal stays inside compact viewport (1.7s)
|
||||
✓ 41 [chromium] › tests/e2e/secrets.spec.js:88:1 › secret modal clears sensitive values and locks duplicate submit while saving (2.0s)
|
||||
✓ 42 [chromium] › tests/e2e/secrets.spec.js:141:1 › stale secret rotation cannot close or report success for a newer modal context (2.4s)
|
||||
✓ 43 [chromium] › tests/e2e/staging-authenticated.spec.js:16:1 › authenticated staging smoke logs in and exposes session json (1.5s)
|
||||
✓ 44 [chromium] › tests/e2e/staging-authenticated.spec.js:25:1 › authenticated staging smoke opens core pages without console errors (4.4s)
|
||||
✓ 45 [chromium] › tests/e2e/wizard.spec.js:23:1 › mobile wizard progress connector crosses the indicator centers (1.7s)
|
||||
✓ 46 [chromium] › tests/e2e/wizard.spec.js:46:1 › onboarding helper does not cover wizard navigation (1.8s)
|
||||
✓ 47 [chromium] › tests/e2e/wizard.spec.js:52:1 › onboarding helper does not cover wizard navigation on mobile (1.4s)
|
||||
✓ 48 [chromium] › tests/e2e/wizard.spec.js:59:1 › wizard loads and protocol selection updates flow (2.1s)
|
||||
✓ 49 [chromium] › tests/e2e/wizard.spec.js:80:1 › community wizard exposes REST-only protocol flow (2.7s)
|
||||
✓ 50 [chromium] › tests/e2e/wizard.spec.js:95:1 › REST method callout clears when switching to methods without request body (3.5s)
|
||||
✓ 51 [chromium] › tests/e2e/wizard.spec.js:152:1 › wizard loads reusable upstreams from backend (2.4s)
|
||||
✓ 52 [chromium] › tests/e2e/wizard.spec.js:191:1 › wizard builds visual request mappings from JSON sample and path params (4.3s)
|
||||
✓ 53 [chromium] › tests/e2e/wizard.spec.js:253:1 › wizard edit mode hydrates fields from operation version snapshot (3.0s)
|
||||
✓ 54 [chromium] › tests/e2e/wizard.spec.js:475:1 › wizard shows agent-facing MCP preview from current draft fields (3.3s)
|
||||
✓ 55 [chromium] › tests/e2e/wizard.spec.js:674:1 › wizard edit mode preserves explicit request mapping targets on save (2.7s)
|
||||
✓ 56 [chromium] › tests/e2e/workspace-settings.spec.js:4:1 › workspace and settings pages show live session data (2.0s)
|
||||
|
||||
|
||||
1) [chromium] › tests/e2e/operation-lifecycle.spec.js:4:1 › Operation lifecycle keeps published versions immutable and exposes safe correlation
|
||||
|
||||
Error: page.evaluate: Error: csrf validation failed
|
||||
at f (http://127.0.0.1:3300/js/bundles/protected-core.70fc1c2160cb.js:3:70752)
|
||||
at async eval (eval at evaluate (:303:30), <anonymous>:60:21)
|
||||
at async <anonymous>:329:30
|
||||
at f (http://127.0.0.1:3300/js/bundles/protected-core.70fc1c2160cb.js:3:70752)
|
||||
at async eval (eval at evaluate (:303:30), <anonymous>:60:21)
|
||||
at async <anonymous>:329:30
|
||||
at <checkout>/apps/ui/tests/e2e/operation-lifecycle.spec.js:9:31
|
||||
|
||||
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
|
||||
test-results/operation-lifecycle-Operat-51fc7-nd-exposes-safe-correlation-chromium/test-failed-1.png
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
|
||||
test-results/operation-lifecycle-Operat-51fc7-nd-exposes-safe-correlation-chromium/video.webm
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Error Context: test-results/operation-lifecycle-Operat-51fc7-nd-exposes-safe-correlation-chromium/error-context.md
|
||||
|
||||
1 failed
|
||||
[chromium] › tests/e2e/operation-lifecycle.spec.js:4:1 › Operation lifecycle keeps published versions immutable and exposes safe correlation
|
||||
55 passed (2.5m)
|
||||
@@ -0,0 +1,45 @@
|
||||
npm notice run e2e
|
||||
npm notice run playwright test tests/e2e/onboarding.spec.js --grep validation, upstream and compatibility --workers=1 --retries=0
|
||||
|
||||
Running 1 test using 1 worker
|
||||
|
||||
(node:247608) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
(Use `node --trace-warnings ...` to show where the warning was created)
|
||||
✘ 1 [chromium] › tests/e2e/onboarding.spec.js:176:1 › validation, upstream and compatibility errors recover from the last authoritative onboarding step (13.8s)
|
||||
|
||||
|
||||
1) [chromium] › tests/e2e/onboarding.spec.js:176:1 › validation, upstream and compatibility errors recover from the last authoritative onboarding step
|
||||
|
||||
Error: expect(locator).toContainText(expected) failed
|
||||
|
||||
Locator: getByRole('alert')
|
||||
Expected substring: "onboarding_validation_failed"
|
||||
Timeout: 10000ms
|
||||
Error: element(s) not found
|
||||
|
||||
Call log:
|
||||
- Expect "toContainText" with timeout 10000ms
|
||||
- waiting for getByRole('alert')
|
||||
|
||||
|
||||
207 | await page.getByTestId('onboarding-refresh').click();
|
||||
208 | const alert = page.getByRole('alert');
|
||||
> 209 | await expect(alert).toContainText(failures[index].code);
|
||||
| ^
|
||||
210 | await expect(alert).toContainText(`req_onboarding_${failures[index].status}`);
|
||||
211 | await expect(alert).toContainText('0123456789abcdef0123456789abcdef');
|
||||
212 | await page.getByTestId('onboarding-retry').click();
|
||||
at <checkout>/apps/ui/tests/e2e/onboarding.spec.js:209:25
|
||||
|
||||
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
|
||||
test-results/onboarding-validation-upst-1c5f1-thoritative-onboarding-step-chromium/test-failed-1.png
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
|
||||
test-results/onboarding-validation-upst-1c5f1-thoritative-onboarding-step-chromium/video.webm
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Error Context: test-results/onboarding-validation-upst-1c5f1-thoritative-onboarding-step-chromium/error-context.md
|
||||
|
||||
1 failed
|
||||
[chromium] › tests/e2e/onboarding.spec.js:176:1 › validation, upstream and compatibility errors recover from the last authoritative onboarding step
|
||||
@@ -0,0 +1,47 @@
|
||||
npm notice run e2e
|
||||
npm notice run playwright test tests/e2e/operations.spec.js --grep imports OpenAPI methods as drafts --workers=1 --retries=0
|
||||
|
||||
Running 1 test using 1 worker
|
||||
|
||||
(node:246848) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
(Use `node --trace-warnings ...` to show where the warning was created)
|
||||
✘ 1 [chromium] › tests/e2e/operations.spec.js:26:1 › operations page imports OpenAPI methods as drafts (14.2s)
|
||||
|
||||
|
||||
1) [chromium] › tests/e2e/operations.spec.js:26:1 › operations page imports OpenAPI methods as drafts
|
||||
|
||||
Error: expect(locator).toContainText(expected) failed
|
||||
|
||||
Locator: locator('.openapi-import-operation').filter({ hasText: 'Получить курсы валют' }).locator('.openapi-import-mapping-preview')
|
||||
Expected substring: "symbols"
|
||||
Received string: "PathdateQuerybaseHeaderX-API-VersionBodybodyResponsebase ← base"
|
||||
Timeout: 10000ms
|
||||
|
||||
Call log:
|
||||
- Expect "toContainText" with timeout 10000ms
|
||||
- waiting for locator('.openapi-import-operation').filter({ hasText: 'Получить курсы валют' }).locator('.openapi-import-mapping-preview')
|
||||
23 × locator resolved to <div class="openapi-import-mapping-preview">…</div>
|
||||
- unexpected value "PathdateQuerybaseHeaderX-API-VersionBodybodyResponsebase ← base"
|
||||
|
||||
|
||||
113 | await expect(importedOperation.locator('.openapi-import-mapping-preview')).toContainText('X-API-Version');
|
||||
114 | await expect(importedOperation.locator('.openapi-import-mapping-preview')).toContainText('Body');
|
||||
> 115 | await expect(importedOperation.locator('.openapi-import-mapping-preview')).toContainText('symbols');
|
||||
| ^
|
||||
116 | await expect(importedOperation.locator('.openapi-import-mapping-preview')).toContainText(localized('Response', 'Ответ'));
|
||||
117 | await expect(page.locator('#openapi-import-selection')).toContainText(localized('Selected: 2', 'Выбрано: 2'));
|
||||
118 | await page.locator('#openapi-import-search').fill('status');
|
||||
at <checkout>/apps/ui/tests/e2e/operations.spec.js:115:78
|
||||
|
||||
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
|
||||
test-results/operations-operations-page-imports-OpenAPI-methods-as-drafts-chromium/test-failed-1.png
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
|
||||
test-results/operations-operations-page-imports-OpenAPI-methods-as-drafts-chromium/video.webm
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Error Context: test-results/operations-operations-page-imports-OpenAPI-methods-as-drafts-chromium/error-context.md
|
||||
|
||||
1 failed
|
||||
[chromium] › tests/e2e/operations.spec.js:26:1 › operations page imports OpenAPI methods as drafts
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
Running 1 test using 1 worker
|
||||
|
||||
(node:259440) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
(Use `node --trace-warnings ...` to show where the warning was created)
|
||||
✓ 1 ../../../crank-epic1-pr-20261004-state/login-ready-harness/login-ready.spec.js:7:1 › login helper leaves a ready CSRF session under a delayed csrf refresh (2.0s)
|
||||
|
||||
1 passed (3.2s)
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
Running 1 test using 1 worker
|
||||
|
||||
(node:257457) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
(Use `node --trace-warnings ...` to show where the warning was created)
|
||||
✘ 1 ../../../crank-epic1-pr-20261004-state/login-ready-harness/login-ready.spec.js:7:1 › login helper leaves a ready CSRF session under a delayed csrf refresh (1.5s)
|
||||
|
||||
|
||||
1) ../../../crank-epic1-pr-20261004-state/login-ready-harness/login-ready.spec.js:7:1 › login helper leaves a ready CSRF session under a delayed csrf refresh
|
||||
|
||||
Error: expect(received).toBe(expected) // Object.is equality
|
||||
|
||||
Expected: true
|
||||
Received: false
|
||||
|
||||
18 | () => Boolean(window.CrankAuth && typeof window.CrankAuth.getCsrfToken === 'function' && window.CrankAuth.getCsrfToken())
|
||||
19 | );
|
||||
> 20 | expect(tokenReady).toBe(true);
|
||||
| ^
|
||||
21 | expect(csrfRequests).toBeGreaterThan(0);
|
||||
22 | });
|
||||
23 |
|
||||
at <evidence-state>/login-ready-harness/login-ready.spec.js:20:22
|
||||
|
||||
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
|
||||
test-results/login-ready-login-helper-l-56b6f-nder-a-delayed-csrf-refresh/test-failed-1.png
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Error Context: test-results/login-ready-login-helper-l-56b6f-nder-a-delayed-csrf-refresh/error-context.md
|
||||
|
||||
1 failed
|
||||
../../../crank-epic1-pr-20261004-state/login-ready-harness/login-ready.spec.js:7:1 › login helper leaves a ready CSRF session under a delayed csrf refresh
|
||||
@@ -0,0 +1,131 @@
|
||||
{
|
||||
"status": "pass",
|
||||
"base_revision": "ca32d3767fb4e0f94c7baf08b7024b1e585937fc",
|
||||
"test_source_sha256": {
|
||||
"apps/ui/tests/e2e/helpers.js": "109fef81b0184484aeed148fe47fb867e96fd8d4a6b695f6b2f5cec6932879ee",
|
||||
"apps/ui/tests/e2e/onboarding.spec.js": "b9172a9186e6adae2e2661543e6a1a289be69fff5e17043817d5ef4f33868436",
|
||||
"apps/ui/tests/e2e/operations.spec.js": "ce19bb50c55e6f00eb643f12fead6ad29c8b6902c417daf3b26b57c1e3fa5968",
|
||||
"apps/ui/tests/e2e/login-readiness.spec.js": "f211cddb8d7d56d2da4b7f645ddde4dac96b85af0bda75eaafba72675df890a4"
|
||||
},
|
||||
"results": {
|
||||
"full_browser_suite": {
|
||||
"startTime": "2026-10-04T23:07:59.039Z",
|
||||
"duration": 160544.748,
|
||||
"expected": 57,
|
||||
"skipped": 0,
|
||||
"unexpected": 0,
|
||||
"flaky": 0
|
||||
},
|
||||
"login_ready_regression": "RED before helper fix; GREEN after helper fix"
|
||||
},
|
||||
"findings": [
|
||||
"Ожидание свойства symbols заменено проверкой целого входа body согласно действующему контракту.",
|
||||
"Setup панели onboarding учитывает её автоматическое открытие.",
|
||||
"Помощник login ожидает штатную загрузку сессии, включая CSRF, прежде чем возвращать управление тесту. Добавлен постоянный тест с задержкой выдачи токена."
|
||||
],
|
||||
"runs": [
|
||||
{
|
||||
"phase": "red",
|
||||
"revision": "ca32d3767fb4e0f94c7baf08b7024b1e585937fc",
|
||||
"command": "PLAYWRIGHT_SKIP_WEB_SERVER=1 CI= npm run e2e -- tests/e2e/operations.spec.js --grep 'imports OpenAPI methods as drafts' --workers=1 --retries=0",
|
||||
"exit_code": 1,
|
||||
"status_before": "",
|
||||
"status_at_run": "",
|
||||
"test_file_sha256": {
|
||||
"apps/ui/tests/e2e/operations.spec.js": "f4b00031d217f8ee1fdfd52550cbef8fa5840d08494ed3c2fed838797c1a65b4",
|
||||
"apps/ui/tests/e2e/onboarding.spec.js": "c83f303d1fe2517b9b55d23e8b1a6d30ee4f6f071ff2310d814213d55a15084b"
|
||||
},
|
||||
"artifact": "./evidence/pr-browser-ci-fix-red-operations.txt",
|
||||
"raw_log_sha256": "df48a470e142d93f7acd3652673ffcaf1fefbdf2754db50b80432dbb3edbe982",
|
||||
"artifact_sha256": "ee4623d670890718b84fb139f63b1b54a96256a4923f3e137d4058fa1f368ff5"
|
||||
},
|
||||
{
|
||||
"phase": "red",
|
||||
"revision": "ca32d3767fb4e0f94c7baf08b7024b1e585937fc",
|
||||
"command": "PLAYWRIGHT_SKIP_WEB_SERVER=1 CI= npm run e2e -- tests/e2e/onboarding.spec.js --grep 'validation, upstream and compatibility' --workers=1 --retries=0",
|
||||
"exit_code": 1,
|
||||
"status_before": "",
|
||||
"status_at_run": "",
|
||||
"test_file_sha256": {
|
||||
"apps/ui/tests/e2e/operations.spec.js": "f4b00031d217f8ee1fdfd52550cbef8fa5840d08494ed3c2fed838797c1a65b4",
|
||||
"apps/ui/tests/e2e/onboarding.spec.js": "c83f303d1fe2517b9b55d23e8b1a6d30ee4f6f071ff2310d814213d55a15084b"
|
||||
},
|
||||
"artifact": "./evidence/pr-browser-ci-fix-red-onboarding.txt",
|
||||
"raw_log_sha256": "c7b53817a7f5d8acf8c82a5b9ff37c2c77b20b3f49fbbfb9360c4fc620ed0fb4",
|
||||
"artifact_sha256": "065e00f26870c16b34d843ffc45c4960aaaae375389a299f98c308828e3164ea"
|
||||
},
|
||||
{
|
||||
"phase": "green",
|
||||
"revision": "ca32d3767fb4e0f94c7baf08b7024b1e585937fc",
|
||||
"command": "PLAYWRIGHT_SKIP_WEB_SERVER=1 CI= npm run e2e -- --workers=1 --retries=0",
|
||||
"exit_code": 1,
|
||||
"status_before": "M apps/ui/tests/e2e/onboarding.spec.js\n M apps/ui/tests/e2e/operations.spec.js",
|
||||
"status_at_run": "M apps/ui/tests/e2e/onboarding.spec.js\n M apps/ui/tests/e2e/operations.spec.js",
|
||||
"test_file_sha256": {
|
||||
"apps/ui/tests/e2e/operations.spec.js": "ce19bb50c55e6f00eb643f12fead6ad29c8b6902c417daf3b26b57c1e3fa5968",
|
||||
"apps/ui/tests/e2e/onboarding.spec.js": "b9172a9186e6adae2e2661543e6a1a289be69fff5e17043817d5ef4f33868436"
|
||||
},
|
||||
"artifact": "./evidence/pr-browser-ci-fix-green-full-suite.txt",
|
||||
"raw_log_sha256": "0f9119ef7bb2764f03d9e72a0906082cc4723e07c8a45dc7aec6518e9c771d48",
|
||||
"artifact_sha256": "1a92992efac9e61bd1a245bae635da9233f6177a7ada7ab9f45f086778e91c24"
|
||||
},
|
||||
{
|
||||
"phase": "red",
|
||||
"revision": "ca32d3767fb4e0f94c7baf08b7024b1e585937fc",
|
||||
"command": "PLAYWRIGHT_SKIP_WEB_SERVER=1 CI= node apps/ui/node_modules/@playwright/test/cli.js test --config state/login-ready-harness/playwright.config.js --workers=1 --retries=0",
|
||||
"exit_code": 1,
|
||||
"status_before": "M apps/ui/tests/e2e/onboarding.spec.js\n M apps/ui/tests/e2e/operations.spec.js",
|
||||
"status_at_run": "M apps/ui/tests/e2e/onboarding.spec.js\n M apps/ui/tests/e2e/operations.spec.js",
|
||||
"file_sha256": {
|
||||
"apps/ui/tests/e2e/helpers.js": "edf98140744f2e7ce54fcb0c2291eb1719b1c8e535883b5d2af6641a10f6c775",
|
||||
"apps/ui/tests/e2e/operations.spec.js": "ce19bb50c55e6f00eb643f12fead6ad29c8b6902c417daf3b26b57c1e3fa5968",
|
||||
"apps/ui/tests/e2e/onboarding.spec.js": "b9172a9186e6adae2e2661543e6a1a289be69fff5e17043817d5ef4f33868436"
|
||||
},
|
||||
"artifact": "./evidence/pr-browser-login-ready-red-harness.txt",
|
||||
"raw_log_sha256": "170b2a8c85e562ad45815bf9c6bf2d408e42b7656ec26013cef7b02a0a78e270",
|
||||
"artifact_sha256": "3fe7ff865726dc14e95dd6a83f568817461b613967a0ea567da72a658c6926a9"
|
||||
},
|
||||
{
|
||||
"phase": "green",
|
||||
"revision": "ca32d3767fb4e0f94c7baf08b7024b1e585937fc",
|
||||
"command": "PLAYWRIGHT_SKIP_WEB_SERVER=1 CI= node apps/ui/node_modules/@playwright/test/cli.js test --config state/login-ready-harness/playwright.config.js --workers=1 --retries=0",
|
||||
"exit_code": 0,
|
||||
"status_before": "M apps/ui/tests/e2e/helpers.js\n M apps/ui/tests/e2e/onboarding.spec.js\n M apps/ui/tests/e2e/operations.spec.js",
|
||||
"status_at_run": "M apps/ui/tests/e2e/helpers.js\n M apps/ui/tests/e2e/onboarding.spec.js\n M apps/ui/tests/e2e/operations.spec.js",
|
||||
"file_sha256": {
|
||||
"apps/ui/tests/e2e/helpers.js": "109fef81b0184484aeed148fe47fb867e96fd8d4a6b695f6b2f5cec6932879ee",
|
||||
"apps/ui/tests/e2e/operations.spec.js": "ce19bb50c55e6f00eb643f12fead6ad29c8b6902c417daf3b26b57c1e3fa5968",
|
||||
"apps/ui/tests/e2e/onboarding.spec.js": "b9172a9186e6adae2e2661543e6a1a289be69fff5e17043817d5ef4f33868436"
|
||||
},
|
||||
"artifact": "./evidence/pr-browser-login-ready-green-harness.txt",
|
||||
"raw_log_sha256": "3f16b4729ffce77bb6d37583c61276117e2da63f6b5dbfca4535293553ca75cc",
|
||||
"artifact_sha256": "3f16b4729ffce77bb6d37583c61276117e2da63f6b5dbfca4535293553ca75cc"
|
||||
},
|
||||
{
|
||||
"revision": "ca32d3767fb4e0f94c7baf08b7024b1e585937fc",
|
||||
"command": "PLAYWRIGHT_SKIP_WEB_SERVER=1 CI= npm run e2e -- --workers=1 --retries=0",
|
||||
"exit_code": 0,
|
||||
"status_before": "M apps/ui/tests/e2e/helpers.js\n M apps/ui/tests/e2e/onboarding.spec.js\n M apps/ui/tests/e2e/operations.spec.js\n?? apps/ui/tests/e2e/login-readiness.spec.js",
|
||||
"status_at_run": "M apps/ui/tests/e2e/helpers.js\n M apps/ui/tests/e2e/onboarding.spec.js\n M apps/ui/tests/e2e/operations.spec.js\n?? apps/ui/tests/e2e/login-readiness.spec.js",
|
||||
"file_sha256": {
|
||||
"apps/ui/tests/e2e/helpers.js": "109fef81b0184484aeed148fe47fb867e96fd8d4a6b695f6b2f5cec6932879ee",
|
||||
"apps/ui/tests/e2e/onboarding.spec.js": "b9172a9186e6adae2e2661543e6a1a289be69fff5e17043817d5ef4f33868436",
|
||||
"apps/ui/tests/e2e/operations.spec.js": "ce19bb50c55e6f00eb643f12fead6ad29c8b6902c417daf3b26b57c1e3fa5968",
|
||||
"apps/ui/tests/e2e/login-readiness.spec.js": "f211cddb8d7d56d2da4b7f645ddde4dac96b85af0bda75eaafba72675df890a4"
|
||||
},
|
||||
"artifact": "./evidence/pr-browser-browser-pr-final-full-suite.txt",
|
||||
"raw_log_sha256": "2eccc64295ff76a61b2f1a0ee903970ee6c7a68d0a814d27e1085f9cf92bccf7",
|
||||
"artifact_sha256": "a374e53cb42c0868435a8a481bda0e4eea84fd005243ab4b1d4342e82c103f03"
|
||||
}
|
||||
],
|
||||
"source_equivalence": {
|
||||
"production_reference": "fa320c34cbe1649a7ef45969a5b7b42953066ad1",
|
||||
"statement": "Производственный код UI/Rust, Dockerfile, Cargo и скрипты совпадают с версией, на которой CI №816 успешно выполнил Rust Checks, UI Checks и Community Image Smoke. Изменены только браузерные тесты и документация."
|
||||
},
|
||||
"artifact_normalization": "Пути обезличены, концевые пробелы удалены. Строка названия теста однократного раскрытия ключа получила такую же точечную директиву Community scope, как в исходном тесте. SHA исходных журналов сохранены отдельно.",
|
||||
"limitations": [
|
||||
"Предыдущий полный прогон 55/56 с отказом CSRF сохранён как неуспешный; результат не исправлен задним числом.",
|
||||
"Квалификационные человеческие, эталонные и длительные испытания не выполнялись.",
|
||||
"Окончательный серверный CI отражается в PR #83 отдельно от этих локальных результатов."
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user