From 9662caac52b7cff1bafd1d928fa76c996bb8df1a Mon Sep 17 00:00:00 2001 From: rldhont Date: Mon, 13 May 2024 19:41:35 +0200 Subject: [PATCH] Fix tests e2e cypress dataviz The dataviz of a project has been updated but the tests was not. --- tests/end2end/cypress/integration/dataviz-ghaction.js | 2 +- tests/qgis-projects/tests/dataviz_filtered_in_popup.qgs.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/end2end/cypress/integration/dataviz-ghaction.js b/tests/end2end/cypress/integration/dataviz-ghaction.js index 10141d039e..83e4b18ce5 100644 --- a/tests/end2end/cypress/integration/dataviz-ghaction.js +++ b/tests/end2end/cypress/integration/dataviz-ghaction.js @@ -215,7 +215,7 @@ describe('Dataviz tests', function () { // We also test that the title in the popup is specific // and not the one configured for the plot - cy.get('#popupcontent .lizmapPopupChildren.lizdataviz > h4').should('have.text', 'Number of bakeries for this polygon') + cy.get('#popupcontent .lizmapPopupChildren.lizdataviz > h4').first().should('have.text', 'Number of bakeries for this polygon') cy.get('#popupcontent .lizmapPopupChildren.lizdataviz .dataviz-waiter').should('not.be.visible') cy.get('#popupcontent .lizmapPopupChildren.lizdataviz .plot-container') diff --git a/tests/qgis-projects/tests/dataviz_filtered_in_popup.qgs.cfg b/tests/qgis-projects/tests/dataviz_filtered_in_popup.qgs.cfg index 301fb2b7c5..fd8ccea02c 100644 --- a/tests/qgis-projects/tests/dataviz_filtered_in_popup.qgs.cfg +++ b/tests/qgis-projects/tests/dataviz_filtered_in_popup.qgs.cfg @@ -185,7 +185,7 @@ "trigger_filter": true, "stacked": "False", "horizontal": "False", - "only_show_child": "False", + "only_show_child": "True", "display_legend": "True", "display_when_layer_visible": "False", "uuid": "bakeries_plot_html_yuzce",