Skip to content

Fix verify end-to-end test

What does this MR do and why?

Fix a failing end-to-end test by further specifying the base-dropdown-toggle element.

On this HTML artifact page, there exists two elements with the data-testid attribute with the value base-dropdown-toggle.

These duplicate elements resulted in the failure ...

Capybara::Ambiguous:
       Ambiguous match, found 2 elements matching visible css "[data-testid=\"base-dropdown-toggle\"]" within #<Capybara::Node::Element tag="div" path="/HTML/BODY[1]/DIV[1]/DIV[2]/DIV[3]/MAIN[1]/DIV[2]/DIV[3]/DIV[3]/DIV[2]/DIV[1]/SECTION[1]/DIV[1]/DIV[3]/DIV[1]">

https://gitlab.com/gitlab-org/gitlab/-/jobs/6086616311

This MR adds a clarifying artifacts-dropdown data-testid to the desired element's ancestor to help specificity.

Edited by Dan Davison

Merge request reports