trabajo-afectivo/spec/system/settings/branding_spec.rb

23 lines
588 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
require 'rails_helper'
RSpec.describe 'Manage > Settings > Branding', type: :system do
context 'when branding product name is changed' do
before { visit '/#settings/branding' }
let(:new_name) { 'ABC App' }
it 'shows the new name in the page title' do
within :active_content do
within '#product_name' do
fill_in 'product_name', with: new_name
click_on 'Submit'
end
end
expect(page).to have_title("#{new_name} - Branding")
end
end
end