Skip to content

Commit

Permalink
Merge pull request #963 from bugsnag/correct-android-11-skipping
Browse files Browse the repository at this point in the history
Account for Android 11 when skipping/running scenarios
  • Loading branch information
twometresteve authored Oct 19, 2020
2 parents 35f441e + 93a0cc2 commit c0326a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
end

Before('@skip_above_android_8') do |scenario|
skip_this_scenario("Skipping scenario") if %w[ANDROID_9_0 ANDROID_10_0].include? bs_device
skip_this_scenario("Skipping scenario") if %w[ANDROID_9_0 ANDROID_10_0 ANDROID_11_0].include? bs_device
end

Before('@skip_above_android_7') do |scenario|
skip_this_scenario("Skipping scenario") if %w[ANDROID_8_0 ANDROID_8_1 ANDROID_9_0 ANDROID_10_0].include? bs_device
skip_this_scenario("Skipping scenario") if %w[ANDROID_8_0 ANDROID_8_1 ANDROID_9_0 ANDROID_10_0 ANDROID_11_0].include? bs_device
end

Before('@skip_below_android_9') do |scenario|
skip_this_scenario("Skipping scenario") unless %w[ANDROID_9_0 ANDROID_10_0].include? bs_device
skip_this_scenario("Skipping scenario") unless %w[ANDROID_9_0 ANDROID_10_0 ANDROID_11_0].include? bs_device
end

Before('@skip_below_android_8') do |scenario|
skip_this_scenario("Skipping scenario") unless %w[ANDROID_8_0 ANDROID_8_1 ANDROID_9_0 ANDROID_10_0].include? bs_device
skip_this_scenario("Skipping scenario") unless %w[ANDROID_8_0 ANDROID_8_1 ANDROID_9_0 ANDROID_10_0 ANDROID_11_0].include? bs_device
end

Before('@skip_android_8_1') do |scenario|
Expand Down

0 comments on commit c0326a6

Please sign in to comment.