Skip to content

Add panel auto-add tests#60

Merged
ultmaster merged 2 commits intomainfrom
codex/add-tests-for-autoaddassociatedfiles
Jul 29, 2025
Merged

Add panel auto-add tests#60
ultmaster merged 2 commits intomainfrom
codex/add-tests-for-autoaddassociatedfiles

Conversation

@ultmaster
Copy link
Contributor

Summary

  • add regression tests for autoAddAssociatedFiles behavior
  • verify associated files get auto added for a panel
  • confirm user customization prevents auto-adding later

Testing

  • npm run build-webview
  • npm run build-cli
  • npm run lint
  • npm test
  • python -m pytest python/tests
  • xvfb-run -a npm run build-extension
  • xvfb-run -a npm run test-vscode

https://chatgpt.com/codex/tasks/task_e_68876f6e092c832eb375bd340b22d292

Copilot AI review requested due to automatic review settings July 29, 2025 05:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds regression tests for the autoAddAssociatedFiles behavior in the POML VS Code extension. The tests verify that associated context and stylesheet files are automatically added to panels when they follow the expected naming convention, and confirm that manual user customization prevents the auto-adding mechanism from overriding user preferences.

  • Added comprehensive test coverage for auto-add functionality
  • Verified manual user changes take precedence over auto-add behavior
  • Included proper test cleanup and isolation
Comments suppressed due to low confidence (3)

packages/poml-vscode/tests/panelAutoAdd.test.ts:12

  • [nitpick] The parameter name _ is not descriptive. Consider using a more meaningful name like _listener or _handler to clarify this is an unused parameter.
  public readonly onDidChangeTopmostLine = (_: any) => {};

packages/poml-vscode/tests/panelAutoAdd.test.ts:24

  • [nitpick] The parameter name _msg could be more descriptive. Consider using _message to be more explicit about the unused parameter.
      postMessage: (_msg: any) => {},

packages/poml-vscode/tests/panelAutoAdd.test.ts:34

  • The variable name PanelClass is misleading since it's just an alias for POMLWebviewPanel. Consider using a more descriptive name like PanelConstructor or directly use POMLWebviewPanel.
  const PanelClass: any = POMLWebviewPanel;

@ultmaster ultmaster merged commit 5663bfb into main Jul 29, 2025
3 checks passed
@ultmaster ultmaster deleted the codex/add-tests-for-autoaddassociatedfiles branch August 27, 2025 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants