-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: ✅ create new
skip_before_ios_12
step
- Loading branch information
1 parent
eff2496
commit 4385086
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters