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

Version Path
pg_rails-7.6.23 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.22 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.22.pre.3 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.22.pre.2 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.22.pre.1 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.11 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.10 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.9 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.8 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.7 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.6 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.5 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.4 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.3 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.2 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.21.pre.1 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.20 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.19 pg_engine/spec/system/tooltips_spec.rb
pg_rails-7.6.18 pg_engine/spec/system/tooltips_spec.rb