Skip to content

Commit

Permalink
Try to fix cypress tests: ensure the topology control is enabled befo…
Browse files Browse the repository at this point in the history
…re clicking on it
  • Loading branch information
justinefricou committed Jul 9, 2024
1 parent 664b00b commit 10425c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/integration/nav_create_trek.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ describe('Create trek', () => {
cy.wait('@tiles');
cy.server();
cy.get("a.btn-success[href='/trek/add/']").contains('Add a new trek').click();
cy.get("a.linetopology-control").click();
cy.clickOnPath(3, 67);
cy.clickOnPath(3, 11);
cy.get('[data-test^="route-step-"]');
cy.get("input[id='id_duration']").type('100');
cy.get("input[name='name_en']").type('Trek number 1');
cy.get("a[href='#name_fr']").click();
Expand All @@ -49,6 +45,10 @@ describe('Create trek', () => {
cy.setTinyMceContent('id_description_teaser_en', 'Description teaser number 1');
cy.setTinyMceContent('id_ambiance_en', 'Ambiance number 1');
cy.setTinyMceContent('id_description_en', 'Description number 1');
cy.get("a.linetopology-control").click();
cy.clickOnPath(3, 67);
cy.clickOnPath(3, 11);
cy.get('[data-test^="route-step-"]');
cy.get('#save_changes').click();
cy.url().should('not.include', '/trek/add/');
cy.get('.content').should('contain', 'Trek number 1');
Expand Down

0 comments on commit 10425c8

Please sign in to comment.