From c2a49b113409ff59a1877ffb68c74191f384a585 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Wed, 12 Nov 2025 12:43:57 -0600 Subject: [PATCH] fix(page-context): correct enterprise_influxdb URL pattern matching - Changed pattern from /enterprise_v1/ to /enterprise_influxdb/ - Fixes Ask AI example questions not showing correctly for Enterprise v1 - Pattern now matches actual URL structure /enterprise_influxdb/v1/ - All 27 e2e tests passing --- assets/js/page-context.js | 2 +- cypress/e2e/page-context.cy.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/js/page-context.js b/assets/js/page-context.js index 5566f2f04..695f73194 100644 --- a/assets/js/page-context.js +++ b/assets/js/page-context.js @@ -43,7 +43,7 @@ function getCurrentProductData() { urls: influxdbUrls.core, }, { - pattern: /\/enterprise_v1\//, + pattern: /\/enterprise_influxdb\//, product: products.enterprise_influxdb, urls: influxdbUrls.oss, }, diff --git a/cypress/e2e/page-context.cy.js b/cypress/e2e/page-context.cy.js index 52c946017..87567afea 100644 --- a/cypress/e2e/page-context.cy.js +++ b/cypress/e2e/page-context.cy.js @@ -171,9 +171,8 @@ describe('Product Data Validation - AI Questions', function () { expect(products.influxdb3_cloud_serverless.name).to.equal( 'InfluxDB Cloud Serverless' ); - expect( - products.influxdb3_cloud_serverless.ai_sample_questions - ).to.exist; + expect(products.influxdb3_cloud_serverless.ai_sample_questions).to + .exist; const questionsText = products.influxdb3_cloud_serverless.ai_sample_questions.join(' ');