Skip to content

Commit

Permalink
fix: cypress global scope const declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed Nov 15, 2024
1 parent dcec7e2 commit 2a6c403
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cypress/e2e/components/BottomSheet.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const BottomSheet = () => cy.get('[role="dialog"]');
const title = (text: string) => cy.contains(text);
const openButton = () => cy.contains("Open Sheet");
const overlay = () => cy.get("[data-reach-dialog-overlay]");
const closeButton = () => cy.contains("Close");

describe("BottomSheet", () => {
const BottomSheet = () => cy.get('[role="dialog"]');
const openButton = () => cy.contains("Open Sheet");
const overlay = () => cy.get("[data-reach-dialog-overlay]");
const closeButton = () => cy.contains("Close");

describe("Default", () => {
beforeEach(() => {
cy.renderFromStorybook("bottomsheet--basic-usage");
Expand Down

0 comments on commit 2a6c403

Please sign in to comment.