0
0
Fork 0

Autofix Rubocop RSpec/Capybara/FeatureMethods (#23708)

This commit is contained in:
Nick Schonning 2023-02-18 16:59:00 -05:00 committed by GitHub
parent 08289a38fa
commit c0d7c855b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 26 deletions

View file

@ -2,25 +2,25 @@
require 'rails_helper'
feature 'Profile' do
describe 'Profile' do
include ProfileStories
given(:local_domain) { ENV['LOCAL_DOMAIN'] }
subject { page }
background do
let(:local_domain) { ENV['LOCAL_DOMAIN'] }
before do
as_a_logged_in_user
with_alice_as_local_user
end
subject { page }
scenario 'I can view Annes public account' do
it 'I can view Annes public account' do
visit account_path('alice')
is_expected.to have_title("alice (@alice@#{local_domain})")
end
scenario 'I can change my account' do
it 'I can change my account' do
visit settings_profile_path
fill_in 'Display name', with: 'Bob'