mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Specify modals requirement for accept_alert tests
This commit is contained in:
parent
740423c464
commit
e755161e13
2 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,7 @@ $stdout.puts `#{Selenium::WebDriver::Edge.driver_path} --version` if ENV['CI']
|
|||
|
||||
Capybara::SpecHelper.run_specs TestSessions::SeleniumEdge, "selenium", capybara_skip: skipped_tests
|
||||
|
||||
RSpec.describe "Capybara::Session with Edge" do
|
||||
RSpec.describe "Capybara::Session with Edge", capybara_skip: skipped_tests do
|
||||
include Capybara::SpecHelper
|
||||
include_examples "Capybara::Session", TestSessions::SeleniumEdge, :selenium_edge
|
||||
include_examples Capybara::RSpecMatchers, TestSessions::SeleniumEdge, :selenium_edge
|
||||
|
|
|
@ -55,7 +55,7 @@ RSpec.shared_examples "Capybara::Session" do |session, mode|
|
|||
end
|
||||
end
|
||||
|
||||
describe "#accept_alert" do
|
||||
describe "#accept_alert", requires: [:modals] do
|
||||
it "supports a blockless mode" do
|
||||
@session.visit('/with_js')
|
||||
@session.click_link('Open alert')
|
||||
|
@ -64,7 +64,6 @@ RSpec.shared_examples "Capybara::Session" do |session, mode|
|
|||
end
|
||||
|
||||
it "can be called before visiting" do
|
||||
skip "Edge driver doesn't get any interactions when alert is set" if edge?(@session)
|
||||
@session.accept_alert "Initial alert" do
|
||||
@session.visit('/initial_alert')
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue