Commit 4814ffb6 authored by peterhegman's avatar peterhegman

Update QA selector for close token icon

parent 50dbb5ad
...@@ -66,7 +66,7 @@ module QA ...@@ -66,7 +66,7 @@ module QA
# GitLab UI Token Selector (https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-token-selector--default) # GitLab UI Token Selector (https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-token-selector--default)
# `data-qa-*` can only be added to the wrapper so custom selector used to find token close buttons and text input # `data-qa-*` can only be added to the wrapper so custom selector used to find token close buttons and text input
find_element(:ip_restriction_field).all('.gl-token-close', minimum: 0).each do |el| find_element(:ip_restriction_field).all('[data-testid="close-icon"]', minimum: 0).each do |el|
el.click el.click
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment