Commit 5451c97f authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Wait for page load so we're not getting stale elements

while producing products. Basically an attempt to fix:
https://gitlab.com/gitlab-org/gitlab-qa/-/jobs/65016456

Selenium::WebDriver::Error::StaleElementReferenceError:
  stale element reference: element is not attached to the page document

in:

``` ruby
product :name do
  Page::Project::Settings::Repository.act do
    expand_protected_branches(&:last_branch_name)
  end
end
```
parent 710e153fb3ee
......@@ -76,6 +76,11 @@ def fabricate!
end
page.protect_branch
# Wait for page load, which resets the expanded sections
page.wait(reload: false) do
!page.has_content?('Collapse')
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