Skip to content

Commit

Permalink
test: platforms do not throw
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmries committed Apr 5, 2024
1 parent f975311 commit 14a69be
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions packages/axe-core-api/e2e/selenium/spec/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,38 @@ def get_check_by_id(check_list, id)
end
end

describe "does not throw when given" do
it "chromedriver" do
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
driver = Selenium::WebDriver.for :chrome, options: options
expect do
driver.get fixture "/index.html"
driver.get "about:blank"
end.not_to raise_error
end

it "geckodriver" do
options = Selenium::WebDriver::Firefox::Options.new
options.add_argument('--headless')
driver = Selenium::WebDriver.for :firefox, options: options
expect do
driver.get fixture "/index.html"
driver.get "about:blank"
end.not_to raise_error
end

if Object::RUBY_PLATFORM =~ /darwin/i
it "safaridriver" do
driver = Selenium::WebDriver.for :safari
expect do
driver.get fixture "/index.html"
driver.get "about:blank"
end.not_to raise_error
end
end
end

describe "run vs runPartial" do
it "should return the same results" do
Expand Down

0 comments on commit 14a69be

Please sign in to comment.