mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Update History.md
This commit is contained in:
parent
314ea4b149
commit
08156a9be0
4 changed files with 9 additions and 7 deletions
|
@ -6,10 +6,12 @@ Release date: unreleased
|
|||
* rack_test driver now supports reloading elements when the document changes - Issue #2157
|
||||
* Selenium driver HTML5 drag-drop emulation now emits multiple move events so drag direction
|
||||
is determinable [Erkki Eilonen, Thomas Walpole]
|
||||
|
||||
* Capybara.server_errors now defaults to [Exception] - Issue #2160 [Edgars Beigarts]
|
||||
### Fixed
|
||||
|
||||
* Workaround hover issue with FF 65 - Issue #2156
|
||||
* Workaround chromedriver issue when setting blank strings to react controlled text fields
|
||||
|
||||
|
||||
# Version 3.13.2
|
||||
Release date: 2019-01-24
|
||||
|
|
|
@ -389,7 +389,7 @@ private
|
|||
|
||||
# It has been observed that it is possible that asynchronous JS code in
|
||||
# the application under test can navigate the browser away from about:blank
|
||||
# if the timing is just right. Ensure we are still at about:blank...
|
||||
# if the timing is just right. Ensure we are still at about:blank...
|
||||
@browser.navigate.to('about:blank') unless current_url == 'about:blank'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,8 +6,8 @@ require 'rack'
|
|||
require 'yaml'
|
||||
|
||||
class TestApp < Sinatra::Base
|
||||
class TestAppError < Exception; end
|
||||
class TestAppOtherError < Exception
|
||||
class TestAppError < Exception; end # rubocop:disable Lint/InheritException
|
||||
class TestAppOtherError < Exception # rubocop:disable Lint/InheritException
|
||||
def initialize(string1, msg)
|
||||
@something = string1
|
||||
@message = msg
|
||||
|
|
|
@ -464,18 +464,18 @@ RSpec.shared_examples 'Capybara::Session' do |session, mode|
|
|||
end
|
||||
|
||||
describe 'with react' do
|
||||
context "controlled components" do
|
||||
context 'controlled components' do
|
||||
it 'can set and clear a text field' do
|
||||
session.visit 'https://reactjs.org/docs/forms.html'
|
||||
session.all(:css, 'h2#controlled-components ~ p a', text: 'Try it on CodePen')[0].click
|
||||
sleep 2 # give codepen a chance to stabilize result frame
|
||||
session.within_frame(:css, 'iframe.result-iframe') do
|
||||
session.fill_in('Name:', with: 'abc')
|
||||
session.accept_prompt "A name was submitted: abc" do
|
||||
session.accept_prompt 'A name was submitted: abc' do
|
||||
session.click_button('Submit')
|
||||
end
|
||||
session.fill_in('Name:', with: '')
|
||||
session.accept_prompt /A name was submitted: $/ do
|
||||
session.accept_prompt(/A name was submitted: $/) do
|
||||
session.click_button('Submit')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue