Skip to content

Commit

Permalink
Try a different way
Browse files Browse the repository at this point in the history
  • Loading branch information
aguspe committed Jul 23, 2024
1 parent f53f78f commit 8561653
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 36 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/rspec_selenium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,5 @@ jobs:
- name: Install gems
run: bundle install

- name: Create Raider framework
run: bin/raider new rspec_watir -p framework:rspec automation:watir

- name: Setup Raider tests
run: cd rspec_watir && bundle install && raider utility browser_options chrome headless

- name: Run Raider tests
run: cd rspec_watir && rspec spec/
- name: Build and run system tests
run: spec spec/system/selenium_rspec_spec.rb
28 changes: 0 additions & 28 deletions .github/workflows/rspec_watir.yml

This file was deleted.

15 changes: 15 additions & 0 deletions spec/system/selenium_rspec_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require_relative '../../lib/ruby_raider'

describe 'Selenium and Rspec framework' do
before do
RubyRaider::Raider.new.invoke(:new, nil, %w[selenium_rspec -p framework:rspec automation:selenium])
end

after do
FileUtils.rm_rf('selenium_rspec')
end

it 'creates a selenium and rspec framework' do
system('cd selenium_rspec && bundle install && raider utility browser_options chrome headless && bundle exec rspec')
end
end

0 comments on commit 8561653

Please sign in to comment.