Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maciesielka committed Oct 31, 2024
1 parent 905bd56 commit cf8f957
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/feature/example_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,22 @@
puts "#{li.with_playwright_element_handle { |handle| handle.text_content }} by Playwright"
end
end

it 'can send keys with modifier' do
Capybara.app_host = 'https://github.com'
visit '/'

page.send_keys ['s']

expect(page).to have_field('query-builder-test')
end

it 'can send keys with modifier' do
Capybara.app_host = 'https://tailwindcss.com/'
visit '/'

page.send_keys [:control, 'k']

expect(page).to have_field(id: 'docsearch-input')
end
end

0 comments on commit cf8f957

Please sign in to comment.