Adding test subjects to enable functional testing (#13925)
When functional testing UIs that contain this component for pagination, we need a way to get a handle on the "previous page" and "next page" buttons. So we add test subject attributes to these buttons' elements.
This commit is contained in:
parent
7f40ab764a
commit
4a01554646
|
@ -3,6 +3,7 @@
|
|||
class="kuiButton kuiButton--basic kuiButton--icon"
|
||||
ng-click="toolBarPagerButtons.previousPage()"
|
||||
ng-disabled="!toolBarPagerButtons.hasPreviousPage"
|
||||
data-test-subj="btnPrevPage"
|
||||
>
|
||||
<span class="kuiButton__icon kuiIcon fa-chevron-left"></span>
|
||||
</button>
|
||||
|
@ -10,6 +11,7 @@
|
|||
class="kuiButton kuiButton--basic kuiButton--icon"
|
||||
ng-click="toolBarPagerButtons.nextPage()"
|
||||
ng-disabled="!toolBarPagerButtons.hasNextPage"
|
||||
data-test-subj="btnNextPage"
|
||||
>
|
||||
<span class="kuiButton__icon kuiIcon fa-chevron-right"></span>
|
||||
</button>
|
||||
|
|
Loading…
Reference in a new issue