mirror of https://github.com/mastodon/mastodon
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
656 B
Ruby
34 lines
656 B
Ruby
5 years ago
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'rails_helper'
|
||
|
|
||
2 years ago
|
describe 'Profile' do
|
||
5 years ago
|
include ProfileStories
|
||
|
|
||
2 years ago
|
subject { page }
|
||
|
|
||
|
let(:local_domain) { ENV['LOCAL_DOMAIN'] }
|
||
5 years ago
|
|
||
2 years ago
|
before do
|
||
5 years ago
|
as_a_logged_in_user
|
||
|
with_alice_as_local_user
|
||
|
end
|
||
|
|
||
2 years ago
|
it 'I can view Annes public account' do
|
||
5 years ago
|
visit account_path('alice')
|
||
|
|
||
2 years ago
|
expect(subject).to have_title("alice (@alice@#{local_domain})")
|
||
5 years ago
|
end
|
||
|
|
||
2 years ago
|
it 'I can change my account' do
|
||
5 years ago
|
visit settings_profile_path
|
||
2 years ago
|
|
||
5 years ago
|
fill_in 'Display name', with: 'Bob'
|
||
|
fill_in 'Bio', with: 'Bob is silent'
|
||
|
|
||
2 years ago
|
first('button[type=submit]').click
|
||
5 years ago
|
|
||
2 years ago
|
expect(subject).to have_content 'Changes successfully saved!'
|
||
5 years ago
|
end
|
||
|
end
|