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-09-10 08:59:46 +00:00
|
|
|
autocompleteCircle: '[class*="arrowInnerContainer"]',
|
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-09-02 10:36:46 +00:00
|
|
|
tableRow: '[data-test="id"], [class*="MuiTableRow"]',
|
2021-07-23 09:46:44 +00:00
|
|
|
notificationSuccess: '[data-test="notification"][data-test-type="success"]',
|
2021-07-15 12:31:05 +00:00
|
|
|
dialog: '[role="dialog"]',
|
2021-07-15 11:17:56 +00:00
|
|
|
searchInput: '[data-test-id="searchInput"]',
|
|
|
|
selectOption: '[data-test="selectFieldOption"]',
|
2021-10-14 10:47:41 +00:00
|
|
|
svgImage: "svg",
|
|
|
|
fileInput: 'input[type="file"]',
|
|
|
|
urlInput: 'input[type="url"]',
|
2021-07-12 08:50:50 +00:00
|
|
|
richTextEditor: {
|
2021-09-02 10:36:46 +00:00
|
|
|
loader: '[class*="codex-editor__loader"]',
|
2021-07-12 08:50:50 +00:00
|
|
|
empty: '[class*="codex-editor--empty"]'
|
2021-08-18 11:58:07 +00:00
|
|
|
},
|
|
|
|
filters: {
|
2021-09-10 08:59:46 +00:00
|
|
|
filterGroupActivateCheckbox: '[data-test="filterGroupActive"]',
|
|
|
|
filterRow: '[data-test="channel-availability-item"]'
|
2021-07-12 08:50:50 +00:00
|
|
|
}
|
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}]`;
|