From 688a0e5479a81797da3c9b9da6ffd5df90f8c030 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Thu, 10 Aug 2017 16:06:27 -0700 Subject: [PATCH] Mark #attach_file specs FF 55 broke as pending --- spec/selenium_spec_marionette.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/spec/selenium_spec_marionette.rb b/spec/selenium_spec_marionette.rb index beb1932d..24533044 100644 --- a/spec/selenium_spec_marionette.rb +++ b/spec/selenium_spec_marionette.rb @@ -42,6 +42,26 @@ skipped_tests = [ ] skipped_tests << :windows if ENV['TRAVIS'] && ENV['SKIP_WINDOW'] +RSpec.configure do |c| + c.define_derived_metadata(full_description: ->(description, metadata) { + ['#attach_file with normal form should set a file path by id', + '#attach_file with normal form should set a file path by label', + '#attach_file with normal form casts to string', + '#attach_file with multipart form should set a file path by id', + '#attach_file with multipart form should set a file path by label', + '#attach_file with multipart form should send content type text/plain when uploading a text file', + '#attach_file with multipart form should send content type image/jpeg when uploading an image', + '#attach_file with multipart form should not break when uploading a file without extension', + '#attach_file with multipart form should not break when using HTML5 multiple file input', + '#attach_file with :exact option should set a file path by partial label when false', + '#attach_file with :make_visible option applies a default style change when true', + '#attach_file with :make_visible option accepts a hash of styles to be applied', + '#attach_file with :make_visible option resets the style when done'].any? { |desc| description.include?(desc) } + }) do |metadata| + metadata[:pending] = true + end +end + Capybara::SpecHelper.run_specs TestSessions::SeleniumMarionette, "selenium", capybara_skip: skipped_tests RSpec.describe "Capybara::Session with firefox" do