Skip to content

feat(accordion): demo examples #186

feat(accordion): demo examples

feat(accordion): demo examples #186

Triggered via pull request August 25, 2023 08:50
Status Failure
Total duration 5m 24s
Artifacts

pr.yml

on: pull_request
Matrix: e2e-tests / e2e-tests
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 10 notices
build / build: e2e/accordion/accordion.e2e-spec.ts#L3
'AccordionDemoPO' is defined but never used
build / build
Process completed with exit code 1.
[react:webkit] › pagination/pagination.e2e-spec.ts:76:2 › Pagination tests › Default features: e2e/pagination/pagination.e2e-spec.ts#L98
1) [react:webkit] › pagination/pagination.e2e-spec.ts:76:2 › Pagination tests › Default features ─ Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { - "page": 6, + "page": 1, } 96 | }); 97 | await paginationWithBoundariesPO.locatorLastButton.click(); > 98 | expect(await paginationDemoPO.defaultPaginationDemoState()).toEqual({page: 6}); | ^ 99 | expect(await paginationState(paginationWithBoundariesPO)).toEqual({ 100 | ...initState, 101 | isFirstDisabled: false, at /home/runner/work/AgnosUI/AgnosUI/e2e/pagination/pagination.e2e-spec.ts:98:63
[react:webkit] › rating/rating.e2e-spec.ts:170:2 › Rating tests › Config: e2e/rating/rating.e2e-spec.ts#L200
1) [react:webkit] › rating/rating.e2e-spec.ts:170:2 › Rating tests › Config ────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 42 + Received + 2 @@ -28,69 +28,29 @@ "au-rating-star", ], Array [ "au-rating-star", ], - Array [ - "au-rating-star", - ], - Array [ - "au-rating-star", - ], - Array [ - "au-rating-star", - ], - Array [ - "au-rating-star", - ], - Array [ - "au-rating-star", - ], - Array [ - "au-rating-star", - ], - Array [ - "au-rating-star", - ], - Array [ - "au-rating-star", ], - Array [ - "au-rating-star", - ], - Array [ - "au-rating-star", - ], - ], "disabled": "true", - "max": "20", + "max": "10", "min": "0", "readonly": null, "rootClasses": Array [ "d-inline-flex", "au-rating", ], "stars": Array [ "★", "★", "★", - "☆", "☆", "☆", "☆", "☆", "☆", "☆", "☆", - "☆", - "☆", - "☆", - "☆", - "☆", - "☆", - "☆", - "☆", - "☆", ], - "text": "3 out of 20", + "text": "3 out of 10", "value": "3", } 198 | classes: createArray(20, ['au-rating-star']), 199 | }; > 200 | expect(await ratingPO.state()).toEqual(expectedState); | ^ 201 | 202 | await ratingDemoPO.locatorBtnConfigSlotStar("'*'").click(); 203 | expectedState = { at /home/runner/work/AgnosUI/AgnosUI/e2e/rating/rating.e2e-spec.ts:200:34
[react:webkit] › samplesMarkup.e2e-spec.ts:27:7 › Samples markup consistency check › pagination/default should have a consistent markup: e2e/samplesMarkup.e2e-spec.ts#L36
2) [react:webkit] › samplesMarkup.e2e-spec.ts:27:7 › Samples markup consistency check › pagination/default should have a consistent markup Error: Snapshot comparison failed: <body> <div id="root" > <div class="container p-3" > <h5> "Default pagination:" </h5> <nav aria-label="Page navigation" > <ul class="au-pagination pagination" > <li class="page-item" > <a aria-label="Action link for previous page" class="au-previous page-link" href="#" > <span aria-hidden="true" > "‹" </span> </a> </li> <li class="page-item" > <a aria-label="Page 1 of 6" class="au-page page-link" href="#" > "1" </a> </li> <li class="page-item" > <a aria-label="Page 2 of 6" class="au-page page-link" href="#" > "2" </a> </li> <li class="page-item" > <a aria-label="Page 3 of 6" class="au-page page-link" href="#" > "3" </a> </li> <li aria-current="page" class="active page-item" > <a aria-label="Page 4 of 6" class="au-page page-link" href="#" > "4" <span class="visually-hidden" > "(current)" </span> </a> </li> <li class="page-item" > <a aria-label="Page 5 of 6" class="au-page page-link" href="#" > "5" </a> </li> <li class="page-item" > <a aria-label="Page 6 of 6" class="au-page page-link" href="#" > "6" </a> </li> <li class="page-item" > <a aria-label="Action link for next page" class="au-next page-link" href="#" > <span aria-hidden="true" > "›" </span> </a> </li> </ul> <div aria-live="polite" class="visually-hidden" > "Current page is 4" </div> </nav> <h5> "No direction links:" </h5> <nav aria-label="Page navigation" > <ul class="au-pagination pagination" > <li class="page-item" > <a aria-label="Page 1 of 6" class="au-page page-link" href="#" > "1" </a> </li> <li class="page-item" > <a aria-label="Page 2 of 6" class="au-page page-link" href="#" > "2" </a> </li> <li class="page-item" > <a aria-label="Page 3 of 6" class="au-page page-link" href="#" > "3" </a> </li> <li aria-current="page" class="active page-item" > <a aria-label="Page 4 of 6" class="au-page page-link" href="#" > "4" <span
[react:webkit] › samplesMarkup.e2e-spec.ts:27:7 › Samples markup consistency check › focustrack/focustrack should have a consistent markup: e2e/samplesMarkup.e2e-spec.ts#L36
3) [react:webkit] › samplesMarkup.e2e-spec.ts:27:7 › Samples markup consistency check › focustrack/focustrack should have a consistent markup Error: Snapshot comparison failed: <body> <div id="root" > <div class="container p-3" > <div class="demo-focustrack" > <div class="border my-2 p-2" > <h5> "Container" </h5> <input class="form-control" id="focusableInput" placeholder="Focusable input" type="text" value="" /> <br /> <input class="form-control" id="otherFocusableInput" placeholder="Other focusable input" type="text" value="" /> </div> <input class="form-control" disabled="" id="disabledInput" placeholder="Disabled input" type="text" value="" /> <br /> <div class="form-check mb-2" > <input checked="false" class="form-check-input" disabled="" id="containerHasFocus" type="checkbox" /> <label class="form-check-label" for="containerHasFocus" > "Focus in container" </label> </div> <label class="form-label" for="activeElement" > "Active element history:" </label> <textarea class="form-control mb-2" id="activeElementHistory" readonly="" > "[{\"tagName\":\"body\"}]" </textarea> <button class="btn btn-primary" > "Clear" </button> </div> </div> </div/> </body> Expected: /home/runner/work/AgnosUI/AgnosUI/e2e/samplesMarkup.e2e-spec.ts-snapshots/focustrack-focustrack.html Received: /home/runner/work/AgnosUI/AgnosUI/test-results/samplesMarkup.e2e-spec.ts-Samples-markup-consi-0f4be-rack-focustrack-should-have-a-consistent-markup-react-webkit/focustrack-focustrack-actual.html 34 | await routesExtraAction[route]?.(page); 35 | await page.waitForSelector('.fade', {state: 'detached'}); // wait for fade transitions to be finished > 36 | expect(await htmlSnapshot(page.locator('body'))).toMatchSnapshot(`${route}.html`); | ^ 37 | }); 38 | } 39 | }); at /home/runner/work/AgnosUI/AgnosUI/e2e/samplesMarkup.e2e-spec.ts:36:53
[react:webkit] › samplesMarkup.e2e-spec.ts:27:7 › Samples markup consistency check › alert/generic should have a consistent markup: e2e/samplesMarkup.e2e-spec.ts#L36
4) [react:webkit] › samplesMarkup.e2e-spec.ts:27:7 › Samples markup consistency check › alert/generic should have a consistent markup Error: Snapshot comparison failed: <body> <div id="root" > <div class="container p-3" > <div class="alert alert-primary au-alert d-flex show w-100" role="alert" > <div class="alert-body" > "Simple primary alert" </div> </div> <div class="alert alert-secondary au-alert d-flex show w-100" role="alert" > <div class="alert-body" > "Simple secondary alert" </div> </div> <div class="alert alert-success au-alert d-flex show w-100" role="alert" > <div class="alert-body" > "Simple success alert" </div> </div> <div class="alert alert-danger au-alert d-flex show w-100" role="alert" > <div class="alert-body" > "Simple danger alert" </div> </div> <div class="alert alert-warning au-alert d-flex show w-100" role="alert" > <div class="alert-body" > "Simple warning alert" </div> </div> <div class="alert alert-info au-alert d-flex show w-100" role="alert" > <div class="alert-body" > "Simple info alert" </div> </div> <div class="alert alert-light au-alert d-flex show w-100" role="alert" > <div class="alert-body" > "Simple light alert" </div> </div> <div class="alert alert-dark au-alert d-flex show w-100" role="alert" > <div class="alert-body" > "Simple dark alert" </div> </div> </div> </div/> </body> Expected: /home/runner/work/AgnosUI/AgnosUI/e2e/samplesMarkup.e2e-spec.ts-snapshots/alert-generic.html Received: /home/runner/work/AgnosUI/AgnosUI/test-results/samplesMarkup.e2e-spec.ts-Samples-markup-consi-224ce-k-alert-generic-should-have-a-consistent-markup-react-webkit/alert-generic-actual.html 34 | await routesExtraAction[route]?.(page); 35 | await page.waitForSelector('.fade', {state: 'detached'}); // wait for fade transitions to be finished > 36 | expect(await htmlSnapshot(page.locator('body'))).toMatchSnapshot(`${route}.html`); | ^ 37 | }); 38 | } 39 | }); at /home/runner/work/AgnosUI/AgnosUI/e2e/samplesMarkup.e2e-spec.ts:36:53
[react:webkit] › select/select.e2e-spec.ts:14:2 › Select tests › Basic states: e2e/select/select.e2e-spec.ts#L52
5) [react:webkit] › select/select.e2e-spec.ts:14:2 › Select tests › Basic states ───────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 18 @@ -3,9 +3,25 @@ Array [ "Action 1", "x", ], ], - "isOpen": false, - "list": Array [], + "isOpen": true, + "list": Array [ + Object { + "hasCheckBox": true, + "isChecked": true, + "text": "Action 1", + }, + Object { + "hasCheckBox": true, + "isChecked": false, + "text": "Action 2", + }, + Object { + "hasCheckBox": true, + "isChecked": false, + "text": "Action 3", + }, + ], "text": "a", } 50 | list: [], 51 | }); > 52 | expect(await selectPO.state()).toEqual(expectedState); | ^ 53 | }); 54 | 55 | test(`Close actions`, async ({page}) => { at /home/runner/work/AgnosUI/AgnosUI/e2e/select/select.e2e-spec.ts:52:34
[react:webkit] › transition/transition.e2e-spec.ts:138:3 › Transition tests › animation on init: e2e/transition/transition.e2e-spec.ts#L160
6) [react:webkit] › transition/transition.e2e-spec.ts:138:3 › Transition tests › animation on init, with animation setting enabled Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -6,8 +6,8 @@ ], "hidden": false, "removeFromDOM": true, "shown": false, "transition": "verticalCollapse", - "transitioning": true, + "transitioning": false, "visible": true, } 158 | expectedState.shown = false; 159 | expectedState.classes = ['collapsing']; > 160 | expect(await po.getState()).toEqual(expectedState); | ^ 161 | 162 | await expect.poll(() => po.getState()).not.toEqual(expectedState); 163 | expectedState.transitioning = false; at /home/runner/work/AgnosUI/AgnosUI/e2e/transition/transition.e2e-spec.ts:160:32
[angular:webkit] › select/select.e2e-spec.ts:14:2 › Select tests › Basic states: e2e/select/select.e2e-spec.ts#L52
1) [angular:webkit] › select/select.e2e-spec.ts:14:2 › Select tests › Basic states ─────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 18 @@ -3,9 +3,25 @@ Array [ "Action 1", "x", ], ], - "isOpen": false, - "list": Array [], + "isOpen": true, + "list": Array [ + Object { + "hasCheckBox": true, + "isChecked": true, + "text": "Action 1", + }, + Object { + "hasCheckBox": true, + "isChecked": false, + "text": "Action 2", + }, + Object { + "hasCheckBox": true, + "isChecked": false, + "text": "Action 3", + }, + ], "text": "a", } 50 | list: [], 51 | }); > 52 | expect(await selectPO.state()).toEqual(expectedState); | ^ 53 | }); 54 | 55 | test(`Close actions`, async ({page}) => { at /home/runner/work/AgnosUI/AgnosUI/e2e/select/select.e2e-spec.ts:52:34
[angular:webkit] › pagination/pagination.e2e-spec.ts:76:2 › Pagination tests › Default features: e2e/pagination/pagination.e2e-spec.ts#L89
1) [angular:webkit] › pagination/pagination.e2e-spec.ts:76:2 › Pagination tests › Default features Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { - "page": 1, + "page": 4, } 87 | const paginationWithBoundariesPO = new PaginationPO(page, 2); 88 | await paginationWithBoundariesPO.locatorFirstButton.click(); > 89 | expect(await paginationDemoPO.defaultPaginationDemoState()).toEqual({page: 1}); | ^ 90 | expect(await paginationState(paginationWithBoundariesPO)).toEqual({ 91 | ...initState, 92 | isFirstDisabled: true, at /home/runner/work/AgnosUI/AgnosUI/e2e/pagination/pagination.e2e-spec.ts:89:63
🎭 Playwright Run Summary
45 passed (52.1s)
🎭 Playwright Run Summary
1 skipped 45 passed (58.1s)
🎭 Playwright Run Summary
46 passed (1.2m)
🎭 Playwright Run Summary
1 flaky [react:webkit] › pagination/pagination.e2e-spec.ts:76:2 › Pagination tests › Default features ── 44 passed (1.3m)
🎭 Playwright Run Summary
6 flaky [react:webkit] › rating/rating.e2e-spec.ts:170:2 › Rating tests › Config ─────────────────────── [react:webkit] › samplesMarkup.e2e-spec.ts:27:7 › Samples markup consistency check › pagination/default should have a consistent markup [react:webkit] › samplesMarkup.e2e-spec.ts:27:7 › Samples markup consistency check › focustrack/focustrack should have a consistent markup [react:webkit] › samplesMarkup.e2e-spec.ts:27:7 › Samples markup consistency check › alert/generic should have a consistent markup [react:webkit] › select/select.e2e-spec.ts:14:2 › Select tests › Basic states ────────────────── [react:webkit] › transition/transition.e2e-spec.ts:138:3 › Transition tests › animation on init, with animation setting enabled 39 passed (1.3m)
🎭 Playwright Run Summary
1 flaky [angular:webkit] › select/select.e2e-spec.ts:14:2 › Select tests › Basic states ──────────────── 1 skipped 43 passed (1.2m)
🎭 Playwright Run Summary
45 passed (1.0m)
🎭 Playwright Run Summary
1 flaky [angular:webkit] › pagination/pagination.e2e-spec.ts:76:2 › Pagination tests › Default features 1 skipped 44 passed (1.6m)
🎭 Playwright Run Summary
46 passed (1.4m)
🎭 Playwright Run Summary
44 passed (1.5m)