test(cypress): update page load wait

This commit is contained in:
Rui Saraiva 2020-09-01 23:27:07 +01:00
parent adb0f46b55
commit b2c22bad97
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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', () => {