Skip to content

Fix pre-existing AdminTopicFlowsTest failure #67

@AndreRobitaille

Description

@AndreRobitaille

Problem

test/integration/admin_topic_flows_test.rb:27 (test_can_view_topics_list_with_sorting) has been failing before the TopicBriefing work. It expects exactly 4 <tr> elements but finds 7.

Reproduction

bin/rails test test/integration/admin_topic_flows_test.rb:27
Failure:
AdminTopicFlowsTest#test_can_view_topics_list_with_sorting [test/integration/admin_topic_flows_test.rb:30]:
Expected exactly 4 elements matching "tr", found 7.
Expected: 4
  Actual: 7

Likely cause

The test's fixture/factory setup creates 3 topics (expecting 3 data rows + 1 header = 4 <tr>), but additional topics exist from other fixtures or the test setup, producing 7 rows total. The assertion needs to account for the actual fixture count or scope more precisely.

Files

  • test/integration/admin_topic_flows_test.rb:27-30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions