Skip to content

Commit

Permalink
fix: Upgrade OUIA ID selectors to PF5
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat committed Feb 6, 2024
1 parent ff2ce05 commit 916579f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/utils/src/CypressUtils/selectors.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
const TOOLBAR = 'div[id="ins-primary-data-toolbar"]';
const CHIP_GROUP = 'div[data-ouia-component-type="PF4/ChipGroup"]';
const CHIP = '[data-ouia-component-type="PF4/Chip"]';
const ROW = '[data-ouia-component-type="PF4/TableRow"]:not([class~="pf-v5-c-table__expandable-row"])';
const PAGINATION = 'div[data-ouia-component-type="PF4/Pagination"]';
const PAGINATION_MENU = 'div[data-ouia-component-type="PF4/PaginationOptionsMenu"]';
const DROPDOWN = '[data-ouia-component-type="PF4/Dropdown"]';
const MODAL = '[data-ouia-component-type="PF4/ModalContent"]';
const CHECKBOX = '[data-ouia-component-type="PF4/Checkbox"]';
const TEXT_INPUT = '[data-ouia-component-type="PF4/TextInput"]';
const DROPDOWN_TOGGLE = '[data-ouia-component-type="PF4/DropdownToggle"]';
const DROPDOWN_ITEM = '[data-ouia-component-type="PF4/DropdownItem"]';
const CHIP_GROUP = 'div[data-ouia-component-type="PF5/ChipGroup"]';
const CHIP = '[data-ouia-component-type="PF5/Chip"]';
const ROW = '[data-ouia-component-type="PF5/TableRow"]:not([class~="pf-v5-c-table__expandable-row"])';
const PAGINATION = 'div[data-ouia-component-type="PF5/Pagination"]';
const PAGINATION_MENU = 'div[data-ouia-component-type="PF5/PaginationOptionsMenu"]';
const DROPDOWN = '[data-ouia-component-type="PF5/Dropdown"]';
const MODAL = '[data-ouia-component-type="PF5/ModalContent"]';
const CHECKBOX = '[data-ouia-component-type="PF5/Checkbox"]';
const TEXT_INPUT = '[data-ouia-component-type="PF5/TextInput"]';
const DROPDOWN_TOGGLE = '[data-ouia-component-type="PF5/DropdownToggle"]';
const DROPDOWN_ITEM = '[data-ouia-component-type="PF5/DropdownItem"]';
const TBODY = 'tbody[role=rowgroup]';
const TOOLBAR_FILTER = '.ins-c-primary-toolbar__filter';
const TABLE = 'table';
const TABLE_HEADER = 'thead';
const ROWS_TOGGLER = `${TABLE_HEADER} .pf-v5-c-table__toggle`;
const TITLE = '[data-ouia-component-type="PF4/Title"]';
const TITLE = '[data-ouia-component-type="PF5/Title"]';
const ouiaId = (id) => `[data-ouia-component-id="${id}"]`;
const FILTERS_DROPDOWN = 'ul[class=pf-v5-c-dropdown__menu]';
const FILTER_TOGGLE = 'button[class=pf-v5-c-select__toggle]';
Expand Down

0 comments on commit 916579f

Please sign in to comment.