mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-10 01:31:45 +00:00
17 lines
436 B
Ruby
17 lines
436 B
Ruby
# frozen_string_literal: true
|
|
|
|
# We have a rubocop rule to enforce the use of the within_testid feature spec
|
|
# helper, but currently it does not work with the accessibility test matcher
|
|
# be_axe_clean. This patch allows the be_axe_clean matcher to accept
|
|
# within_testid helper.
|
|
|
|
module Axe
|
|
module Matchers
|
|
class BeAxeClean
|
|
def within_testid(testid)
|
|
within("[data-testid=\"#{testid}\"]")
|
|
end
|
|
end
|
|
end
|
|
end
|