-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: removed unused cypress helpers
- Loading branch information
1 parent
2a17a15
commit 0a0aeef
Showing
1 changed file
with
0 additions
and
30 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,43 +1,13 @@ | ||
import { EXTENDED_TIMEOUT } from '../support/utils.js' | ||
|
||
/** Selectors **/ | ||
|
||
// Dashboards bar | ||
export const dashboardChipSel = '[data-test="dashboard-chip"]' | ||
export const dashboardsNavMenuButtonSel = | ||
'[data-test="dashboards-nav-menu-button"]' | ||
export const newButtonSel = '[data-test="new-button"]' | ||
export const chipStarSel = '[data-test="dhis2-uicore-chip-icon"]' | ||
export const navMenuItemStarIconSel = '[data-test="starred-dashboard"]' | ||
export const dashboardSearchInputSel = | ||
'input:visible[placeholder="Search for a dashboard"]' | ||
export const showMoreLessSel = '[data-test="showmore-button"]' | ||
export const dragHandleSel = '[data-test="controlbar-drag-handle"]' | ||
export const dashboardsBarSel = '[data-test="dashboards-bar"]' | ||
|
||
// Active dashboard | ||
export const dashboardTitleSel = '[data-test="view-dashboard-title"]' | ||
export const dashboardsBarContainerSel = '[data-test="dashboardsbar-container"]' | ||
export const dashboardDescriptionSel = '[data-test="dashboard-description"]' | ||
export const starSel = '[data-test="button-star-dashboard"]' | ||
export const dashboardStarredSel = '[data-test="dashboard-starred"]' | ||
export const dashboardUnstarredSel = '[data-test="dashboard-unstarred"]' | ||
export const titleBarSel = '[data-test="title-bar"]' | ||
|
||
export const outerScrollContainerSel = '[data-test="outer-scroll-container"]' | ||
export const innerScrollContainerSel = '[data-test="inner-scroll-container"]' | ||
|
||
/** Functions **/ | ||
|
||
export const getViewActionButton = (action) => | ||
cy | ||
.get(titleBarSel, EXTENDED_TIMEOUT) | ||
.find('button') | ||
.contains(action, EXTENDED_TIMEOUT) | ||
|
||
export const clickViewActionButton = (action) => | ||
cy | ||
.get(titleBarSel, EXTENDED_TIMEOUT) | ||
.find('button') | ||
.contains(action, EXTENDED_TIMEOUT) | ||
.click() |