mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
DEV: Fix bookmark system spec flaky (#22630)
1) Bookmarking posts and topics topic level bookmarks clears all topic bookmarks from the topic bookmark button if more than one post is bookmarked Failure/Error: expect(Bookmark.where(user: current_user).count).to eq(0) expected: 0 got: 2
This commit is contained in:
@ -88,6 +88,10 @@ module PageObjects
|
||||
has_css?("#{topic_footer_button_id("bookmark")}.bookmarked", text: "Edit Bookmark")
|
||||
end
|
||||
|
||||
def has_no_bookmarks?
|
||||
has_no_css?("#{topic_footer_button_id("bookmark")}.bookmarked")
|
||||
end
|
||||
|
||||
def find_topic_footer_button(button)
|
||||
find(topic_footer_button_id(button))
|
||||
end
|
||||
|
Reference in New Issue
Block a user