https://cypress.io logo
Canvas testing - github actions
# i-need-help
s
I'm drawing a shape on a canvas:
Copy code
cy.get('canvas').click({position: 'topLeft', force: true, x: 50, y: 50})
cy.get('canvas').click({position: 'topLeft', force: true, x: 50, y: 50})
cy.get('canvas').click({position: 'topLeft', force: true, x: 500, y: 500})
After that i click on the canvas:
Copy code
cy.get('canvas').click()
Everything works local, but on github actions it fails.. So why is it when adding:
Copy code
cy.wait(1000)
before the
Copy code
cy.get('canvas').click()
it doesn't fail on github actions ?
Found out when i change the viewport to a larger size everything works now
2 Views