diff --git a/frontend/test/metabase/scenarios/visualizations/reproductions/18061-maps-only-nulls-crash-frontend.cy.spec.js b/frontend/test/metabase/scenarios/visualizations/reproductions/18061-maps-only-nulls-crash-frontend.cy.spec.js
index dc2bed75e84ce3b8c4c60916c39df4f891d354f1..be8284824915ff1947c10805e84f44c2c03486ec 100644
--- a/frontend/test/metabase/scenarios/visualizations/reproductions/18061-maps-only-nulls-crash-frontend.cy.spec.js
+++ b/frontend/test/metabase/scenarios/visualizations/reproductions/18061-maps-only-nulls-crash-frontend.cy.spec.js
@@ -83,6 +83,9 @@ describe("issue 18061", () => {
 
         // Enable sharing
         cy.request("POST", `/api/dashboard/${dashboard_id}/public_link`);
+        cy.request("PUT", "/api/setting/enable-public-sharing", {
+          value: true,
+        });
       },
     );
   });