test: add @feature:authorship-bg-color tag for plugins that re-render authorship#7657
Merged
JohnMcLear merged 1 commit intodevelopfrom May 2, 2026
Merged
Conversation
… authorship Plugins like ep_author_neat2 swap Etherpad's coloured-background authorship indicator for an underline. Their README is explicit about this; their main is red on the disables-aware test runner because change_user_color.spec.ts:59 hard-asserts the chat <p>'s background-color matches the user's colour, which a non-background rendering legitimately won't satisfy. Add a second tag (@feature:authorship-bg-color) alongside the existing @feature:chat so plugins that swap rendering can declare "disables": ["@feature:authorship-bg-color"] and have this single spec excluded from pass-1 regression while still running pass-2 honesty (the bg-color assertion fails under the plugin → contract honoured). Multi-tag: ep_disable_chat keeps excluding it via @feature:chat; ep_author_neat2 excludes it via @feature:authorship-bg-color. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one. |
Review Summary by QodoAdd authorship background color feature tag for plugin compatibility
WalkthroughsDescription• Add @feature:authorship-bg-color tag to chat color test • Allow plugins that re-render authorship to disable specific assertion • Support alternative authorship rendering (e.g., underlines instead of backgrounds) • Enable multi-tag filtering for disables-aware test runner Diagramflowchart LR
A["change_user_color.spec.ts"] -->|adds tag| B["@feature:authorship-bg-color"]
B -->|allows plugins to declare| C["disables in ep.json"]
C -->|excludes test from| D["pass-1 regression run"]
D -->|while allowing| E["pass-2 honesty test"]
File Changes1. src/tests/frontend-new/specs/change_user_color.spec.ts
|
Code Review by Qodo
1. Docs missing new tag
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #7648 / #7655 — extends the disables contract to cover plugins that swap Etherpad's coloured-background authorship indicator for something else (
ep_author_neat2uses underlines).Why
change_user_color.spec.ts:59hard-asserts:That assertion is correct for stock Etherpad but legitimately false under any plugin that swaps the colour-block rendering (per ep_author_neat2's README: "uses colored underlines instead of colored backgrounds to indicate authorship"). Without a tag, those plugins can't pass the disables-aware test runner.
Change
Adds a second tag alongside the existing
@feature:chat:ep_author_neat2 will declare
"disables": ["@feature:authorship-bg-color"]in its ep.json. ep_disable_chat continues to exclude it via the existing@feature:chattag (multi-tag tests are excluded if any of their tags match--grep-invert).Verified locally:
playwright test --list --grep '@feature:authorship-bg-color'returns exactly the one test.🤖 Generated with Claude Code