Commit 48662893 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'update-e2e-test-icon-selector' into 'master'

Update QA E2E selector for close token icon

See merge request gitlab-org/gitlab!37974
parents 8c22ee17 4814ffb6
...@@ -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