diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ceda563..b3f88bc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,6 +26,8 @@ jobs: uses: cypress-io/github-action@v1 with: config: baseUrl=${{ needs.wait_deploy.outputs.preview_url }} + wait-on: ${{ needs.wait_deploy.outputs.preview_url }} + wait-on-timeout: 120 # after the test run completes # store videos and any screenshots # NOTE: screenshots will be generated only if E2E test failed diff --git a/cypress/integration/drag-and-drop.spec.js b/cypress/integration/drag-and-drop.spec.js index 8f14756..5a0174a 100644 --- a/cypress/integration/drag-and-drop.spec.js +++ b/cypress/integration/drag-and-drop.spec.js @@ -5,14 +5,14 @@ describe('Drag & Drop', () => { beforeEach(() => { cy.viewport(1280, 720) cy.visit('/') - cy.wait(100) + cy.wait(200) }) function dropFile(fixture) { cy.get('[data-cy="drag-and-drop"]').attachFile(fixture, { subjectType: 'drag-n-drop', }) - cy.wait(10) + cy.wait(20) } it('Drop 310x310 PNG file', () => {