For some reason if I place same block of code in before hook, screenshot is not taken, even though exact same code in 'it' block triggers capybara to take screenshot. Looks like this:
screenshot is not taken:
describe 'title', type: :feature do
include_context 'User logged in'
describe 'When user logged in' do
before(:all) { do_something_causing_fail }
it 'Verify something' do
expect(something).to eq something
end
end
end
screenshot is taken:
describe 'title', type: :feature do
include_context 'User logged in'
describe 'When user logged in' do
before(:all) { }
it 'Verify something' do
do_something_causing_fail
expect(something).to eq something
end
end
end
Anybody had same issue before? Any help would be appreciated!
For some reason if I place same block of code in before hook, screenshot is not taken, even though exact same code in 'it' block triggers capybara to take screenshot. Looks like this:
screenshot is not taken:
screenshot is taken:
Anybody had same issue before? Any help would be appreciated!