Commit 866ff1de authored by Sofia Vistas's avatar Sofia Vistas

Use qa-selectors on container test

parent 671bfebb
...@@ -14,11 +14,11 @@ module QA ...@@ -14,11 +14,11 @@ module QA
end end
def has_registry_repository?(name) def has_registry_repository?(name)
find('a[data-testid="details-link"]', text: name) find_element(:registry_image_content, text: name)
end end
def click_on_image(name) def click_on_image(name)
find('a[data-testid="details-link"]', text: name).click click_element(:registry_image_content, text: name)
end end
def has_tag?(tag_name) def has_tag?(tag_name)
...@@ -30,7 +30,7 @@ module QA ...@@ -30,7 +30,7 @@ module QA
end end
def click_delete def click_delete
find('[data-testid="single-delete-button"]').click click_element(:tag_delete_button)
find_button('Confirm').click find_button('Confirm').click
end end
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