-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
When I tried this Gem with the example spec below, Apprition driver passes only 8/10 where capybara selenium driver passes 10/10.
RSpec.describe 'github search' do
around do |example|
prev_host = Capybara.app_host
Capybara.app_host = 'https://github.com'
begin
example.run
ensure
Capybara.app_host = prev_host
end
end
10.times { # repeat and repeat and repeat...!!
it 'should search repository' do
visit '/'
fill_in('q', with: 'selenium')
find('a[data-item-type="global_search"]').click
output = all('.repo-list-item').map do |li|
li.all('a').first.text
end
puts output
expect(output).to include(match(/selenium/i))
end
}
endFailures:
1) github search should search repository
Failure/Error: find('a[data-item-type="global_search"]').click
Capybara::ElementNotFound:
Unable to find visible css "a[data-item-type=\"global_search\"]"
# ./spec/feature/github_search_spec.rb:44:in `block (2 levels) in <top (required)>'
# ./spec/feature/github_search_spec.rb:8:in `block (2 levels) in <top (required)>'
2) github search should search repository
Failure/Error: find('a[data-item-type="global_search"]').click
Capybara::ElementNotFound:
Unable to find visible css "a[data-item-type=\"global_search\"]"
# ./spec/feature/github_search_spec.rb:70:in `block (2 levels) in <top (required)>'
# ./spec/feature/github_search_spec.rb:8:in `block (2 levels) in <top (required)>'
The link is shown only during the text field is focused.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
