File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 11import scopeSelectors from '../helpers/scopeSelectors' ;
2+ import pf6 from '../selectors/pf6' ;
23
34export const selectors = {
45 orchestratorComponentsToggle : scopeSelectors ( '[data-testid="orchestrator-components-toggle"]' , {
56 hideButton : 'button:contains("Hide")' ,
67 showButton : 'button:contains("Show")' ,
78 } ) ,
8- menuButton : '[aria-label="User menu"]' ,
9-
10- menuList : scopeSelectors ( '[aria-label="User menu"] + div ul li' , {
9+ menuButton : `${ pf6 . menuToggle } [aria-label="User menu"]` ,
10+ menuList : scopeSelectors ( pf6 . dropdownItem , {
1111 userEmail : '[data-testid="menu-user-email"]' ,
1212 userName : '[data-testid="menu-user-name"]' ,
1313 userRoles : '[data-testid="menu-user-roles"]' ,
Original file line number Diff line number Diff line change 1- const navSelectors = {
2- nav : 'nav[data-ouia-component-type="PF6/Nav"]' ,
3- navExpandable : `li[data-ouia-component-type="PF6/NavExpandable"]` ,
4- navItem : `li[data-ouia-component-type="PF6/NavItem"]` ,
1+ const dropdownSelectors = {
2+ dropdown : 'div[data-ouia-component-type="PF6/Dropdown"]' ,
3+ dropdownItem : '*[data-ouia-component-type="PF6/DropdownItem"]' ,
54} as const ;
65
76const menu = 'div[data-ouia-component-type="PF6/Menu"]' ;
@@ -11,7 +10,14 @@ const menuSelectors = {
1110 menuItem : `${ menu } *[role="menuitem"]` ,
1211} as const ;
1312
13+ const navSelectors = {
14+ nav : 'nav[data-ouia-component-type="PF6/Nav"]' ,
15+ navExpandable : `li[data-ouia-component-type="PF6/NavExpandable"]` ,
16+ navItem : `li[data-ouia-component-type="PF6/NavItem"]` ,
17+ } as const ;
18+
1419export default {
15- ...navSelectors ,
20+ ...dropdownSelectors ,
1621 ...menuSelectors ,
22+ ...navSelectors ,
1723} ;
You can’t perform that action at this time.
0 commit comments