Example error fix

This commit is contained in:
Jack Walker
2020-04-22 15:10:31 +10:00
parent 4467a9e9d2
commit 97fd3f1dcb
32 changed files with 352 additions and 49 deletions

View File

@@ -71,7 +71,7 @@ RSpec.configure do |config|
# BrowserStack
config.around(:run_on_browserstack => true) do |test|
@caps = CONFIG['common_caps'].merge(CONFIG['browser_caps'][TASK_ID])
@caps["name"] = ENV['name'] || example.metadata[:name] || example.metadata[:file_path].split('/').last.split('.').first
@caps["name"] = ENV['name'] || test.metadata[:name] || test.metadata[:file_path].split('/').last.split('.').first
enable_local = @caps["browserstack.local"] && @caps["browserstack.local"].to_s == "true"
# Code to start browserstack local before start of test