feat(accordion): demo examples #320
Annotations
2 errors and 1 notice
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
|
e2e/pagination/pagination.e2e-spec.ts#L98
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": 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
|
|
The logs for this run have expired and are no longer available.
Loading