Skip to content

Commit

Permalink
test: ✅ create new skip_before_ios_12 step
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerbenw committed Dec 5, 2024
1 parent eff2496 commit 4385086
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/browser/features/plugin_angular.feature
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 15 additions & 0 deletions test/browser/features/support/skip.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion test/browser/features/web_worker.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4385086

Please sign in to comment.