Skip to content

fix: test the universal search upgrade prompts without a licence on any edition - #605

Merged
lightbulbman merged 1 commit into
core-betafrom
fix/universal-search-upsell-tests/core
Oct 19, 2026
Merged

lightbulbman merged 1 commit into
core-betafrom
fix/universal-search-upsell-tests/core

Conversation

@lightbulbman

Copy link
Copy Markdown
Contributor

The two universal search upgrade prompt tests now set the page's licence state to unlicensed before loading it, as code-snippets-stats.spec.ts and cloud-download-eligibility.spec.ts already do. The tests then cover the same prompts whatever the test site's edition.

Changes

  • tests/e2e/universal-search.spec.ts: adds a forceLicenseState() helper and calls it in "without Pro, searching the Cloud Library is offered as an upgrade" and "without Pro, the Cloud Library tab of the results page offers an upgrade".

Verification

  • tests/e2e/universal-search.spec.ts: 54 passed across the database and file-based projects.
  • ESLint clean.

@lightbulbman lightbulbman added the run-tests Trigger automated tests label Oct 19, 2026
@lightbulbman
lightbulbman merged commit cc20d25 into core-beta Oct 19, 2026
28 of 31 checks passed
@lightbulbman
lightbulbman deleted the fix/universal-search-upsell-tests/core branch October 19, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-tests Trigger automated tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant