From 8258a9545229bd7944695263c372ee7588cd60c3 Mon Sep 17 00:00:00 2001 From: Justine Fricou Date: Tue, 9 Jul 2024 15:31:58 +0200 Subject: [PATCH] Fix cypress e2e tests: id of clicked path --- cypress/integration/nav_create_trek.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/nav_create_trek.js b/cypress/integration/nav_create_trek.js index f4237f6220..af15e33674 100644 --- a/cypress/integration/nav_create_trek.js +++ b/cypress/integration/nav_create_trek.js @@ -27,8 +27,8 @@ describe('Create trek', () => { cy.server(); cy.get("a.btn-success[href='/trek/add/']").contains('Add a new trek').click(); cy.get("a.linetopology-control").click(); - cy.clickOnPath(0, 67); - cy.clickOnPath(0, 11); + 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');