-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into action-popover-vanished-why-for
- Loading branch information
Showing
8 changed files
with
1,490 additions
and
871 deletions.
There are no files selected for viewing
439 changes: 0 additions & 439 deletions
439
cypress/components/duelling-picklist/duelling-picklist.cy.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
Oops, something went wrong.