You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2021/06/17 16:13:12 UTC

[incubator-streampipes] branch STREAMPIPES-380 updated: [STREAMPIPES-380] Change minor settings to ease automated testing

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


The following commit(s) were added to refs/heads/STREAMPIPES-380 by this push:
     new 9800515  [STREAMPIPES-380] Change minor settings to ease automated testing
9800515 is described below

commit 98005157cecf0aa9be51e6415ca45071d894bcee
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Thu Jun 17 18:12:38 2021 +0200

    [STREAMPIPES-380] Change minor settings to ease automated testing
---
 .../components/pipeline-assembly/pipeline-assembly.component.html   | 3 ++-
 .../pipeline-element-options.component.html                         | 4 ++--
 ui/src/app/editor/components/pipeline/pipeline.component.html       | 3 ++-
 .../pipeline-element-discovery.component.html                       | 6 +++++-
 .../dialog/delete-pipeline/delete-pipeline-dialog.component.html    | 2 +-
 5 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly.component.html b/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly.component.html
index 63973fc..41b76af 100644
--- a/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly.component.html
+++ b/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly.component.html
@@ -54,7 +54,8 @@
                 <i class="material-icons">settings_overscan</i>
             </button>
             <button mat-button mat-icon-button matTooltip="Add pipeline element" [matTooltipPosition]="'above'"
-                    (click)="openDiscoverDialog()">
+                    (click)="openDiscoverDialog()"
+                    data-cy="sp-editor-add-pipeline-element">
                 <i class="material-icons">add</i>
             </button>
             <div fxLayout="column" fxLayoutAlign="start center" class="pipeline-cache-block">
diff --git a/ui/src/app/editor/components/pipeline-element-options/pipeline-element-options.component.html b/ui/src/app/editor/components/pipeline-element-options/pipeline-element-options.component.html
index 4a20593..cb5f15c 100644
--- a/ui/src/app/editor/components/pipeline-element-options/pipeline-element-options.component.html
+++ b/ui/src/app/editor/components/pipeline-element-options/pipeline-element-options.component.html
@@ -15,8 +15,8 @@
   ~ limitations under the License.
   ~
   -->
-<div>
-    <div [ngStyle]="currentMouseOverElement==pipelineElement.payload.dom ? {opacity: 1} : {opacity: 0}" class="sp-fade-options">
+<div >
+    <div  [ngStyle]="currentMouseOverElement==pipelineElement.payload.dom ? {opacity: 1} : {opacity: 1}" class="sp-fade-options">
         <span class="options-button customize-button" *ngIf="pipelineElement.type!='stream'" style="z-index:10">
             <button mat-button mat-icon-button matTooltip="Configure Element"
                     [matTooltipPosition]="'above'"
diff --git a/ui/src/app/editor/components/pipeline/pipeline.component.html b/ui/src/app/editor/components/pipeline/pipeline.component.html
index 603b15e..dba44c7 100644
--- a/ui/src/app/editor/components/pipeline/pipeline.component.html
+++ b/ui/src/app/editor/components/pipeline/pipeline.component.html
@@ -45,7 +45,8 @@
                                    [pipelineElement]="pipelineElement"
                                    [rawPipelineModel]="rawPipelineModel"
                                    [pipelineElementId]="pipelineElement.type == 'stream' ? pipelineElement.payload.elementId : pipelineElement.payload.belongsTo"
-                                   [internalId]="pipelineElement.payload.dom">
+                                   [internalId]="pipelineElement.payload.dom"
+                                   [attr.data-cy]="'sp-pe-menu-' + pipelineElement.payload.name.toLowerCase().replaceAll(' ', '_')">
         </pipeline-element-options>
         <pipeline-element-preview *ngIf="previewModeActive && (pipelinePreview.supportedPipelineElementDomIds.indexOf(pipelineElement.payload.dom) > -1)"
                                   [previewId]="pipelinePreview.previewId"
diff --git a/ui/src/app/editor/dialog/pipeline-element-discovery/pipeline-element-discovery.component.html b/ui/src/app/editor/dialog/pipeline-element-discovery/pipeline-element-discovery.component.html
index 56d5297..602c282 100644
--- a/ui/src/app/editor/dialog/pipeline-element-discovery/pipeline-element-discovery.component.html
+++ b/ui/src/app/editor/dialog/pipeline-element-discovery/pipeline-element-discovery.component.html
@@ -20,7 +20,11 @@
     <div class="sp-dialog-content p-15">
         <div fxFlex="100" fxLayout="column">
             <div *ngFor="let currentElement of currentElements; index as i" (click)="create(currentElement)">
-                <div fxLayout="row" class="m-10" fxLayoutAlign="start center" [style]="styles[i]" (mouseenter)="changeStyle(i, true)" (mouseleave)="changeStyle(i, false)" >
+                <div fxLayout="row" class="m-10" fxLayoutAlign="start center"
+                     [style]="styles[i]"
+                     (mouseenter)="changeStyle(i, true)"
+                     (mouseleave)="changeStyle(i, false)"
+                     [attr.data-cy]="currentElement.name.toLowerCase().replaceAll(' ', '_')">
                     <div class="draggable-icon-preview {{currentElementStyle(currentElement)}}">
                         <pipeline-element [pipelineElement]="currentElement" [iconSize]="true"></pipeline-element>
                     </div>
diff --git a/ui/src/app/pipelines/dialog/delete-pipeline/delete-pipeline-dialog.component.html b/ui/src/app/pipelines/dialog/delete-pipeline/delete-pipeline-dialog.component.html
index 5066d83..6c8a00f 100644
--- a/ui/src/app/pipelines/dialog/delete-pipeline/delete-pipeline-dialog.component.html
+++ b/ui/src/app/pipelines/dialog/delete-pipeline/delete-pipeline-dialog.component.html
@@ -32,7 +32,7 @@
                 </button>
                 <button mat-button mat-raised-button color="primary" *ngIf="pipeline.running"
                         (click)="stopAndDeletePipeline()"
-                        data-cy="stop-and-delete">
+                        data-cy="sp-pipeline-stop-and-delete">
                     Stop and
                     delete pipeline
                 </button>