Ensure failing new_window tests are not pending
@@ -102,10 +102,10 @@ module Selenium
end
end
- describe 'new_window', only: {browser: %i[safari_preview firefox ie]} do
+ describe 'new_window' do
types = [:tab, :window] # Stores the valid type values for new_window
types.each do |type|
- it "should be able to open a new #{type}" do
+ it "should be able to open a new #{type}", only: {browser: %i[safari_preview firefox ie]} do
# Store the count of window handles before executing action
before_window_handles = driver.window_handles.length
# Open a new window
