Skip to content

[Remove Vuetify from Studio] Convert content library filter bar unit tests to Vue Testing Library #5649

@MisRob

Description

@MisRob

🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:

  • Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
  • Confirm that you’ve read the guidelines in your comment.

Overview

Complexity: Low

Context

The test suite channelList/views/Channel/__tests__/catalogFilterBar.spec.js currently relies heavily on internal implementation details and uses Vue Test Utils in a way that couples tests tightly to component internals. This creates several issues:

  • Brittle and unreliable tests (break when implementation changes even if behavior remains correct, or incorrectly pass while actual user interactions fail)
  • Maintenance burden (refactoring component's internal code requires updating tests)

Related page:

The Change

Refactor channelList/views/Channel/__tests__/catalogFilterBar.spec.js test suite to use Vue Testing Library (VTL) and write tests in a way that reflects how a user interacts with the application.

Do not refactor any other areas of the codebase.

Hot to Get There

  • Login as a@a.com with password a
  • Go to Channels > Content library
  • Use filters

Value Add

Prepares the test suite for easier updates during the upcoming refactoring to remove Vuetify from this page.

Out of Scope

Do not refactor any other areas of the codebase.

Acceptance Criteria

References

Sub-issue of #5060

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions