<commit_before>RSpec.shared_examples "protected tags > access control > CE" do
  ProtectedTag::CreateAccessLevel.human_access_levels.each do |(access_type_id, access_type_name)|
    it "allows creating protected tags that #{access_type_name} can create" do
      visit namespace_project_protected_tags_path(project.namespace, project)

      set_protected_tag_name('master')

      within('.js-new-protected-tag') do
        allowed_to_create_button = find(".js-allowed-to-create")

        unless allowed_to_create_button.text == access_type_name
          allowed_to_create_button.click
          find('.dropdown.open .dropdown-menu', match: :first)
          within(".dropdown.open .dropdown-menu") { click_on access_type_name }
        end
      end

      click_on "Protect"

      expect(ProtectedTag.count).to eq(1)<commit_msg>Find an actual list item<commit_after>RSpec.shared_examples "protected tags > access control > CE" do
  ProtectedTag::CreateAccessLevel.human_access_levels.each do |(access_type_id, access_type_name)|
    it "allows creating protected tags that #{access_type_name} can create" do
      visit namespace_project_protected_tags_path(project.namespace, project)

      set_protected_tag_name('master')

      within('.js-new-protected-tag') do
        allowed_to_create_button = find(".js-allowed-to-create")

        unless allowed_to_create_button.text == access_type_name
          allowed_to_create_button.click
          find('.dropdown.open .dropdown-menu li', match: :first)
          within(".dropdown.open .dropdown-menu") { click_on access_type_name }
        end
      end

      click_on "Protect"

      expect(ProtectedTag.count).to eq(1)
{'fraction_non_alphanumeric': 0.09512485136741974, 'fraction_numerical': 0.0011890606420927466, 'mean_word_length': 3.675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5040499', 'n_tokens_mistral': 498, 'n_tokens_neox': 480, 'n_words': 98}