Skip to content

Instantly share code, notes, and snippets.

@filiphric
Last active October 12, 2021 20:39
Show Gist options
  • Save filiphric/84b89265f8c948523e43f686ae68c66d to your computer and use it in GitHub Desktop.
Save filiphric/84b89265f8c948523e43f686ae68c66d to your computer and use it in GitHub Desktop.
Viewing an app on touch device
it('touch device', () => {
cy.visit('/', {
onBeforeLoad: (win) => {
win.ontouchstart = true
}
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment