File: service_desk_issue_templates_examples.rb

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (12 lines) | stat: -rw-r--r-- 495 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

RSpec.shared_examples 'issue description templates from current project only' do
  it 'loads issue description templates from the project only' do
    within('#service-desk-template-select') do
      expect(page).to have_content(:all, 'project-issue-bar')
      expect(page).to have_content(:all, 'project-issue-foo')
      expect(page).not_to have_content(:all, 'group-issue-bar')
      expect(page).not_to have_content(:all, 'group-issue-foo')
    end
  end
end