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
@@ -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
|
||||
Reference in new issue
Block a user