branding_spec.rb 588 B

12345678910111213141516171819202122
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe 'Manage > Settings > Branding', type: :system do
  4. context 'when branding product name is changed' do
  5. before { visit '/#settings/branding' }
  6. let(:new_name) { 'ABC App' }
  7. it 'shows the new name in the page title' do
  8. within :active_content do
  9. within '#product_name' do
  10. fill_in 'product_name', with: new_name
  11. click_on 'Submit'
  12. end
  13. end
  14. expect(page).to have_title("#{new_name} - Branding")
  15. end
  16. end
  17. end