Skip to content

Commit

Permalink
DEV: Fix flaky system tests (#540)
Browse files Browse the repository at this point in the history
Why this change?

The spec is flaky and it seems to be DB transaction related where after
signing in as a user, the failure screenshot shows that the user has not
been signed in.

What does this change do?

Set `capture_log: true` which will log all ActiveRecord DB statements
execute while running the spec.
  • Loading branch information
tgxworld authored Jan 1, 2024
1 parent a5b7911 commit 1f24dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/system/assign_topic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
context "when assigns are not public" do
before { SiteSetting.assigns_public = false }

it "assigned small action post has 'private-assign' in class attribute" do
it "assigned small action post has 'private-assign' in class attribute", capture_log: true do
visit "/t/#{topic.id}"

topic_page.click_assign_topic
Expand Down

0 comments on commit 1f24dca

Please sign in to comment.