Skip to content

Commit

Permalink
Add data-test selectors for namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wenincode committed Nov 6, 2023
1 parent c0d5bd7 commit 3dad02d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@placeholder='Search datacenters'
@description="WAN federated datacenters"
class='consul-datacenter-selector'
data-test-datacenter-disclosure-menu
data-test-datacenter-menu
as |Dropdown item|
>
<Dropdown.Checkmark
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ export default (collection, clickable, attribute, is, authForm, emptyState) => (
page.navigation.login = clickable('[data-test-auth-menu-signin]');
page.navigation.dc = clickable('[data-test-datacenter-menu] button');
page.navigation.nspace = clickable('[data-test-nspace-menu] button');
page.navigation.manageNspaces = clickable('[data-test-main-nav-nspaces] a');
page.navigation.manageNspaces = clickable(
'[data-test-nspace-menu] [data-test-nav-selector-footer-link]'
);
page.navigation.manageNspacesIsVisible = is(
':checked',
'[data-test-nspace-menu] > input[type="checkbox"]'
);
page.navigation.dcs = collection('[data-test-datacenter-menu] [data-test-dc-item]', {
name: clickable('a'),
name: clickable(),
});
return page;
};
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
@iconPosition='trailing'
@icon='arrow-right'
@color='secondary'
data-test-nav-selector-footer-link
/>
</DD.Footer>
{{/if}}
Expand Down

0 comments on commit 3dad02d

Please sign in to comment.