Open Modal or Page with Ionic 3
See original GitHub issue- Operating System: Mac OS 10.13.3
- Cypress Version: 2.0.0
- Browser Version: Chrome 64.0.3282.186
Is this a Feature or Bug?
Bug
Current behavior:
When I tap on a button to open an Ionic 3 page or Modal, nothing append and my test fail. Cypress success to click on the button but the page doesn’t appear.
Desired behavior:
Open Ionic Modale or Page on button click with Cypress
How to reproduce:
Create an Ionic 3 empty project with a button who open a new page.
Test code:
it('should open page', () => {
// Button to open my page : OK
cy.get(my_button).click();
// Check if a label exists in the opened page : FAIL
cy.get(a_label_in_my_page).contains("All is ok !");
});
Question : Is it possible to well test Ionic 3 with Cypress ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
ion-modal: Ionic Mobile App Custom Modal API Component
A Modal is a dialog that appears on top of the app's content, and must be dismissed by the app before interaction can...
Read more >Ionic 3 Show Modals Example and Pass Data - Freaky Jolly
In the above tutorial we got to know, How to open modal in Ionic 3 application and also pass data on Modal open...
Read more >Ionic 3 - Modal Implementation - YouTube
My Learn Ionic 3 From Scratch Course - https://www.udemy.com/learn- ionic - 3 -from-scratch/?couponCode=IONIC3MAYSupport the content: ...
Read more >How to open a modal in ionic 5? - Stack Overflow
and open you modal from corresponding page. async presentModal() { const modal = await this.modalController.create({ component: ModelComponent, ...
Read more >Adding modals to an Ionic app - Daily Dev Tips
We will be adding a modal to our first tab page. Open up the tab1.page.ts file. · We do have to register the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same problem, I need to use
tap
instead ofclick
but I can’t find how to simulate this event with cypress. any one succeed on simulating the tap event guys?Is there any error that displays within your Test Runner on click? Could you share the error that is displayed?
Also, you may find success with
.click({force: true})
option.