From 6987847dc635342d937193313f64724a4717bd02 Mon Sep 17 00:00:00 2001 From: conservationtimothy Date: Wed, 24 Jun 2026 15:34:48 +0100 Subject: [PATCH 01/11] fix: replace waitForFunction map-ready polling with data-map-ready DOM signal, fix middleware API destructuring --- components/AlertsDashboard.vue | 4 +- middleware/oauth.global.ts | 19 +++--- tests/e2e/01-alerts.spec.ts | 62 +++---------------- .../e2e/helpers/navigateToAlertsDashboard.ts | 6 +- 4 files changed, 22 insertions(+), 69 deletions(-) diff --git a/components/AlertsDashboard.vue b/components/AlertsDashboard.vue index 1de3b40c..ff8f7441 100644 --- a/components/AlertsDashboard.vue +++ b/components/AlertsDashboard.vue @@ -119,6 +119,7 @@ const calculateHectares = ref(false); const dateOptions = ref(); const hasRulerControl = ref(false); const map = ref(); +const mapReady = ref(false); const showBasemapSelector = ref(false); const showIntroPanel = ref(true); const showSidebar = ref(true); @@ -1406,6 +1407,7 @@ const prepareMapLegendContent = () => { } mapLegendContent.value = legendItems; + mapReady.value = true; }); }; @@ -1702,7 +1704,7 @@ onBeforeUnmount(() => {