Sha256: 10dc155ee421cd65460deb155ce6ee867754ee6872e5abcaa15e924ec1d901e5
Contents?: true
Size: 932 Bytes
Versions: 47
Compression:
Stored size: 932 Bytes
Contents
require 'rails_helper' describe 'Tooltips' do context 'en desktop' do before do # byebug driven_by :selenium_chrome_headless # Capybara.current_driver = :selenium_chrome end it 'se activan con hover' do visit '/rails/view_components/alert_component/tooltips' expect(page).to have_no_text('tooltip') find_by_id('tooltip').hover expect(page).to have_text('tooltip') end end context 'en mobile' do before do # driven_by :selenium_chrome_headless_iphone driven_by :selenium_chrome_iphone # driven_by :selenium_chrome_headless_notebook # Capybara.current_driver = :selenium_chrome_headless_iphone end it 'se activan con click' do visit '/rails/view_components/alert_component/tooltips' expect(page).to have_no_text('tooltip') find_by_id('tooltip').click expect(page).to have_text('tooltip') end end end
Version data entries
47 entries across 47 versions & 1 rubygems