Created wait_for_turbolinks and added test for refs dropdown selection with special chars

This commit is contained in:
Luke "Jared" Bennett 2016-10-28 14:38:10 +01:00
parent 5368b9f249
commit e517da3ff0
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
1 changed files with 14 additions and 2 deletions

View File

@ -22,8 +22,20 @@ feature 'Ref switcher', feature: true, js: true do
input.native.send_keys :down
input.native.send_keys :down
input.native.send_keys :enter
expect(page).to have_content 'expand-collapse-files'
end
expect(page).to have_title 'expand-collapse-files'
end
it "user selects ref with special characters" do
click_button 'master'
wait_for_ajax
page.within '.project-refs-form' do
page.fill_in 'Search branches and tags', with: "'test'"
click_link "'test'"
end
expect(page).to have_title "'test'"
end
end