Skip to content

Commit ea2c686

Browse files
authored
Use parent selector instead of next (#151)
1 parent bca5ed3 commit ea2c686

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/test/compatibility.cy.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ describe("Embedding SDK: shoppy compatibility", () => {
5555
expect(cy.findByText("Details", { timeout: TIMEOUT }).should("exist"))
5656

5757
cy.findByText("Orders over time", { timeout: TIMEOUT })
58-
.next()
58+
.parent()
5959
.within(() => {
6060
expect(cy.findAllByTestId("visualization-root").should("exist"))
6161
})
6262

6363
cy.findByText("Total orders", { timeout: TIMEOUT })
64-
.next()
64+
.parent()
6565
.within(() => {
6666
expect(cy.findAllByTestId("visualization-root").should("exist"))
6767
})

0 commit comments

Comments
 (0)