jeudi 1 mars 2018

Open Modal and Page with cypress and Ionic 3

I build an Ionic 3 project and I want to test it with Cypress. I can access to my app and run some simple test. But when I try open page of modal, nothing append and my test fail.

it('should open history', () => {
        // Button to open my page : OK
        cy.get(open_history_button).click();

        // Check if a label exists in the opened page : FAIL
        cy.get(history_no_event_label).contains("All is ok !");
    });

Cypress success to click on the button but the page doesn't appear.

Someone have an idea to solve that ?

Aucun commentaire:

Enregistrer un commentaire