Skip to content

Add code block integration coverage#6520

Draft
Alek99 wants to merge 1 commit into
mainfrom
issue-6484-code-block-tests
Draft

Add code block integration coverage#6520
Alek99 wants to merge 1 commit into
mainfrom
issue-6484-code-block-tests

Conversation

@Alek99
Copy link
Copy Markdown
Member

@Alek99 Alek99 commented May 16, 2026

Summary

  • add Playwright coverage for rx.code_block rendering options, line numbers, wrapping, and copy buttons
  • ensure custom_style is passed through to react-syntax-highlighter as customStyle
  • preserve pre-wrap behavior when wrap_long_lines is enabled

Fixes #6484

Tests

  • uv run pytest tests/units/components/datadisplay/test_code.py
  • uv run pytest tests/integration/tests_playwright/test_code_block.py
  • uv run ruff check packages/reflex-components-code/src/reflex_components_code/code.py tests/integration/tests_playwright/test_code_block.py
  • uv run ruff format --check packages/reflex-components-code/src/reflex_components_code/code.py tests/integration/tests_playwright/test_code_block.py
  • uv run pyright packages/reflex-components-code/src/reflex_components_code/code.py
  • git diff --check

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 16, 2026

Merging this PR will not alter performance

✅ 24 untouched benchmarks


Comparing issue-6484-code-block-tests (836335e) with main (9ed3692)

Open in CodSpeed

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.

Add integration tests for rx.code_block

1 participant