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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -8,13 +8,13 @@ module PageObjects
end end
def has_finished_loading? 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") component.has_no_css?(".loading-container .spinner")
end end
def search(query) def search(query)
component.find(".dc-filter-input").fill_in(with: 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") component.has_no_css?(".loading-container .spinner")
end end