refactor: remove itemCollapsed and add itemVisible instead #130
ci.yml
on: push
Matrix: e2e-tests / e2e-tests
build
/
build
4m 48s
Annotations
9 errors and 10 notices
[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
|
[react:webkit] › accordion/accordion.e2e-spec.ts:9:6 › Accordion tests › Default accordion behaviour:
e2e/accordion/accordion.e2e-spec.ts#L52
1) [react:webkit] › accordion/accordion.e2e-spec.ts:9:6 › Accordion tests › Default accordion behaviour
Error: expect(received).toEqual(expected) // deep equality
- Expected - 15
+ Received + 15
@@ -1,45 +1,45 @@
Object {
"items": Array [
Object {
- "buttonControls": "undefined-collapse",
- "buttonId": "undefined-toggle",
+ "buttonControls": "accordion-item-0-collapse",
+ "buttonId": "accordion-item-0-toggle",
"classes": Array [
"accordion-item",
],
- "collapseId": "undefined-collapse",
+ "collapseId": "accordion-item-0-collapse",
"disabled": "false",
"expanded": "true",
- "id": undefined,
+ "id": "accordion-item-0",
"isInDOM": true,
- "labeledBy": "undefined-toggle",
+ "labeledBy": "accordion-item-0-toggle",
},
Object {
- "buttonControls": "undefined-collapse",
- "buttonId": "undefined-toggle",
+ "buttonControls": "accordion-item-1-collapse",
+ "buttonId": "accordion-item-1-toggle",
"classes": Array [
"accordion-item",
],
- "collapseId": "undefined-collapse",
+ "collapseId": "accordion-item-1-collapse",
"disabled": "false",
"expanded": "false",
- "id": undefined,
+ "id": "accordion-item-1",
"isInDOM": true,
- "labeledBy": "undefined-toggle",
+ "labeledBy": "accordion-item-1-toggle",
},
Object {
- "buttonControls": "undefined-collapse",
- "buttonId": "undefined-toggle",
+ "buttonControls": "accordion-item-2-collapse",
+ "buttonId": "accordion-item-2-toggle",
"classes": Array [
"accordion-item",
],
- "collapseId": "undefined-collapse",
+ "collapseId": "accordion-item-2-collapse",
"disabled": "true",
"expanded": "false",
- "id": undefined,
+ "id": "accordion-item-2",
"isInDOM": true,
- "labeledBy": "undefined-toggle",
+ "labeledBy": "accordion-item-2-toggle",
},
],
"rootClasses": Array [
"accordion",
],
50 | rootClasses: ['accordion'],
51 | };
> 52 | expect(await accordionPO.state()).toEqual(expectedState);
| ^
53 | //We are using the 'header' since if we would use the 'buttons' wouldn't be possible to click on the disabled one
54 | await accordionPO.locatorAccordionHeaders.nth(0).click();
55 | await accordionPO.locatorAccordionHeaders.nth(1).click();
at /home/runner/work/AgnosUI/AgnosUI/e2e/accordion/accordion.e2e-spec.ts:52:37
|
[react:webkit] › pagination/pagination.e2e-spec.ts:76:2 › Pagination tests › Default features:
e2e/pagination/pagination.e2e-spec.ts#L89
2) [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": 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
|
[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
|
[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] › select/select.e2e-spec.ts:14:2 › Select tests › Basic states:
e2e/select/select.e2e-spec.ts#L52
2) [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] › select/select.e2e-spec.ts:71:2 › Select tests › Config:
e2e/select/select.e2e-spec.ts#L99
3) [react:webkit] › select/select.e2e-spec.ts:71:2 › Select tests › Config ───────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
"badges": Array [],
"isOpen": false,
"list": Array [],
- "text": "next value",
+ "text": "test",
}
97 | expectedState.text = 'next value';
98 | await selectConfigPO.locatorResetFilterTextButton.click();
> 99 | expect(await selectPO.state()).toEqual(expectedState);
| ^
100 |
101 | expectedState.text = 'sync again';
102 | await selectPO.locatorInput.fill(expectedState.text);
at /home/runner/work/AgnosUI/AgnosUI/e2e/select/select.e2e-spec.ts:99:34
|
[react:webkit] › transition/transition.e2e-spec.ts:138:3 › Transition tests › animation on init:
e2e/transition/transition.e2e-spec.ts#L160
4) [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
|
[react:webkit] › transition/transition.e2e-spec.ts:138:3 › Transition tests › animation on init:
e2e/transition/transition.e2e-spec.ts#L160
5) [react:webkit] › transition/transition.e2e-spec.ts:138:3 › Transition tests › animation on init, with animation setting disabled
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
|
🎭 Playwright Run Summary
1 skipped
51 passed (1.1m)
|
🎭 Playwright Run Summary
51 passed (55.8s)
|
🎭 Playwright Run Summary
52 passed (1.2m)
|
🎭 Playwright Run Summary
52 passed (1.2m)
|
🎭 Playwright Run Summary
1 flaky
[angular:webkit] › pagination/pagination.e2e-spec.ts:76:2 › Pagination tests › Default features
1 skipped
49 passed (1.4m)
|
🎭 Playwright Run Summary
2 flaky
[react:webkit] › accordion/accordion.e2e-spec.ts:9:6 › Accordion tests › Default accordion behaviour
[react:webkit] › pagination/pagination.e2e-spec.ts:76:2 › Pagination tests › Default features ──
49 passed (1.4m)
|
🎭 Playwright Run Summary
1 flaky
[angular:webkit] › select/select.e2e-spec.ts:14:2 › Select tests › Basic states ────────────────
1 skipped
49 passed (1.2m)
|
🎭 Playwright Run Summary
5 flaky
[react:webkit] › rating/rating.e2e-spec.ts:170:2 › Rating tests › Config ───────────────────────
[react:webkit] › select/select.e2e-spec.ts:14:2 › Select tests › Basic states ──────────────────
[react:webkit] › select/select.e2e-spec.ts:71:2 › Select tests › Config ────────────────────────
[react:webkit] › transition/transition.e2e-spec.ts:138:3 › Transition tests › animation on init, with animation setting enabled
[react:webkit] › transition/transition.e2e-spec.ts:138:3 › Transition tests › animation on init, with animation setting disabled
46 passed (1.5m)
|
🎭 Playwright Run Summary
51 passed (55.3s)
|
🎭 Playwright Run Summary
50 passed (1.4m)
|