Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Spec failure in spec/features/protected_tags_spec.rb
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=3951)
</details>
<!--IssueSummary end-->
In https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/39446774:
```
Failures:
1) Protected Tags access control with ref permissions for users enabled prepends selected users that can create
Failure/Error: expect(all('.dropdown-header')[index]).to have_content(header)
expected to find text "Users" in ""
Shared Example Group: "protected tags > access control > EE" called from ./spec/features/protected_tags_spec.rb:114
# ./spec/ee/support/protected_tags/access_control_spec.rb:95:in `block (4 levels) in <top (required)>'
# ./spec/ee/support/protected_tags/access_control_spec.rb:94:in `each'
# ./spec/ee/support/protected_tags/access_control_spec.rb:94:in `each_with_index'
# ./spec/ee/support/protected_tags/access_control_spec.rb:94:in `block (3 levels) in <top (required)>'
# ./spec/ee/support/protected_tags/access_control_spec.rb:88:in `block (2 levels) in <top (required)>'
Finished in 37 minutes 55 seconds (files took 50.82 seconds to load)
1297 examples, 1 failure, 1 pending
Failed examples:
rspec './spec/features/protected_tags_spec.rb[1:3:1:4]' # Protected Tags access control with ref permissions for users enabled prepends selected users that can create
````
Now it's a permanent failure in https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/39906451:
```
Failures:
1) Protected Tags access control with ref permissions for users enabled prepends selected users that can create
Failure/Error: expect(all('.dropdown-header')[index]).to have_content(header)
Selenium::WebDriver::Error::StaleElementReferenceError:
stale element reference: element is not attached to the page document
(Session info: headless chrome=62.0.3202.89)
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.13.5-coreos-r2 x86_64)
Shared Example Group: "protected tags > access control > EE" called from ./spec/features/protected_tags_spec.rb:114
# ./spec/ee/support/protected_tags/access_control_spec.rb:95:in `block (4 levels) in <top (required)>'
# ./spec/ee/support/protected_tags/access_control_spec.rb:94:in `each'
# ./spec/ee/support/protected_tags/access_control_spec.rb:94:in `each_with_index'
# ./spec/ee/support/protected_tags/access_control_spec.rb:94:in `block (3 levels) in <top (required)>'
# ./spec/ee/support/protected_tags/access_control_spec.rb:88:in `block (2 levels) in <top (required)>'
Finished in 17 minutes 0 seconds (files took 24.41 seconds to load)
1009 examples, 1 failure
Failed examples:
rspec './spec/features/protected_tags_spec.rb[1:3:1:4]' # Protected Tags access control with ref permissions for users enabled prepends selected users that can create
```
### Stack trace
```
1) Protected Tags access control with ref permissions for users enabled prepends selected users that can create
Failure/Error: expect(all('.dropdown-header')[index]).to have_content(header)
Selenium::WebDriver::Error::StaleElementReferenceError:
stale element reference: element is not attached to the page document
(Session info: headless chrome=62.0.3202.89)
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.13.5-coreos-r2 x86_64)
Shared Example Group: "protected tags > access control > EE" called from ./spec/features/protected_tags_spec.rb:114
# ./spec/ee/support/protected_tags/access_control_spec.rb:95:in `block (4 levels) in <top (required)>'
# ./spec/ee/support/protected_tags/access_control_spec.rb:94:in `each'
# ./spec/ee/support/protected_tags/access_control_spec.rb:94:in `each_with_index'
# ./spec/ee/support/protected_tags/access_control_spec.rb:94:in `block (3 levels) in <top (required)>'
# ./spec/ee/support/protected_tags/access_control_spec.rb:88:in `block (2 levels) in <top (required)>'
Finished in 17 minutes 0 seconds (files took 24.41 seconds to load)
1009 examples, 1 failure
Failed examples:
rspec './spec/features/protected_tags_spec.rb[1:3:1:4]' # Protected Tags access control with ref permissions for users enabled prepends selected users that can create
```
issue