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
jts-askai-group-filters
Jason Stirnaman 2025-11-12 12:43:57 -06:00
parent b81bf84ee5
commit c2a49b1134
2 changed files with 3 additions and 4 deletions

View File

@ -43,7 +43,7 @@ function getCurrentProductData() {
urls: influxdbUrls.core, urls: influxdbUrls.core,
}, },
{ {
pattern: /\/enterprise_v1\//, pattern: /\/enterprise_influxdb\//,
product: products.enterprise_influxdb, product: products.enterprise_influxdb,
urls: influxdbUrls.oss, urls: influxdbUrls.oss,
}, },

View File

@ -171,9 +171,8 @@ describe('Product Data Validation - AI Questions', function () {
expect(products.influxdb3_cloud_serverless.name).to.equal( expect(products.influxdb3_cloud_serverless.name).to.equal(
'InfluxDB Cloud Serverless' 'InfluxDB Cloud Serverless'
); );
expect( expect(products.influxdb3_cloud_serverless.ai_sample_questions).to
products.influxdb3_cloud_serverless.ai_sample_questions .exist;
).to.exist;
const questionsText = const questionsText =
products.influxdb3_cloud_serverless.ai_sample_questions.join(' '); products.influxdb3_cloud_serverless.ai_sample_questions.join(' ');