Skip to content

Commit

Permalink
test(tooltip): add playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
divyajindel committed Dec 5, 2023
1 parent 5975482 commit ccbd941
Show file tree
Hide file tree
Showing 6 changed files with 591 additions and 324 deletions.
274 changes: 0 additions & 274 deletions cypress/components/tooltip/tooltip.cy.tsx

This file was deleted.

9 changes: 9 additions & 0 deletions playwright/components/tooltip/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { Page } from "@playwright/test";
import { TOOLTIP_PREVIEW } from "./locators";

// component preview locators
const tooltipPreview = (page: Page) => {
return page.locator(TOOLTIP_PREVIEW);
};

export default tooltipPreview;
4 changes: 4 additions & 0 deletions playwright/components/tooltip/locators.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// component preview locators
const TOOLTIP_PREVIEW = '[data-element="tooltip"]';

export default TOOLTIP_PREVIEW;
Loading

0 comments on commit ccbd941

Please sign in to comment.