From 4385086a3cfacef3d53baaa20c0edc860e1a76d0 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Thu, 5 Dec 2024 13:04:16 +0000 Subject: [PATCH] test: :white_check_mark: create new `skip_before_ios_12` step --- test/browser/features/plugin_angular.feature | 2 +- test/browser/features/support/skip.rb | 15 +++++++++++++++ test/browser/features/web_worker.feature | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 test/browser/features/support/skip.rb 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