This is an automated email from the ASF dual-hosted git repository. zehnder pushed a commit to branch STREAMPIPES-380 in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit 0b2eccc8c25f1baad0513aa038af09779698fede Author: Philipp Zehnder <[email protected]> AuthorDate: Mon Jun 21 13:42:27 2021 +0200 [STREAMPIPES-380] Add tags to html for automated tests --- .../static-mapping-unary/static-mapping-unary.component.html | 2 +- .../static-one-of-input/static-one-of-input.component.html | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.html b/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.html index 84bfde6..d7d2e13 100644 --- a/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.html +++ b/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.html @@ -20,7 +20,7 @@ <div fxFlex="100" fxLayout="row"> <mat-form-field class="example-full-width"> <!--<mat-form-field class="example-full-width">--> - <mat-select formControlName="{{fieldName}}" [placeholder]="staticProperty.label"> + <mat-select formControlName="{{fieldName}}" [placeholder]="staticProperty.label" [attr.data-cy]="fieldName"> <mat-option *ngFor="let property of availableProperties | displayRecommendedPipe: staticProperty.propertyScope: displayRecommended" [value]="property.propertySelector"> {{property.runtimeName}} </mat-option> diff --git a/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.html b/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.html index 1c78422..77223b8 100644 --- a/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.html +++ b/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.html @@ -18,13 +18,15 @@ <div id="formWrapper" fxFlex="100" fxLayout="column"> - <div *ngIf="!staticProperty.horizontalRendering" fxLayout="column"> <div fxFlex fxLayout="row"> <div fxLayout="column" style="margin-left: 10px"> <mat-radio-group class="radio-group"> <mat-radio-button *ngFor="let option of staticProperty.options" style="margin-top: -10px" - [value]="option" (click)="select(option.elementId)" [checked]="option.selected"> + [value]="option" + (click)="select(option.elementId)" + [checked]="option.selected" + [attr.data-cy]="staticProperty.internalName + option.name"> <label style="font-weight: normal"> {{option.name}} </label> @@ -36,7 +38,7 @@ <div *ngIf="staticProperty.horizontalRendering"> <mat-form-field style="width: 100%"> - <mat-select [(value)]="selectedOption"> + <mat-select [(value)]="selectedOption" [attr.data-cy]="fieldName"> <mat-option *ngFor="let option of staticProperty.options" [value]="option.elementId" (click)="select(option.elementId)"> <label style="font-weight: normal"> @@ -46,5 +48,4 @@ </mat-select> </mat-form-field> </div> - </div>
