Skip to content

Commit

Permalink
Merge pull request #6377 from Sage/playwright_refactor_navigation_bar
Browse files Browse the repository at this point in the history
test(navigation-bar): playwright refactor
  • Loading branch information
ZhuoyuJin authored Oct 26, 2023
2 parents 522b861 + f8c0633 commit c8c7bcb
Show file tree
Hide file tree
Showing 7 changed files with 547 additions and 251 deletions.
242 changes: 0 additions & 242 deletions cypress/components/navigation-bar/navigation-bar.cy.tsx

This file was deleted.

7 changes: 7 additions & 0 deletions playwright/components/navigation-bar/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Page } from "playwright-core";
import NAVIGATION_BAR from "./locators";

// component preview locators
const navigationBar = (page: Page) => page.locator(NAVIGATION_BAR);

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

export default NAVIGATION_BAR;
Loading

0 comments on commit c8c7bcb

Please sign in to comment.