Skip to content

test(core): set up playwright component tests #5576

test(core): set up playwright component tests

test(core): set up playwright component tests #5576

Triggered via pull request November 15, 2024 12:26
Status Failure
Total duration 5m 25s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 10 warnings, and 1 notice
[component] › SectionElement.test.tsx:6:7 › SectionElement › renders SectionElement correctly: packages/core/__tests__/playwright/SectionElement.test.tsx#L16
1) [component] › SectionElement.test.tsx:6:7 › SectionElement › renders SectionElement correctly ─ Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: locator('#root').locator('internal:control=component').locator('section') Expected pattern: /custom cjjlassName/ Received string: "e-section e-bg-color-off-white e-pad-6 custom className" Call log: - expect.toHaveClass with timeout 5000ms - waiting for locator('#root').locator('internal:control=component').locator('section') - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" 14 | await expect(section).toBeVisible() 15 | await expect(section).toContainText(content) > 16 | await expect(section).toHaveClass(/custom cjjlassName/) | ^ 17 | }) 18 | }) 19 | at /home/runner/work/exam-engine/exam-engine/packages/core/__tests__/playwright/SectionElement.test.tsx:16:27
[component] › SectionElement.test.tsx:6:7 › SectionElement › renders SectionElement correctly: packages/core/__tests__/playwright/SectionElement.test.tsx#L16
1) [component] › SectionElement.test.tsx:6:7 › SectionElement › renders SectionElement correctly ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: locator('#root').locator('internal:control=component').locator('section') Expected pattern: /custom cjjlassName/ Received string: "e-section e-bg-color-off-white e-pad-6 custom className" Call log: - expect.toHaveClass with timeout 5000ms - waiting for locator('#root').locator('internal:control=component').locator('section') - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" 14 | await expect(section).toBeVisible() 15 | await expect(section).toContainText(content) > 16 | await expect(section).toHaveClass(/custom cjjlassName/) | ^ 17 | }) 18 | }) 19 | at /home/runner/work/exam-engine/exam-engine/packages/core/__tests__/playwright/SectionElement.test.tsx:16:27
[component] › SectionElement.test.tsx:6:7 › SectionElement › renders SectionElement correctly: packages/core/__tests__/playwright/SectionElement.test.tsx#L16
1) [component] › SectionElement.test.tsx:6:7 › SectionElement › renders SectionElement correctly ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: locator('#root').locator('internal:control=component').locator('section') Expected pattern: /custom cjjlassName/ Received string: "e-section e-bg-color-off-white e-pad-6 custom className" Call log: - expect.toHaveClass with timeout 5000ms - waiting for locator('#root').locator('internal:control=component').locator('section') - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" - locator resolved to <section class="e-section e-bg-color-off-white e-pad-6 custom className">Test SectionElement</section> - unexpected value "e-section e-bg-color-off-white e-pad-6 custom className" 14 | await expect(section).toBeVisible() 15 | await expect(section).toContainText(content) > 16 | await expect(section).toHaveClass(/custom cjjlassName/) | ^ 17 | }) 18 | }) 19 | at /home/runner/work/exam-engine/exam-engine/packages/core/__tests__/playwright/SectionElement.test.tsx:16:27
test-playwright
Process completed with exit code 1.
test-jest
Process completed with exit code 1.
lint: .eslintrc.js#L1
Expected "export" or "export default"
lint: jest.base.config.js#L1
Expected "export" or "export default"
lint: jest.config.js#L1
Expected "import" instead of "require()"
lint: jest.config.js#L3
Expected "export" or "export default"
lint: packages/cli/jest.config.js#L1
Expected "import" instead of "require()"
lint: packages/cli/jest.config.js#L3
Expected "export" or "export default"
lint: packages/core/jest.config.js#L1
Expected "import" instead of "require()"
lint: packages/core/jest.config.js#L3
Expected "export" or "export default"
lint: packages/core/postcss.config.js#L1
Expected "export" or "export default"
lint: packages/core/postcss.config.js#L2
Expected "import" instead of "require()"
🎭 Playwright Run Summary
1 failed [component] › SectionElement.test.tsx:6:7 › SectionElement › renders SectionElement correctly ──