-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
I am trying to use this gem while testing Firefox through a remote selenium webdriver session, and am having problems with the Capybara step that fills in the session hash on the rack session edit screen. See what's going in the first 30 seconds of this test recording:
I was able to work around the issue by replacing the fill_in method as below in lib/rack_session_access/capybara.rb. There may be a more concise way of writing this. Happy to open a pull request if it passes the 👀test.
def set_rack_session(hash)
data = ::RackSessionAccess.encode(hash)
visit ::RackSessionAccess.edit_path
has_content?("Update rack session")
fill_in "data", :with => data
click_button "Update"
has_content?("Rack session data")
enddef set_rack_session(hash)
data = ::RackSessionAccess.encode(hash)
visit ::RackSessionAccess.edit_path
has_content?("Update rack session")
textarea = find_field('data')
textarea.native.clear
textarea.send_keys(data)
click_button "Update"
has_content?("Rack session data")
endMetadata
Metadata
Assignees
Labels
No labels