mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
DEV: faster browse page spec (#21814)
This commit is contained in:
parent
c57ae992b3
commit
5abe98afb5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user