Skip to content

test: cover the link preview widgets and the search providers - #247

Merged
oleksandr-nc merged 1 commit into
mainfrom
tests/reference-and-search
Sep 22, 2026
Merged

oleksandr-nc merged 1 commit into
mainfrom
tests/reference-and-search

Conversation

@oleksandr-nc

Copy link
Copy Markdown
Contributor

The Playwright suite visits the settings pages and the dashboard widget, and neither of them loads the reference bundle, the part of the frontend that renders link previews. A dependency update that breaks that bundle still passes with every check green.

The reference widgets are rendered in a browser

The tests load the reference bundle the same way Nextcloud does wherever a link preview appears, then render each widget of the app from a fixed rich object in the shape the app's own reference provider builds, and check what the widget shows. Nothing leaves the container, so no account and no API key are needed.

The providers have to answer for a user without an account

The tests check that the app offers its providers to the smart picker and to unified search with the expected titles, that the provider icons are served by the app, and that a search answers an empty result instead of an error when no account is connected.

The server gets longer to start

A Playwright run failed this week because the shallow server container was still booting after five minutes, so the suite waits ten minutes for it now.

馃 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

CI builds the frontend but never runs it, and the pages the suite visits so
far never load the reference bundle, so a dependency update that breaks a
link preview still passes with every check green.

The new tests load that bundle the way Nextcloud does wherever a link
preview is rendered, render each widget of the app from a fixed rich object,
and check that the app offers its providers to the smart picker and to
unified search and that a search answers an empty result for a user who has
connected no account.

The server container also gets ten minutes to start instead of five, after
a run failed on a slow runner while the container was still booting.

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc
oleksandr-nc merged commit 5416c02 into main Sep 22, 2026
33 checks passed
@oleksandr-nc
oleksandr-nc deleted the tests/reference-and-search branch September 22, 2026 07:05
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.

1 participant