diff --git a/apps/ngx-bootstrap-docs-e2e/src/integration/accordion_page.spec.ts b/apps/ngx-bootstrap-docs-e2e/src/integration/accordion_page.spec.ts index f659380519..0fd67fe687 100644 --- a/apps/ngx-bootstrap-docs-e2e/src/integration/accordion_page.spec.ts +++ b/apps/ngx-bootstrap-docs-e2e/src/integration/accordion_page.spec.ts @@ -36,7 +36,7 @@ test.describe('Accordion page testing suite', () => { }); test('when user click on each item, then any content inside shown', async ({ accordionPo }) => { - cy.viewport(1440, 900); + await accordionPo.page.setViewportSize({ width: 1440, height: 900 }); await accordionPo.clickOnAccordionGroup(basic, 0); await accordionPo.expectAccordionItemExpanded(basic, 0, true); await accordionPo.expectItemContentVisible(basic, 0, true);