Skip to content

Commit

Permalink
feat: Adding data-test tags to sidebar item, group and side-by-side
Browse files Browse the repository at this point in the history
  • Loading branch information
bnh08322 committed Dec 23, 2024
1 parent c893f0e commit 5351f11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/components/nrg-side-by-side.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="ui horizontal segments side-by-side {{@class}}" ...attributes>
<div class="ui segment side-by-side--primary">
<div class="ui segment side-by-side--primary" data-test-side-by-side-primary>
{{yield to="primary"}}
</div>
<div class="ui segment side-by-side--secondary">
<div class="ui segment side-by-side--secondary" data-test-side-by-side-secondary>
{{yield to="secondary"}}
</div>
</div>
1 change: 1 addition & 0 deletions addon/components/nrg-sidebar-menu/group.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@onClick={{@onClick}}
@isParentGroup={{true}}
@onClickInternal={{@onClickInternal}}
data-test-sidebar-menu-group
>
{{yield}}
</NrgSidebarMenu::Item>
Expand Down
2 changes: 2 additions & 0 deletions addon/components/nrg-sidebar-menu/item.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<LinkTo
@route={{@routeName}}
class="{{@class}} {{if @isParentGroup 'parent-route' 'item'}}"
data-test-sidebar-menu-item
{{on "click" this.onClick}}
...attributes
>
Expand All @@ -12,6 +13,7 @@
<a
href={{this.url}}
class="{{@class}} {{if @isParentGroup 'parent-route' 'item'}}"
data-test-sidebar-menu-item
target="_blank"
rel="noopener noreferrer"
{{on "click" this.onClick}}
Expand Down

0 comments on commit 5351f11

Please sign in to comment.