1
0
Fork 0
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:
Aleksei Gusev 2018-03-25 19:51:18 +03:00
parent 740423c464
commit e755161e13
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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