Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dom_helpers.rb « features « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cbbb80dde36a8e162cf9b156b2b5b02ee59be6bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Features
  module DomHelpers
    def find_by_testid(testid, **kwargs)
      page.find("[data-testid='#{testid}']", **kwargs)
    end

    def within_testid(testid, **kwargs, &block)
      page.within("[data-testid='#{testid}']", **kwargs, &block)
    end
  end
end