DEV: Fix flaky system tests (#540)

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.
This commit is contained in:
Alan Guo Xiang Tan 2024-01-02 07:37:44 +08:00 committed by GitHub
parent a5b7911cb9
commit 1f24dca1cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ describe "Assign | Assigning topics", type: :system, js: true do
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