trabajo-afectivo/spec/system/settings/branding_spec.rb
2022-01-01 14:38:12 +01:00

22 lines
588 B
Ruby

# 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