Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions packages/main/cypress/specs/Carousel.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,34 +403,6 @@ describe("Carousel general interaction", () => {

});

it("navigateTo method and visibleItemsIndices", () => {
cy.mount(
<Carousel id="carousel9" itemsPerPage="S1 M2 L2 XL2">
<Button>Button 1</Button>
<Button>Button 2</Button>
<Button>Button 3</Button>
<Button>Button 4</Button>
<Button>Button 5</Button>
<Button>Button 6</Button>
<Button>Button 7</Button>
<Button>Button 8</Button>
<Button>Button 9</Button>
<Button>Button 10</Button>
</Carousel>);

cy.get("#carousel9")
.invoke("prop", "visibleItemsIndices")
.should("deep.equal", [0, 1]);

cy.get<Carousel>("#carousel9").then(($carousel) => {
$carousel[0].navigateTo(1);
});

cy.get("#carousel9")
.invoke("prop", "visibleItemsIndices")
.should("deep.equal", [1, 2]);
});

it("F7 keyboard navigation", () => {
cy.mount(
<Carousel id="carouselF7" itemsPerPage="S3 M3 L3 XL3">
Expand Down
Loading
Loading