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

Version Path
pg_rails-7.4.3 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.4.2 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.4.1 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.4.0 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.3.5 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.3.4 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.3.3 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.3.2 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.3.1 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.3.0 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.2.3 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.2.2 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.2.1 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.2.0 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.1.16 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.1.15 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.1.14 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.1.13 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.1.12 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.1.11 pg_engine/spec/system/tooltips_spec.rb