2021-03-26 09:33:35 +00:00
|
|
|
export const SHARED_ELEMENTS = {
|
2021-04-12 15:22:12 +00:00
|
|
|
header: "[data-test-id='page-header']",
|
2021-05-16 11:38:53 +00:00
|
|
|
progressBar: '[role="progressbar"]',
|
2021-07-12 13:35:26 +00:00
|
|
|
circularProgress: '[class*="CircularProgress-circle"]',
|
2021-05-31 07:50:31 +00:00
|
|
|
skeleton: '[data-test-id="skeleton"]',
|
2021-07-05 10:21:35 +00:00
|
|
|
table: 'table[class*="Table"]',
|
2021-07-15 11:17:56 +00:00
|
|
|
tableRow: '[data-test="id"]',
|
2021-07-12 08:50:50 +00:00
|
|
|
confirmationMsg: "[data-test='notification-success']",
|
2021-07-15 12:31:05 +00:00
|
|
|
notificationSuccess: '[data-test="notification-success"]',
|
|
|
|
dialog: '[role="dialog"]',
|
2021-07-15 11:17:56 +00:00
|
|
|
searchInput: '[data-test-id="searchInput"]',
|
|
|
|
selectOption: '[data-test="selectFieldOption"]',
|
2021-07-12 08:50:50 +00:00
|
|
|
richTextEditor: {
|
|
|
|
empty: '[class*="codex-editor--empty"]'
|
|
|
|
}
|
2021-03-26 09:33:35 +00:00
|
|
|
};
|
2021-07-05 13:05:13 +00:00
|
|
|
|
2021-07-12 08:50:50 +00:00
|
|
|
export const selectorWithDataValue = value => `[data-value="${value}"]`;
|
|
|
|
|
2021-07-05 13:05:13 +00:00
|
|
|
export const getElementByDataTestId = dataTestId =>
|
|
|
|
`[data-test-id=${dataTestId}]`;
|