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 14:02:25 UTC
[incubator-streampipes] branch STREAMPIPES-380 updated:
[STREAMPIPES-380] Add ids for cypress tests
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 7db8135 [STREAMPIPES-380] Add ids for cypress tests
new 3acc0e2 Merge branch 'STREAMPIPES-380' of github.com:apache/incubator-streampipes into STREAMPIPES-380
7db8135 is described below
commit 7db8135e484985341b8a89b9ce03f0466ce501c7
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Thu Jun 17 16:01:43 2021 +0200
[STREAMPIPES-380] Add ids for cypress tests
---
.../pipeline-assembly/pipeline-assembly.component.html | 3 ++-
.../pipeline-element-options.component.html | 3 ++-
.../compatible-elements/compatible-elements.component.html | 3 ++-
ui/src/app/editor/dialog/customize/customize.component.html | 3 ++-
.../dialog/save-pipeline/save-pipeline.component.html | 13 ++++++++++---
.../pipeline-overview/pipeline-overview.component.html | 3 ++-
.../delete-pipeline/delete-pipeline-dialog.component.html | 4 +++-
.../pipeline-status/pipeline-status-dialog.component.html | 6 ++++--
8 files changed, 27 insertions(+), 11 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 6a616a4..3415dfa 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
@@ -21,7 +21,8 @@
<div fxFlex="100" fxLayout="row" fxLayoutAlign="start center">
<button mat-button matTooltip="Save Pipeline" [matTooltipPosition]="'above'"
[disabled]="!PipelineValidationService.pipelineValid"
- (click)="submit()" type="submit">
+ (click)="submit()" type="submit"
+ data-cy="sp-editor-save-pipeline">
<div fxLayoutAlign="start center" fxLayout="row">
<i class="material-icons">save</i>
<span> Save pipeline</span>
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 8b022fb..4a20593 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
@@ -41,7 +41,8 @@
<span class="options-button possible-button" *ngIf="pipelineElement.type!='action'" style="z-index:10">
<button mat-button mat-icon-button matTooltip="Compatible Elements" [matTooltipPosition]="'below'"
[disabled]="!possibleElements || possibleElements.length == 0 || !isConfigured()"
- (click)="openPossibleElementsDialog()">
+ (click)="openPossibleElementsDialog()"
+ [attr.data-cy]="'sp-possible-elements-' + pipelineElement.payload.name.toLowerCase().replaceAll(' ', '_')"_>
<i class="material-icons">account_tree</i>
</button>
</span>
diff --git a/ui/src/app/editor/dialog/compatible-elements/compatible-elements.component.html b/ui/src/app/editor/dialog/compatible-elements/compatible-elements.component.html
index 26e1f8e..f20d3d5 100644
--- a/ui/src/app/editor/dialog/compatible-elements/compatible-elements.component.html
+++ b/ui/src/app/editor/dialog/compatible-elements/compatible-elements.component.html
@@ -20,7 +20,8 @@
<div class="sp-dialog-content p-15">
<div fxFlex="100" fxLayout="column">
<div *ngFor="let possibleElement of possibleElements; index as i" (click)="create(possibleElement)">
- <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]="'sp-compatible-elements-' + possibleElement.name.toLowerCase().replaceAll(' ', '_')">
<div class="draggable-icon-preview {{isDataProcessor(possibleElement) ? 'sepa' : 'action'}}">
<pipeline-element [pipelineElement]="possibleElement" [iconSize]="true"></pipeline-element>
</div>
diff --git a/ui/src/app/editor/dialog/customize/customize.component.html b/ui/src/app/editor/dialog/customize/customize.component.html
index 28f82d8..655bb92 100644
--- a/ui/src/app/editor/dialog/customize/customize.component.html
+++ b/ui/src/app/editor/dialog/customize/customize.component.html
@@ -103,7 +103,8 @@
<div class="sp-dialog-actions">
<div fxLayout="row" *ngIf="!templateMode">
<button mat-button mat-raised-button color="primary" (click)="save()" style="margin-right:10px;"
- [disabled]="!(formValid)">
+ [disabled]="!(formValid)"
+ data-cy="sp-element-configuration-save">
<i class="material-icons">save</i><span> Save</span>
</button>
<button mat-button mat-raised-button class="mat-basic" (click)="close()">
diff --git a/ui/src/app/editor/dialog/save-pipeline/save-pipeline.component.html b/ui/src/app/editor/dialog/save-pipeline/save-pipeline.component.html
index 4599345..cf00f4b 100644
--- a/ui/src/app/editor/dialog/save-pipeline/save-pipeline.component.html
+++ b/ui/src/app/editor/dialog/save-pipeline/save-pipeline.component.html
@@ -33,7 +33,10 @@
<form [formGroup]="submitPipelineForm">
<div fxFlex="100" fxLayout="column" *ngIf="!currentModifiedPipelineId || updateMode=='clone'">
<mat-form-field fxFlex><mat-label>Pipeline Name</mat-label>
- <input [formControlName]="'pipelineName'" matInput name="pipelineName"/>
+ <input
+ [formControlName]="'pipelineName'"
+ data-cy="sp-editor-pipeline-name"
+ matInput name="pipelineName"/>
<!-- <span ng-show="submitPipelineForm.pipelineName.$touched && submitPipelineForm.pipelineName.$error.required">Please provide a pipeline name.</span>-->
<!-- <span ng-show="submitPipelineForm.pipelineName.$error.maxlength">Please provide a shorter pipeline name.</span>-->
</mat-form-field>
@@ -43,7 +46,10 @@
</mat-form-field>
</div>
</form>
- <mat-checkbox (click)="triggerTutorial()" color="primary" [(ngModel)]="startPipelineAfterStorage">
+ <mat-checkbox color="primary"
+ (click)="triggerTutorial()"
+ [(ngModel)]="startPipelineAfterStorage"
+ data-cy="sp-editor-checkbox-start-immediately">
Start pipeline immediately
</mat-checkbox>
</div>
@@ -67,7 +73,8 @@
<button [disabled]="!submitPipelineForm.valid || saving || saved" mat-button mat-raised-button color="primary" (click)="savePipeline(false)" style="margin-right:10px;">
Save
</button>
- <button [disabled]="!submitPipelineForm.valid || saving || saved" mat-button mat-raised-button color="primary" (click)="savePipeline(true)" style="margin-right:10px;">
+ <button [disabled]="!submitPipelineForm.valid || saving || saved" mat-button mat-raised-button color="primary" (click)="savePipeline(true)" style="margin-right:10px;"
+ data-cy="sp-editor-save">
Save and go to pipeline view
</button>
<button mat-button mat-raised-button class="mat-basic" (click)="hide()">
diff --git a/ui/src/app/pipelines/components/pipeline-overview/pipeline-overview.component.html b/ui/src/app/pipelines/components/pipeline-overview/pipeline-overview.component.html
index 1b2ea47..e516b7e 100644
--- a/ui/src/app/pipelines/components/pipeline-overview/pipeline-overview.component.html
+++ b/ui/src/app/pipelines/components/pipeline-overview/pipeline-overview.component.html
@@ -87,7 +87,8 @@
</span>
<span fxFlex fxFlexOrder="3" fxLayout="row" fxLayoutAlign="center center">
<button color="primary" mat-button mat-icon-button matTooltip="Delete pipeline" matTooltipPosition="above"
- (click)="pipelineOperationsService.showDeleteDialog(pipeline, refreshPipelinesEmitter)">
+ (click)="pipelineOperationsService.showDeleteDialog(pipeline, refreshPipelinesEmitter)"
+ data-cy="delete" >
<i class="material-icons">delete</i>
</button>
</span>
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 ab26a9f..5066d83 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
@@ -31,7 +31,9 @@
pipeline
</button>
<button mat-button mat-raised-button color="primary" *ngIf="pipeline.running"
- (click)="stopAndDeletePipeline()">Stop and
+ (click)="stopAndDeletePipeline()"
+ data-cy="stop-and-delete">
+ Stop and
delete pipeline
</button>
</div>
diff --git a/ui/src/app/pipelines/dialog/pipeline-status/pipeline-status-dialog.component.html b/ui/src/app/pipelines/dialog/pipeline-status/pipeline-status-dialog.component.html
index 556182d..5967fca 100644
--- a/ui/src/app/pipelines/dialog/pipeline-status/pipeline-status-dialog.component.html
+++ b/ui/src/app/pipelines/dialog/pipeline-status/pipeline-status-dialog.component.html
@@ -38,7 +38,7 @@
</div>
</div>
<div *ngIf="!operationInProgress && !forceStopActive" fxLayout="column" fxLayoutAlign="center center" fxFlex="100">
- <div class="success-message" fxFlex="100" fxLayoutAlign="center center" fxLayout="column">
+ <div class="success-message" fxFlex="100" fxLayoutAlign="center center" fxLayout="column" data-cy="sp-pipeline-started-dialog">
<div fxLayout="row">
<mat-icon color="accent" *ngIf="pipelineOperationStatus.success">done</mat-icon>
<mat-icon style="color: red;" *ngIf="!pipelineOperationStatus.success">error</mat-icon>
@@ -81,7 +81,9 @@
</div>
<mat-divider></mat-divider>
<div class="sp-dialog-actions actions-align-right">
- <button mat-button mat-raised-button class="mat-basic" (click)="close()">
+ <button mat-button mat-raised-button class="mat-basic"
+ (click)="close()"
+ data-cy="sp-pipeline-dialog-close">
Close
</button>
</div>