Skip to content

test(webui): check the Changes and Ratings & Reviews tabs and the namespace link - #2463

Merged
netomi merged 2 commits into
eclipse-openvsx:mainfrom
Mohsintl:e2e-tabs-publisher
Nov 19, 2026
Merged

netomi merged 2 commits into
eclipse-openvsx:mainfrom
Mohsintl:e2e-tabs-publisher

Conversation

@Mohsintl

Copy link
Copy Markdown
Contributor

Part of #1998: the tabs and namespace tests from my comment there.

  • Changes: opening the tab moves to …/changes and shows the changelog the page loaded. The test reads the first line of the fetched CHANGELOG.md, strips the Markdown syntax and checks that text is visible, so it works for any extension with a changelog (production starts with a sentence and a link, staging with a ### v1.4.0 heading). It also checks that "No changelog available" is not shown.
  • Ratings & Reviews: opening the tab moves to …/reviews and shows the User Reviews section with the "Log in to Review" link, since the smoke tests run logged out.
  • Namespace: the namespace link on the extension page opens /namespace/<name>, which lists a link back to that extension.

The extensionToOpen docs now also require a changelog. Both current fixtures have one.

Tested locally with Playwright 1.65:

  • production: full suite 3 runs, 24/24; the new tests with --repeat-each=5, 10/10
  • staging: full suite 2 runs, 16/16; the new tests 10/10
  • with an empty changelog served, the tabs test fails with "the changelog is empty"; with the namespace details listing no extensions, the namespace test fails at the link check
  • ESLint passes, and a strict type check of test/e2e reports no errors

One thing I left out on purpose. Clicking the extension on its namespace page to go back opens an empty Error dialog on production, and the extension page does not render (3/3 attempts). Leaving the namespace page aborts its /api/<namespace>/details request. Staging runs v1.4.0 and works (5/5), production runs v1.3.2, so this looks like what the abort handling in #2360 / #2364 fixed. Since the scheduled run tests production, I kept that step out; I can add it once production is on v1.4.0.

Tests only, so no changelog entry.

…espace link

The smoke tests only checked that the Changes and Ratings & Reviews tabs
exist. Opening Changes now has to show the changelog the page loaded,
opening Ratings & Reviews the reviews section, and the namespace link on
an extension page has to open a namespace page that lists the extension.

Signed-off-by: Tingri Lohar Mohammed Mohsin <[email protected]>

@netomi netomi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the tabs test looks good. One change needed in the namespace test: it assumes the namespace is displayed by its id, which only holds for namespaces without a display name.

Comment thread webui/test/e2e/smoke-test.spec.ts Resolved
Comment thread webui/test/e2e/smoke-test.spec.ts Resolved

@netomi netomi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, finding the link by its target works for any display name. LGTM.

@netomi
netomi merged commit 3025cb9 into eclipse-openvsx:main Nov 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants