mirror of
https://github.com/discourse/discourse.git
synced 2026-08-03 01:49:44 -05:00
DEV: faster browse page spec (#21814)
This commit is contained in:
@@ -8,13 +8,13 @@ module PageObjects
|
||||
end
|
||||
|
||||
def has_finished_loading?
|
||||
component.has_css?(".loading-container .spinner")
|
||||
component.has_css?(".loading-container .spinner", wait: 0)
|
||||
component.has_no_css?(".loading-container .spinner")
|
||||
end
|
||||
|
||||
def search(query)
|
||||
component.find(".dc-filter-input").fill_in(with: query)
|
||||
component.has_css?(".loading-container .spinner")
|
||||
component.has_css?(".loading-container .spinner", wait: 0)
|
||||
component.has_no_css?(".loading-container .spinner")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user