Skip to content

Commit

Permalink
Merge branch 'master' into action-popover-vanished-why-for
Browse files Browse the repository at this point in the history
  • Loading branch information
DipperTheDan authored Nov 2, 2023
2 parents 437ee03 + 28d3b77 commit 8b688ea
Show file tree
Hide file tree
Showing 8 changed files with 1,490 additions and 871 deletions.
439 changes: 0 additions & 439 deletions cypress/components/duelling-picklist/duelling-picklist.cy.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions cypress/locators/duelling-picklist/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions cypress/locators/duelling-picklist/locators.js

This file was deleted.

19 changes: 19 additions & 0 deletions playwright/components/search/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Page } from "playwright-core";
import { SEARCH_COMPONENT, CROSS_ICON, SEARCH_ICON } from "./locators";
import { BUTTON_DATA_COMPONENT_PREVIEW } from "../button/locators";
import { BUTTON } from "../locators";
import { getDataElementByValue } from "..";

// component preview locators
export const searchDefault = (page: Page) => page.locator(SEARCH_COMPONENT);
export const searchDefaultInput = (page: Page) =>
searchDefault(page).locator("input");
export const searchDefaultInnerIcon = (page: Page) =>
searchDefault(page).locator("span:nth-child(1)");
export const searchCrossIcon = (page: Page) =>
searchDefault(page).locator(CROSS_ICON);
export const searchButton = (page: Page) =>
searchDefault(page).locator(BUTTON_DATA_COMPONENT_PREVIEW);
export const searchIcon = (page: Page) => page.locator(BUTTON);
export const searchFindIcon = (page: Page) =>
getDataElementByValue(page, SEARCH_ICON);
4 changes: 4 additions & 0 deletions playwright/components/search/locators.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// component preview locators
export const SEARCH_COMPONENT = '[data-component="search"]';
export const CROSS_ICON = '[data-element="cross"]';
export const SEARCH_ICON = "search";
Loading

0 comments on commit 8b688ea

Please sign in to comment.