Bug: Update workspaces_spec
Summary
Local smoke tests are failing but passing in the CI pipeline so we commented out the failing tests in this MR. Here we want to update the tests in order to restore the test coverage.
Investigation context thread: https://gitlab.slack.com/archives/C03KE0L9NC9/p1742328309075359
Steps to reproduce
- Check out https://gitlab.com/gitlab-org/gitlab/-/tree/caw-ws-debugging-flaky-tests?ref_type=heads
- Run
ENABLE_SPRING=1 bin/rspec -r spec_helper --format documentation --seed 22705 ee/spec/features/remote_development/debugging_flaky_tests_2_spec.rb
or runSKIP_RUBOCOP=1 SKIP_FP=1 SKIP_FAST=1 SKIP_JEST=1 SKIP_NON_FAST=1 scripts/remote_development/run-smoke-test-suite.sh
What is the current bug behavior?
It seems to be some interaction between specs when they are run as part of the same suite. Both ee/spec/features/groups/settings/remote_development/workspaces_spec.rb
and ee/spec/features/remote_development/workspaces_spec.rb
will fail, but only if they are run AFTER ee/spec/features/remote_development/workspaces_dropdown_group_spec.rb
as part of the same suite.
None of the Capybara failure screenshots or HTML captures seem to make sense - the elements look like they are there, but Capybara times out looking for them.
What is the expected correct behavior?
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)