DEV: faster browse page spec (#21814)

This commit is contained in:
Joffrey JAFFEUX
2023-05-29 23:21:10 +02:00
committed by GitHub
parent c57ae992b3
commit 5abe98afb5

View File

@ -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