Skip to content

chore: add unit tests for file click on codeblock #6710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Jul 18, 2025

Description

Add test to check if file click on codeblock is functional

closes CON-2832

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screenshots

[ For visual changes, include screenshots. Screen recordings are particularly helpful, and appreciated! ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Added a unit test to check that clicking a file name in the code block preview opens the correct file.

  • Tests
  • Verifies that the "showFile" action is called with the expected file path when the file title is clicked.

@uinstinct uinstinct requested a review from a team as a code owner July 18, 2025 17:10
@uinstinct uinstinct requested review from tomasz-stefaniak and removed request for a team July 18, 2025 17:10
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant