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: ac6523f336041fef95c6661c3e0528c3b2b67067 (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)
      page.find("[data-testid='#{testid}']")
    end

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