docs-v2/cypress/e2e
Jason Stirnaman e1f83584e2
fix(influxdb3): backfill missing product URLs in localStorage (#6961)
* fix(influxdb3): backfill missing product URLs in localStorage

Returning visitors with stale localStorage (created before core/enterprise
products were added) had undefined URL values for new products. The
updateUrls() function then replaced Hugo-rendered hostnames like
localhost:8181 with the string "undefined" in api-endpoint blocks.

Fix by merging DEFAULT_STORAGE_URLS as fallbacks when reading from
localStorage, so new product keys are always present.

closes #6960

https://claude.ai/code/session_01GJZ2yMR5DBk1feqTD5LeHW

* test(influxdb3): add Cypress tests for localStorage URL backfill

Adds 2 E2E tests for the fix in #6960:

1. Stale localStorage (missing `core` key) should not cause "undefined"
   to appear in api-endpoint or code blocks on the plugins page.
2. Fresh localStorage should be initialized with all expected product
   URL keys (oss, cloud, core, enterprise, serverless, dedicated, clustered).

Run with:
  node cypress/support/run-e2e-specs.js --spec "cypress/e2e/influxdb-url.cy.js" --no-mapping

https://claude.ai/code/session_01GJZ2yMR5DBk1feqTD5LeHW

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-18 11:25:49 -05:00
..
content fix(ui): fix Ask AI code control and add e2e tests (#6955) 2026-03-16 21:05:47 -05:00
influxdb-url.cy.js fix(influxdb3): backfill missing product URLs in localStorage (#6961) 2026-03-18 11:25:49 -05:00
page-context.cy.js Ask AI group filters (#6529) 2025-11-18 16:43:02 -06:00
topnav.cy.js chore(e2e): Add Cypress for link checking and end-to-end tests. Fix broken links revealed by tests. 2025-02-03 17:52:04 -06:00