require_relative '../helper/spec_helper'

describe 'Sauce' do
  it 'successfully loads angularjs.org once' do
    angular_page.goto
    expect_true angular_page.download_button.include?('Download')
  end

  it 'successfully loads angularjs.org twice' do
    angular_page.goto
    expect_true angular_page.download_button.include?('Download')
  end
end

require_relative '../helper/spec_helper'

describe 'Sauce' do
  it 'successfully loads angularjs.org once' do
    angular_page.goto
    expect_true angular_page.download_button.include?('Download')
  end

  it 'successfully loads angularjs.org twice' do
    raise 'test failed by env FAIL_TEST' if ENV['FAIL_TEST']
    angular_page.goto
    expect_true angular_page.download_button.include?('Download')
  end
end

Allow optionally failing test to demo error reporting
Allow optionally failing test to demo error reporting
