tags_spec.rb 644 B

1234567891011121314151617181920212223242526272829
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe 'Manage > Tags', type: :system do
  4. before do
  5. visit 'manage/tags'
  6. end
  7. let(:tag_name) { 'New Tag 123' }
  8. # https://github.com/zammad/zammad/issues/4277
  9. it 'removes a tag after adding a tag without double modal' do
  10. within :active_content do
  11. find('input[name="name"]').fill_in with: tag_name
  12. click '.js-submit'
  13. end
  14. within '.js-Table tr', text: tag_name do
  15. click '.btn--secondary'
  16. end
  17. in_modal do
  18. click_on 'Yes'
  19. end
  20. expect(page).to have_no_css('.modal')
  21. end
  22. end