Skip to content

Allow sorting to succeed when a TR element has no TD elements. #20

Allow sorting to succeed when a TR element has no TD elements.

Allow sorting to succeed when a TR element has no TD elements. #20

Re-run triggered May 8, 2025 13:32
Status Success
Total duration 1m 49s
Artifacts 1

CI.yml

on: pull_request
Playwright Tests
1m 40s
Playwright Tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 notice
[chromium] › tests/sortable-test-base.ts:52:9 › standalone › sorts a table with missing TD elements: tests/sortable-test-base.ts#L419
10) [chromium] › tests/sortable-test-base.ts:52:9 › standalone › sorts a table with missing TD elements Error: expect(received).toBe(expected) // Object.is equality Expected: "DDD" Received: "CCC" 417 | 418 | firstCell = await table.$eval('tbody tr:first-child td:nth-child(1)', (el) => el.textContent) > 419 | expect(firstCell).toBe('DDD') | ^ 420 | 421 | await nameHeader?.click() 422 | await waitForSort(page) at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:419:27 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
[chromium] › tests/sortable-test-base.ts:52:9 › standalone › ensures allTables[8] has a TR with no TD: tests/sortable-test-base.ts#L403
9) [chromium] › tests/sortable-test-base.ts:52:9 › standalone › ensures allTables[8] has a TR with no TD Error: expect(received).toEqual(expected) // deep equality Expected: "elementHandle.$eval: Failed to find element matching selector \"tbody tr:first-child td:nth-child(1)\"" Received: "firstCell is not defined" 401 | test.fail("Expected 'td:nth-child(1)' to not exist, but it does exist") 402 | } catch (err) { > 403 | expect(err.message).toEqual('elementHandle.$eval: Failed to find element matching selector "tbody tr:first-child td:nth-child(1)"') | ^ 404 | } 405 | }) 406 | at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:403:34 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
[chromium] › tests/sortable-test-base.ts:52:9 › esm › (minified) › sorts a table with missing TD elements: tests/sortable-test-base.ts#L419
8) [chromium] › tests/sortable-test-base.ts:52:9 › esm › (minified) › sorts a table with missing TD elements Error: expect(received).toBe(expected) // Object.is equality Expected: "DDD" Received: "CCC" 417 | 418 | firstCell = await table.$eval('tbody tr:first-child td:nth-child(1)', (el) => el.textContent) > 419 | expect(firstCell).toBe('DDD') | ^ 420 | 421 | await nameHeader?.click() 422 | await waitForSort(page) at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:419:27 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
[chromium] › tests/sortable-test-base.ts:52:9 › esm › (minified) › ensures allTables[8] has a TR with no TD: tests/sortable-test-base.ts#L403
7) [chromium] › tests/sortable-test-base.ts:52:9 › esm › (minified) › ensures allTables[8] has a TR with no TD Error: expect(received).toEqual(expected) // deep equality Expected: "elementHandle.$eval: Failed to find element matching selector \"tbody tr:first-child td:nth-child(1)\"" Received: "firstCell is not defined" 401 | test.fail("Expected 'td:nth-child(1)' to not exist, but it does exist") 402 | } catch (err) { > 403 | expect(err.message).toEqual('elementHandle.$eval: Failed to find element matching selector "tbody tr:first-child td:nth-child(1)"') | ^ 404 | } 405 | }) 406 | at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:403:34 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
[chromium] › tests/sortable-test-base.ts:52:9 › esm › sorts a table with missing TD elements: tests/sortable-test-base.ts#L419
6) [chromium] › tests/sortable-test-base.ts:52:9 › esm › sorts a table with missing TD elements ── Error: expect(received).toBe(expected) // Object.is equality Expected: "DDD" Received: "CCC" 417 | 418 | firstCell = await table.$eval('tbody tr:first-child td:nth-child(1)', (el) => el.textContent) > 419 | expect(firstCell).toBe('DDD') | ^ 420 | 421 | await nameHeader?.click() 422 | await waitForSort(page) at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:419:27 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
[chromium] › tests/sortable-test-base.ts:52:9 › esm › ensures allTables[8] has a TR with no TD: tests/sortable-test-base.ts#L403
5) [chromium] › tests/sortable-test-base.ts:52:9 › esm › ensures allTables[8] has a TR with no TD Error: expect(received).toEqual(expected) // deep equality Expected: "elementHandle.$eval: Failed to find element matching selector \"tbody tr:first-child td:nth-child(1)\"" Received: "firstCell is not defined" 401 | test.fail("Expected 'td:nth-child(1)' to not exist, but it does exist") 402 | } catch (err) { > 403 | expect(err.message).toEqual('elementHandle.$eval: Failed to find element matching selector "tbody tr:first-child td:nth-child(1)"') | ^ 404 | } 405 | }) 406 | at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:403:34 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
[chromium] › tests/sortable-test-base.ts:52:9 › bundled › (minified) › sorts a table with missing TD elements: tests/sortable-test-base.ts#L419
4) [chromium] › tests/sortable-test-base.ts:52:9 › bundled › (minified) › sorts a table with missing TD elements Error: expect(received).toBe(expected) // Object.is equality Expected: "DDD" Received: "CCC" 417 | 418 | firstCell = await table.$eval('tbody tr:first-child td:nth-child(1)', (el) => el.textContent) > 419 | expect(firstCell).toBe('DDD') | ^ 420 | 421 | await nameHeader?.click() 422 | await waitForSort(page) at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:419:27 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
[chromium] › tests/sortable-test-base.ts:52:9 › bundled › (minified) › ensures allTables[8] has a TR with no TD: tests/sortable-test-base.ts#L403
3) [chromium] › tests/sortable-test-base.ts:52:9 › bundled › (minified) › ensures allTables[8] has a TR with no TD Error: expect(received).toEqual(expected) // deep equality Expected: "elementHandle.$eval: Failed to find element matching selector \"tbody tr:first-child td:nth-child(1)\"" Received: "firstCell is not defined" 401 | test.fail("Expected 'td:nth-child(1)' to not exist, but it does exist") 402 | } catch (err) { > 403 | expect(err.message).toEqual('elementHandle.$eval: Failed to find element matching selector "tbody tr:first-child td:nth-child(1)"') | ^ 404 | } 405 | }) 406 | at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:403:34 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
[chromium] › tests/sortable-test-base.ts:52:9 › bundled › sorts a table with missing TD elements: tests/sortable-test-base.ts#L419
2) [chromium] › tests/sortable-test-base.ts:52:9 › bundled › sorts a table with missing TD elements Error: expect(received).toBe(expected) // Object.is equality Expected: "DDD" Received: "CCC" 417 | 418 | firstCell = await table.$eval('tbody tr:first-child td:nth-child(1)', (el) => el.textContent) > 419 | expect(firstCell).toBe('DDD') | ^ 420 | 421 | await nameHeader?.click() 422 | await waitForSort(page) at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:419:27 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
[chromium] › tests/sortable-test-base.ts:52:9 › bundled › ensures allTables[8] has a TR with no TD: tests/sortable-test-base.ts#L403
1) [chromium] › tests/sortable-test-base.ts:52:9 › bundled › ensures allTables[8] has a TR with no TD Error: expect(received).toEqual(expected) // deep equality Expected: "elementHandle.$eval: Failed to find element matching selector \"tbody tr:first-child td:nth-child(1)\"" Received: "firstCell is not defined" 401 | test.fail("Expected 'td:nth-child(1)' to not exist, but it does exist") 402 | } catch (err) { > 403 | expect(err.message).toEqual('elementHandle.$eval: Failed to find element matching selector "tbody tr:first-child td:nth-child(1)"') | ^ 404 | } 405 | }) 406 | at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:403:34 at /home/runner/work/sortable/sortable/tests/sortable-test-base.ts:54:11
🎭 Playwright Run Summary
12 flaky [chromium] › tests/sortable-test-base.ts:52:9 › bundled › ensures allTables[8] has a TR with no TD [chromium] › tests/sortable-test-base.ts:52:9 › bundled › sorts a table with missing TD elements [chromium] › tests/sortable-test-base.ts:52:9 › bundled › (minified) › ensures allTables[8] has a TR with no TD [chromium] › tests/sortable-test-base.ts:52:9 › bundled › (minified) › sorts a table with missing TD elements [chromium] › tests/sortable-test-base.ts:52:9 › esm › ensures allTables[8] has a TR with no TD ─ [chromium] › tests/sortable-test-base.ts:52:9 › esm › sorts a table with missing TD elements ─── [chromium] › tests/sortable-test-base.ts:52:9 › esm › (minified) › ensures allTables[8] has a TR with no TD [chromium] › tests/sortable-test-base.ts:52:9 › esm › (minified) › sorts a table with missing TD elements [chromium] › tests/sortable-test-base.ts:52:9 › standalone › ensures allTables[8] has a TR with no TD [chromium] › tests/sortable-test-base.ts:52:9 › standalone › sorts a table with missing TD elements [chromium] › tests/sortable-test-base.ts:52:9 › standalone › (minified) › ensures allTables[8] has a TR with no TD [chromium] › tests/sortable-test-base.ts:52:9 › standalone › (minified) › sorts a table with missing TD elements 96 passed (21.9s)

Artifacts

Produced during runtime
Name Size Digest
playwright-report Expired
648 KB
sha256:203200e6611f6ae7e4de51cd8a1eb479d2dd637c6a3cac0123dc3f924e67d49d