You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: selector_usage.rb
    path of file: ./repos/gitlabhq/rubocop/cop/qa
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative '../../qa_helpers'
require_relative '../../code_reuse_helpers'

module RuboCop
  module Cop
    module QA
      # This cop checks for the usage of
    
        def on_str(node)
          return if in_qa_file?(node)
          return unless in_spec?(node)

          add_offense(node, message: MESSAGE % node.value) if SELECTORS.match?(node.value)
        rescue StandardError
          # catch all errors and ignore them.
          # without this catch-all rescue, rubocop will fail
          # because of non-UTF-8 characters in some Strings
        end