From 88a2f3664f7c212b02a643f44b6e69f60f675135 Mon Sep 17 00:00:00 2001 From: aguspe Date: Sun, 30 Jun 2024 10:11:34 +0200 Subject: [PATCH] Remove system tests and update rspec watir flow --- .github/workflows/rspec_watir.yml | 2 +- spec/system/ruby_raider_spec.rb | 31 ------------------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 spec/system/ruby_raider_spec.rb diff --git a/.github/workflows/rspec_watir.yml b/.github/workflows/rspec_watir.yml index 4f307b7..622cb2e 100644 --- a/.github/workflows/rspec_watir.yml +++ b/.github/workflows/rspec_watir.yml @@ -34,7 +34,7 @@ jobs: run: bin/raider new rspec_watir -p framework:rspec automation:watir visual:false axe:true - name: Run Raider tests - run: cd rspec_selenium && bundle install && raider utility browser_options chrome headless && rspec spec/ + run: cd rspec_watir && bundle install && raider utility browser_options chrome headless && rspec spec/ - name: BrowserStackLocal Stop uses: browserstack/github-actions/setup-local@master diff --git a/spec/system/ruby_raider_spec.rb b/spec/system/ruby_raider_spec.rb deleted file mode 100644 index 42a4f72..0000000 --- a/spec/system/ruby_raider_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'fileutils' -require_relative '../spec_helper' -require_relative '../../lib/ruby_raider' - -describe RubyRaider do - shared_examples 'execute web frameworks' do |name| - it 'runs the tests' do - if ENV['CI'] - Dir.chdir(name) { system('gem install bundler && bundle install && raider u raid') } - else - Bundler.with_unbundled_env { Dir.chdir(name) { system('bundle exec raider u raid') } } - end - end - end - - context 'with a Rspec and Selenium project' do - include_examples 'execute web frameworks', "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES[2]}" - end - - context 'with a Rspec and Watir project' do - include_examples 'execute web frameworks', "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES[3]}" - end - - context 'with a Cucumber and Selenium project' do - include_examples 'execute web frameworks', "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES[2]}" - end - - context 'with a Cucumber and Watir project' do - include_examples 'execute web frameworks', "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES[3]}" - end -end