DEV: Adjust flaky bulk select spec (#26913)

For some reason this test is showing up as flaky. It has something to do
with `have_read_post`:

https://github.com/discourse/discourse/blob/main/spec/system/page_objects/components/topic_view.rb#L10

In an effort to not just increase the wait time for `page.has_css?`
let's make these little tweaks and see if it makes any sort of
difference.
This commit is contained in:
Blake Erickson 2024-05-07 14:37:47 -06:00 committed by GitHub
parent b49fc052eb
commit 95302cc7ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -161,11 +161,10 @@ describe "Topic bulk select", type: :system do
it "closes topics silently" do
# Watch the topic as a user
sign_in(user)
visit("/latest")
topic = topics.first
visit("/t/#{topic.slug}/#{topic.id}")
topic_page.watch_topic
expect(topic_page).to have_read_post(1)
topic_page.watch_topic
# Bulk close the topic as an admin
sign_in(admin)