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/11/30 06:43:12 UTC

[incubator-streampipes] 13/18: [STREAMPIPES-478] Increase waiting time for adapter start in test

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

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

commit eb1ee1c804066ffed91bec50eedf4612d69133e6
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Sun Nov 28 18:41:40 2021 +0100

    [STREAMPIPES-478] Increase waiting time for adapter start in test
---
 .github/workflows/cypress-test.yml       | 25 +------------------------
 ui/cypress/support/utils/AdapterUtils.ts |  2 +-
 2 files changed, 2 insertions(+), 25 deletions(-)

diff --git a/.github/workflows/cypress-test.yml b/.github/workflows/cypress-test.yml
index 4d660e7..cdf3c8a 100644
--- a/.github/workflows/cypress-test.yml
+++ b/.github/workflows/cypress-test.yml
@@ -49,25 +49,10 @@ jobs:
       - name: Build and run streampipes
         run: docker-compose up --build -d
 
-#      - name: Pull Docker
-#        working-directory: ./installer/compose
-#        run: docker-compose pull
-#      - name: Start Docker
-#        working-directory: ./installer/compose
-#        run: docker-compose up -d
-
-      - name: Docker PS
-        working-directory: ./installer/compose
-        run: docker ps
-
       - name: Wait 30 seconds
         working-directory: ./installer/compose
         run: sleep 70
 
-      - name: Docker PS
-        working-directory: ./installer/compose
-        run: docker ps
-
       - name: 'UI Tests'
         uses: cypress-io/github-action@v2
         with:
@@ -75,12 +60,4 @@ jobs:
           wait-on: 'http://localhost/#/login'
           wait-on-timeout: 120
           spec: cypress/tests/**/*.smoke.ts
-          working-directory: ui
-
-#      - name: Run Cypress Tests
-#        working-directory: ./ui
-#        run: |
-#          NODE_PATH=/cache/node_modules
-#          NODE_OPTIONS=--max_old_space_size=6096
-#          npm install --unsafe-perm --legacy-peer-deps
-#          npm run test-cypress-github
\ No newline at end of file
+          working-directory: ui
\ No newline at end of file
diff --git a/ui/cypress/support/utils/AdapterUtils.ts b/ui/cypress/support/utils/AdapterUtils.ts
index 49511e5..232f015 100644
--- a/ui/cypress/support/utils/AdapterUtils.ts
+++ b/ui/cypress/support/utils/AdapterUtils.ts
@@ -182,7 +182,7 @@ export class AdapterUtils {
 
     // Start adapter
     cy.get('#button-startAdapter').click();
-    cy.dataCy(successElement, { timeout: 10000 }).should('be.visible');
+    cy.dataCy(successElement, { timeout: 20000 }).should('be.visible');
 
     // Close adapter preview
     cy.get('button').contains('Close').parent().click();