This commit is contained in:
Oleksandr Turchyn
2024-09-18 19:47:47 +03:00
committed by Oleksandr Turchyn
parent 3c60fb4ee6
commit e9d728fa4a
132 changed files with 1121 additions and 600 deletions
+4 -4
View File
@@ -14,16 +14,16 @@ RSpec.describe 'Account Settings' do
it 'shows pre-filled account settings page' do
expect(page).to have_content('Account')
expect(page).to have_field('Company Name', with: account.name)
expect(page).to have_field('Timezone', with: account.timezone)
expect(page).to have_field('Company name', with: account.name)
expect(page).to have_field('Time zone', with: account.timezone)
expect(page).to have_field('Time format', with: account.locale)
expect(page).to have_field('App URL', with: encrypted_config.value)
end
it 'updates the account settings' do
fill_in 'Company Name', with: 'New Company Name'
fill_in 'Company name', with: 'New Company Name'
fill_in 'App URL', with: 'https://example.com'
select '(GMT+01:00) Berlin', from: 'Timezone'
select '(GMT+01:00) Berlin', from: 'Time zone'
select 'Spanish (Spain)', from: 'Time format'
click_button 'Update'
+1 -1
View File
@@ -72,7 +72,7 @@ RSpec.describe 'Team Settings' do
it 'removes a user' do
expect do
accept_confirm('Are you sure?') do
first(:button, 'Delete').click
first(:button, 'Remove').click
end
end.to change { User.active.count }.by(-1)