Capture exact v17.7.1 E2E failures

This commit is contained in:
github-actions[bot] 2026-09-08 23:44:46 +00:00
parent a4e2595a8a
commit e2c11e2928
2 changed files with 77 additions and 30 deletions

View File

@ -1,30 +0,0 @@
name: Capture Caterium v17.7.1 E2E failures
on:
push:
branches:
- main
paths:
- '.github/workflows/diag-e2e-v1771-txt.yml'
permissions:
contents: write
jobs:
diagnose:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm install
- run: npx playwright install --with-deps chromium
- name: Capture E2E output
run: npm run test:e2e > ops/e2e-v1771.txt 2>&1 || true
- name: Commit diagnostics
run: |
rm -f .github/workflows/diag-e2e-v1771-txt.yml
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -f ops/e2e-v1771.txt
git add -A
git commit -m "Capture exact v17.7.1 E2E failures"
git push

77
ops/e2e-v1771.txt Normal file
View File

@ -0,0 +1,77 @@
> caterium-app@17.7.1 test:e2e
> playwright test --config=tests/playwright.config.mjs
Running 42 tests using 1 worker
[WebServer] (node:2722) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
[WebServer] (Use `node --trace-deprecation ...` to show where the warning was created)
·········°········F·F··········°·······F·F
1) [desktop] tests/app.spec.mjs:262:1 v17.7.1 data layer can update orders without direct UI globals
TimeoutError: page.waitForFunction: Timeout 5000ms exceeded.
262 | test('v17.7.1 data layer can update orders without direct UI globals', async ({ page }) => {
263 | await page.goto('/index.html',{waitUntil:'domcontentloaded'});
> 264 | await page.waitForFunction(()=>Boolean(window.CateriumDataV1771),null,{timeout:5000});
| ^
265 | const result=await page.evaluate(()=>{const d=window.CateriumDataV1771;d.orders.replace([{id:77,status:'Новый',total:1000}],{persistLocal:false,reason:'e2e-seed'});const before=d.orders.get(77);d.orders.update(77,o=>({...o,status:'Тест'}),{persistLocal:false});return {before:before.status,after:d.orders.get(77).status,version:d.VERSION,alias:window.CateriumDataV1770===d}});
266 | expect(result).toEqual({before:'Новый',after:'Тест',version:'17.7.1',alias:true});
267 | });
at /home/runner/work/caterium-app/caterium-app/tests/app.spec.mjs:264:14
Error Context: test-results/app-v17-7-1-data-layer-can-f5318-s-without-direct-UI-globals-desktop/error-context.md
2) [desktop] tests/app.spec.mjs:278:1 v17.7.1 data layer serves orders and catalog with v17.7.0 compatibility alias
TimeoutError: page.waitForFunction: Timeout 5000ms exceeded.
278 | test('v17.7.1 data layer serves orders and catalog with v17.7.0 compatibility alias', async ({ page }) => {
279 | await page.goto('/index.html',{waitUntil:'domcontentloaded'});
> 280 | await page.waitForFunction(()=>Boolean(window.CateriumDataV1771),null,{timeout:5000});
| ^
281 | const result=await page.evaluate(()=>{
282 | const d=window.CateriumDataV1771,beforeOrders=d.orders.list(),beforeCatalog=d.catalog.list();
283 | d.orders.replace([...beforeOrders,{id:'qa-v1771',event:'QA',lines:[]}],{persistLocal:false,reason:'qa-order'});
at /home/runner/work/caterium-app/caterium-app/tests/app.spec.mjs:280:14
Error Context: test-results/app-v17-7-1-data-layer-ser-350cb-v17-7-0-compatibility-alias-desktop/error-context.md
3) [mobile-390] tests/app.spec.mjs:262:1 v17.7.1 data layer can update orders without direct UI globals
TimeoutError: page.waitForFunction: Timeout 5000ms exceeded.
262 | test('v17.7.1 data layer can update orders without direct UI globals', async ({ page }) => {
263 | await page.goto('/index.html',{waitUntil:'domcontentloaded'});
> 264 | await page.waitForFunction(()=>Boolean(window.CateriumDataV1771),null,{timeout:5000});
| ^
265 | const result=await page.evaluate(()=>{const d=window.CateriumDataV1771;d.orders.replace([{id:77,status:'Новый',total:1000}],{persistLocal:false,reason:'e2e-seed'});const before=d.orders.get(77);d.orders.update(77,o=>({...o,status:'Тест'}),{persistLocal:false});return {before:before.status,after:d.orders.get(77).status,version:d.VERSION,alias:window.CateriumDataV1770===d}});
266 | expect(result).toEqual({before:'Новый',after:'Тест',version:'17.7.1',alias:true});
267 | });
at /home/runner/work/caterium-app/caterium-app/tests/app.spec.mjs:264:14
Error Context: test-results/app-v17-7-1-data-layer-can-f5318-s-without-direct-UI-globals-mobile-390/error-context.md
4) [mobile-390] tests/app.spec.mjs:278:1 v17.7.1 data layer serves orders and catalog with v17.7.0 compatibility alias
TimeoutError: page.waitForFunction: Timeout 5000ms exceeded.
278 | test('v17.7.1 data layer serves orders and catalog with v17.7.0 compatibility alias', async ({ page }) => {
279 | await page.goto('/index.html',{waitUntil:'domcontentloaded'});
> 280 | await page.waitForFunction(()=>Boolean(window.CateriumDataV1771),null,{timeout:5000});
| ^
281 | const result=await page.evaluate(()=>{
282 | const d=window.CateriumDataV1771,beforeOrders=d.orders.list(),beforeCatalog=d.catalog.list();
283 | d.orders.replace([...beforeOrders,{id:'qa-v1771',event:'QA',lines:[]}],{persistLocal:false,reason:'qa-order'});
at /home/runner/work/caterium-app/caterium-app/tests/app.spec.mjs:280:14
Error Context: test-results/app-v17-7-1-data-layer-ser-350cb-v17-7-0-compatibility-alias-mobile-390/error-context.md
4 failed
[desktop] tests/app.spec.mjs:262:1 v17.7.1 data layer can update orders without direct UI globals
[desktop] tests/app.spec.mjs:278:1 v17.7.1 data layer serves orders and catalog with v17.7.0 compatibility alias
[mobile-390] tests/app.spec.mjs:262:1 v17.7.1 data layer can update orders without direct UI globals
[mobile-390] tests/app.spec.mjs:278:1 v17.7.1 data layer serves orders and catalog with v17.7.0 compatibility alias
2 skipped
36 passed (43.7s)