test: add @feature:line-numbers tag for plugins that hide line numbers#7658
Merged
JohnMcLear merged 1 commit intodevelopfrom May 2, 2026
Merged
test: add @feature:line-numbers tag for plugins that hide line numbers#7658JohnMcLear merged 1 commit intodevelopfrom
JohnMcLear merged 1 commit intodevelopfrom
Conversation
…line-numbers
Surfaced by ep_hide_line_numbers' red main. Two pad_settings specs
use `expect(...).not.toHaveClass(/line-numbers-hidden/)` to verify
the line-number gutter is visible by default before settings flip
it on, but plugins that hide line numbers (ep_hide_line_numbers
sets `pad.changeViewOption('showLineNumbers', false)` in postAceInit)
keep that class on the body for the entire pad lifetime.
Tag the two affected specs with @feature:line-numbers so plugins
that hide line numbers can declare `disables: ["@feature:line-numbers"]`
in ep.json and have these excluded from pass-1 regression while
still failing pass-2 honesty (plugin must actually keep them hidden).
Companion to the existing tag set (@feature:chat, @feature:username,
@feature:clear-authorship, @feature:error-gritter,
@feature:authorship-bg-color). See doc/PLUGIN_FEATURE_DISABLES.md.
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 QodoTag line-numbers-related pad_settings specs with feature flag
WalkthroughsDescription• Tags two pad_settings specs with @feature:line-numbers • Allows plugins hiding line numbers to declare feature disables • Excludes affected tests from pass-1 regression testing • Enables pass-2 honesty verification for plugin behavior Diagramflowchart LR
A["pad_settings specs"] -- "add @feature:line-numbers tag" --> B["Feature-aware test runner"]
B -- "plugins declare disables" --> C["Excluded from pass-1 regression"]
B -- "plugins declare disables" --> D["Included in pass-2 honesty"]
File Changes1. src/tests/frontend-new/specs/pad_settings.spec.ts
|
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.
Surfaced by ep_hide_line_numbers' red main on the disables-aware test runner.
Two pad_settings specs use
expect(...).not.toHaveClass(/line-numbers-hidden/)to verify the line-number gutter is visible by default before settings flip it on. Plugins that hide line numbers (ep_hide_line_numbers callspad.changeViewOption('showLineNumbers', false)in postAceInit) keep that class on the body for the entire pad lifetime, so those negative assertions can never hold.Change
Adds
@feature:line-numberstag to:pad_settings.spec.ts:31— pad settings act as defaults until enforcement is enabledpad_settings.spec.ts:125— uses My View defaults for newly created pads without changing an existing pad defaultep_hide_line_numbers will declare
"disables": ["@feature:line-numbers"]in ep.json so these are excluded from pass-1 regression and counted in pass-2 honesty.Note: ep_hide_line_numbers also fails on
rtl_url_param.spec.ts:11/16for an apparently unrelated reason (the RTL checkbox stays unchecked when both?rtl=trueand the plugin'schangeViewOptionare in flight). That's a real plugin/core interaction bug, not a feature exclusion — handled separately.Companion to existing tags (
@feature:chat,@feature:username,@feature:clear-authorship,@feature:error-gritter,@feature:authorship-bg-color). Seedoc/PLUGIN_FEATURE_DISABLES.md.🤖 Generated with Claude Code