Skip to content

[WIP] Add a Vite-based manual test server#1374

Open
filipsobol wants to merge 27 commits into
masterfrom
vite-manual-test-server
Open

[WIP] Add a Vite-based manual test server#1374
filipsobol wants to merge 27 commits into
masterfrom
vite-manual-test-server

Conversation

@filipsobol

Copy link
Copy Markdown
Member

🚀 Summary

Add a Vite-based manual test server.


📌 Related issues


💡 Additional information

Still WIP.

Comment thread packages/ckeditor5-dev-manual-server/theme/shell.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/manual-test-plugin/plugin.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/manual-test-plugin/plugin.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/manual-refresh-plugin/plugin.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/raw-plugin/plugin.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/raw-plugin/plugin.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/manual-test-plugin/plugin.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/manual-test-plugin/static-assets.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/package.json Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/manual-test-plugin/plugin.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/manual-test-plugin/shell-html.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/theme/shell.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/theme/shell.ts Outdated
Comment thread packages/ckeditor5-dev-manual-server/src/manual-test-plugin/static-assets.ts Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b3181e5. Configure here.

*/
const appElement = document.querySelector<HTMLElement>( '#app' )!;

renderApp( appElement, manualTestEntries );

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Catalog misses refresh prompt

Medium Severity

The test catalog entry never listens for ckeditor5-manual:refresh-available, while refreshPlugin suppresses normal HMR for non-CSS changes. After manual tests are added or removed, the index can keep a stale virtual:ckeditor5-manual-entries list with no refresh prompt, unlike wrapped manual pages.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b3181e5. Configure here.


export function manualTestsPlugin( manualTestPatterns: Array<string> ): Plugin {
let workspaceRoot = process.cwd();
const manualPagePatterns = manualTestPatterns.map( pattern => `${ pattern }.{html,js,md,ts}` );

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Glob suffix breaks extension patterns

Medium Severity

manualTestsPlugin always appends .{html,js,md,ts} to each configured glob. Patterns that already include those extensions (for example **/*.{html,js,md,ts}) become invalid and match no manual page files, leaving the catalog empty despite tests on disk.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b3181e5. Configure here.

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