Sha256: 00f8165a680eb91a8baf539136f9dc4027f621dc921689b319f59a6e0f444c9f
Contents?: true
Size: 917 Bytes
Versions: 46
Compression:
Stored size: 917 Bytes
Contents
require 'rails_helper' describe 'Tooltips' do context 'en desktop' do before do 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
46 entries across 46 versions & 1 rubygems