add data-cy to groupform table (#6432)

pull/6447/head
Richard Wei 2022-01-21 12:45:21 +13:00 committed by GitHub
parent 1e21aeb7e8
commit 58de8e175f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -56,6 +56,7 @@
entry-click="$ctrl.associateEndpoint"
pagination-state="$ctrl.state.available"
empty-dataset-message="No environment available"
cy-value="available-endpoints"
></group-association-table>
</div>
</div>
@ -74,6 +75,7 @@
pagination-state="$ctrl.state.associated"
empty-dataset-message="No associated environment"
has-backend-pagination="this.pageType !== 'create'"
cy-value="associated-endpoints"
></group-association-table>
</div>
</div>

View File

@ -64,5 +64,6 @@ angular.module('portainer.app').component('groupAssociationTable', {
groups: '<',
showGroups: '<',
hasBackendPagination: '<',
cyValue: '@',
},
});

View File

@ -1,5 +1,5 @@
<div class="datatable">
<table class="table table-hover">
<table class="table table-hover" data-cy="{{ $ctrl.cyValue }}">
<div class="col-sm-12">
<i class="fa fa-search searchIcon" aria-hidden="true"></i>
<input