Skip to content

Commit

Permalink
fix(tests) add wait before click
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Narcisi committed Nov 21, 2024
1 parent 741db16 commit 8a8213a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/cypress/e2e/occhab-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('Testing occhab', () => {
cy.get(
'[data-qa="pnx-occhab-form"] > div:nth-child(1) > pnx-map > div > div.leaflet-container.leaflet-touch.leaflet-fade-anim.leaflet-grab.leaflet-touch-drag.leaflet-touch-zoom > div.leaflet-control-container > div.leaflet-top.leaflet-left > div.leaflet-draw.leaflet-control > div:nth-child(1) > div > a'
).click();
cy.wait(10000);
const positions = [
[250, 250],
[300, 250],
Expand All @@ -26,7 +27,7 @@ describe('Testing occhab', () => {
];
positions.forEach((pos) => {
cy.get(canvas).click(pos[0], pos[1]);
cy.wait(1000);
cy.wait(10000);
});
cy.get('#validateButton').should('be.disabled');

Expand Down

0 comments on commit 8a8213a

Please sign in to comment.