Do you know the syntax for testing a flash message using system tests?
This is how I'm currently writing it...
test 'New User signup' do
# ...
click_button 'Create User'
assert_equal 'User was successfully created.', flash[:notice]
end
The failing test screenshot shows the flash is there but the test fails with
NoMethodError: NoMethodError: undefined method `flash' for nil:NilClass