Skip to content

Write test for Backlog task status dropdown feature #1396

@coderabbitai

Description

@coderabbitai

Context

A test was skipped in PR #1391 as part of a hotfix to show task status dropdown for backlog task status.

Skipped test:

it.skip('should show text Backlog when a task with Backlog status is passed down.', () => {
    const oldProgress = 100;
    const oldStatus = BACKEND_TASK_STATUS.BACKLOG;

    render(
        <TaskStatusDropdown
            oldProgress={oldProgress}
            oldStatus={oldStatus}
            onChange={onChange}
        />
    );
    const element = screen.getByTestId('task-status-backlog');
    expect(element).toHaveTextContent('Backlog');
});

File: __tests__/Unit/Components/Tasks/TaskStatusDropdown.test.tsx

Task

  • Unskip and fix the test for backlog status display
  • Ensure the test properly validates the backlog status behavior in TaskStatusDropdown component
  • Verify all related test cases are passing

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions