TSK-1356: Fixed selector for access items in workbaskets (#1223)

This commit is contained in:
Tristan2357 2020-08-17 11:45:33 +02:00 committed by GitHub
parent 0943ff9145
commit 72d4c3150a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -101,9 +101,7 @@ context('TASKANA Workbaskets', () => {
cy.get('[title="Add new access"]')
.click()
.then(() => {
cy.get(
'.ng-invalid.ng-star-inserted > .text-align > > .custom-form-control > :nth-child(2) > .input-group > .form-control'
)
cy.get('[data-cy=typeahead_input].ng-pristine.ng-invalid')
// .contains("Access id is required")
.type('teamlead-2');
cy.get('.input-group > .dropdown > .dropdown-menu >').click();

View File

@ -36,7 +36,7 @@
(typeaheadOnSelect)="typeaheadOnSelect($event)" [typeaheadScrollable]="true"
[typeaheadOptionsInScrollableView]="typeaheadOptionsInScrollableView" [typeaheadMinLength]="typeaheadMinLength"
[typeaheadWaitMs]="typeaheadWaitMs" (typeaheadLoading)="changeTypeaheadLoading($event)" placeholder="{{displayError? placeHolderMessage: ''}}"
[@validation]="validationValue">
[@validation]="validationValue" data-cy="typeahead_input">
<button *ngIf="!typeaheadLoading" type="button" title="search" class="btn rounded blue search-button" >
<span class="material-icons md-20 blue">search</span>
</button>