
* tests for shipping * fix typo Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com> * add data-test-id Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
16 lines
539 B
JavaScript
16 lines
539 B
JavaScript
export const SHARED_ELEMENTS = {
|
|
header: "[data-test-id='page-header']",
|
|
progressBar: '[role="progressbar"]',
|
|
skeleton: '[data-test-id="skeleton"]',
|
|
table: 'table[class*="Table"]',
|
|
notificationSuccess: '[data-test="notification-success"]',
|
|
confirmationMsg: "[data-test='notification-success']",
|
|
richTextEditor: {
|
|
empty: '[class*="codex-editor--empty"]'
|
|
}
|
|
};
|
|
|
|
export const selectorWithDataValue = value => `[data-value="${value}"]`;
|
|
|
|
export const getElementByDataTestId = dataTestId =>
|
|
`[data-test-id=${dataTestId}]`;
|