user14695970
user14695970

Reputation:

Can I run Cypress tests on Iphone and Android using different browsers?

Can anybody let me know if it is actually possible to run Cypress tests on real phone or on Android Studio emulator and Xcode simulator?

Upvotes: 7

Views: 17346

Answers (1)

Krishna Majgaonkar
Krishna Majgaonkar

Reputation: 1746

If you go through cypress official website, they have clearly mentioned that cypress will NOT run on native mobile app. So we can not run cypress on a real phone or simulator or emulator. However, cypress supports testing different viewports to test web pages in mobile view.

Cypress will never be able to run on a native mobile app, but we can test some functionality of mobile web browsers and test mobile applications that are developed in a browser, such as with the Ionic framework.

Currently you can control the viewport with the cy.viewport() command to test responsive, mobile views in a website or web application. You can also mimic certain behaviors like swiping using custom commands.

You can read about testing mobile applications with Ionic and Cypress here and see how we manage testing the mobile viewport in the Cypress Real World App.

Source

Upvotes: 11

Related Questions