Fix wait condition

The `has_css?` line was always timing out false because `$(‘…’).val(url)` does not change the input’s value attribute.
This commit is contained in:
Michael Kozono 2018-02-05 12:27:35 -08:00
parent df176fe747
commit 3853f5d8ee
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ module QA
module Project
class Show < Page::Base
view 'app/views/shared/_clone_panel.html.haml' do
element :clone_holder, '.git-clone-holder'
element :clone_dropdown
element :clone_options_dropdown, '.clone-options-dropdown'
element :project_repository_location, 'text_field_tag :project_clone'
@ -31,7 +30,7 @@ module QA
end
# Ensure git clone textbox was updated to http URI
page.has_css?('.git-clone-holder input#project_clone[value*="http"]')
repository_location.include?('http')
end
end