mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
tests rquire modals support
This commit is contained in:
parent
b7a8e11718
commit
a02e0c94f0
1 changed files with 2 additions and 2 deletions
|
@ -39,14 +39,14 @@ Capybara::SpecHelper.spec '#reset_session!' do
|
|||
expect(@session).to have_no_selector :xpath, "/html/body/*", wait: false
|
||||
end
|
||||
|
||||
it "handles modals during unload" do
|
||||
it "handles modals during unload", requires: [:modals] do
|
||||
@session.visit('/with_unload_alert')
|
||||
expect(@session).to have_selector(:css, 'div')
|
||||
expect { @session.reset_session! }.not_to raise_error
|
||||
expect(@session).to have_no_selector :xpath, "/html/body/*", wait: false
|
||||
end
|
||||
|
||||
it "handles already open modals" do
|
||||
it "handles already open modals", requires: [:modals] do
|
||||
@session.visit('/with_unload_alert')
|
||||
@session.click_link('Go away')
|
||||
expect { @session.reset_session! }.not_to raise_error
|
||||
|
|
Loading…
Add table
Reference in a new issue