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/08/13 12:45:18 UTC

[incubator-streampipes] branch STREAMPIPES-319 updated: [STREAMPIPES-319] Add wait to the installation cypress test

This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch STREAMPIPES-319
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/STREAMPIPES-319 by this push:
     new 7f4376e  [STREAMPIPES-319] Add wait to the installation cypress test
     new 9ec7eb7  MFix cypress tests erge branch 'STREAMPIPES-319' of github.com:apache/incubator-streampipes into STREAMPIPES-319
7f4376e is described below

commit 7f4376e1aeddecfa3cb59ceb2c688398f21cc7a2
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Fri Aug 13 14:43:56 2021 +0200

    [STREAMPIPES-319] Add wait to the installation cypress test
---
 ui/cypress/tests/installation/installation.ts | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/ui/cypress/tests/installation/installation.ts b/ui/cypress/tests/installation/installation.ts
index 62e0374..79f9923 100644
--- a/ui/cypress/tests/installation/installation.ts
+++ b/ui/cypress/tests/installation/installation.ts
@@ -20,15 +20,17 @@ import { UserUtils } from '../../support/utils/UserUtils';
 
 
 describe('Install StreamPipes', () => {
-  before('Setup Test', () => {
-    it('Open Streampipes', () => {
-      cy.visit('#/login');
-    });
-  });
-
   let isSetupPage: boolean;
 
   it('Perform Test', () => {
+
+    cy.visit('#/login');
+
+    // This wait ensures that the installation site is completely loaded
+    // If a better solution is found this wait can be removed
+    // The test should work for both cases either when the system is already installed and when it should be installed
+    cy.wait(10000);
+
     cy.url({ timeout: 60000 }).then(($route) => {
       isSetupPage = ($route.endsWith('setup')) ? true : false;
       if (isSetupPage) {