diff --git a/test/browser/features/plugin_angular.feature b/test/browser/features/plugin_angular.feature index 8c1b686b6..d470112c9 100644 --- a/test/browser/features/plugin_angular.feature +++ b/test/browser/features/plugin_angular.feature @@ -1,7 +1,7 @@ @plugin_angular # Skipped on older Safari versions not supported by Angular 10 - Angular renders the fixture component twice, causing duplicate events to be reported -@skip_safari_10 @skip_safari_11 @skip_safari_12 +@skip_safari_10 @skip_before_ios_12 Feature: Angular support Scenario: basic error handler usage diff --git a/test/browser/features/support/skip.rb b/test/browser/features/support/skip.rb new file mode 100644 index 000000000..b8555afdf --- /dev/null +++ b/test/browser/features/support/skip.rb @@ -0,0 +1,15 @@ +(1..50).each do |version| + Before("@skip_ios_#{version}") do + if Maze.config.browser == "ios_#{version}" + skip_this_scenario("Skipping scenario on iOS #{current_browser}") + end + end + + Before("@skip_before_ios_#{version}") do + browser_version = Maze.config.browser.sub("ios_", "").to_i + + if browser_version < version + skip_this_scenario("Skipping scenario on iOS #{browser_version}") + end + end +end diff --git a/test/browser/features/web_worker.feature b/test/browser/features/web_worker.feature index 5e0d3de71..6c48ee0f0 100644 --- a/test/browser/features/web_worker.feature +++ b/test/browser/features/web_worker.feature @@ -2,7 +2,7 @@ @skip_ie_8 @skip_ie_9 # browsers that currently throw errors in our test fixtures -@skip_ie_10 @skip_ie_11 @skip_chrome_43 @skip_edge_17 @skip_safari_10 @skip_safari_11 @skip_safari_12 +@skip_ie_10 @skip_ie_11 @skip_chrome_43 @skip_edge_17 @skip_safari_10 @skip_before_ios_12 Feature: worker notifier