mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 17:59:20 +00:00
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:
parent
b49fc052eb
commit
95302cc7ed
@ -161,11 +161,10 @@ describe "Topic bulk select", type: :system do
|
|||||||
it "closes topics silently" do
|
it "closes topics silently" do
|
||||||
# Watch the topic as a user
|
# Watch the topic as a user
|
||||||
sign_in(user)
|
sign_in(user)
|
||||||
visit("/latest")
|
|
||||||
topic = topics.first
|
topic = topics.first
|
||||||
visit("/t/#{topic.slug}/#{topic.id}")
|
visit("/t/#{topic.slug}/#{topic.id}")
|
||||||
topic_page.watch_topic
|
|
||||||
expect(topic_page).to have_read_post(1)
|
expect(topic_page).to have_read_post(1)
|
||||||
|
topic_page.watch_topic
|
||||||
|
|
||||||
# Bulk close the topic as an admin
|
# Bulk close the topic as an admin
|
||||||
sign_in(admin)
|
sign_in(admin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user