Skip to content

Commit

Permalink
Fix issue for frozen strings
Browse files Browse the repository at this point in the history
  • Loading branch information
maciesielka committed Dec 11, 2024
1 parent 733e025 commit 3a5ffff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/playwright/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ class PressKey
def initialize(key:, modifiers:)
# Shift always requires uppercase key
# See https://playwright.dev/docs/input#keys-and-shortcuts
key.upcase! if modifiers.include?(MODIFIERS[:shift])
key = key.upcase if modifiers.include?(MODIFIERS[:shift])

# puts "PressKey: key=#{key} modifiers: #{modifiers}"
if modifiers.empty?
Expand Down

0 comments on commit 3a5ffff

Please sign in to comment.