profile_spec.rb 746 B

1234567891011121314151617181920212223242526
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. require 'system/examples/core_workflow_examples'
  4. RSpec.describe 'Organization Profile', type: :system do
  5. let(:organization) { create(:organization) }
  6. describe 'Core Workflow' do
  7. include_examples 'core workflow' do
  8. let(:object_name) { 'Organization' }
  9. let(:before_it) do
  10. lambda {
  11. ensure_websocket(check_if_pinged: false) do
  12. visit "#organization/profile/#{organization.id}"
  13. within(:active_content) do
  14. page.find('.profile .js-action').click
  15. page.find('.profile li[data-type=edit]').click
  16. end
  17. end
  18. }
  19. end
  20. end
  21. end
  22. end