integration_spec.rb 683 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe 'Manage > Integration', type: :system do
  4. before do
  5. visit '#system/integration'
  6. end
  7. describe 'Switching on/off integrations (e.g. LDAP + Exchange) leads to unpredictable results #4181' do
  8. it 'does not switch on multiple integrations' do
  9. click_on 'GitHub'
  10. click_on 'Integrations'
  11. click_on 'GitLab'
  12. click '.js-switch'
  13. click_on 'Integrations'
  14. expect(page).to have_css('tr[data-key=IntegrationGitLab] .icon-status.ok')
  15. expect(page).to have_no_css('tr[data-key=IntegrationGitHub] .icon-status.ok')
  16. end
  17. end
  18. end