mirror of
https://github.com/ruisaraiva19/favycon.git
synced 2026-09-14 11:06:21 +05:00
test(cypress): update page load wait
This commit is contained in:
parent
adb0f46b55
commit
b2c22bad97
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -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
|
||||
|
||||
@ -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', () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user