Capybara Element Not Found Create Web IDE file templates user adds Dockerfile via file template Python
Summary
rspec './qa/specs/features/browser_ui/3_create/web_ide/add_file_template_spec.rb[1:1:3]' # Create Web IDE file templates user adds Dockerfile via file template Python the UI shows The name Dockerfile is already taken in this directory
Happened in https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/637017247
This seems to happen since the spec is retried after creating the project from the template the first time.
Stack trace
2) Create Web IDE file templates user adds Dockerfile via file template Python
Failure/Error: ide.create_new_file_from_template template[:file_name], template[:name]
Capybara::ElementNotFound:
Unable to find css "[data-qa-selector=\"file_templates_bar\"],.qa-file-templates-bar"
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/finders.rb:296:in `block in synced_resolve'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/base.rb:83:in `synchronize'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/finders.rb:287:in `synced_resolve'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/finders.rb:52:in `find'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/session.rb:749:in `block (2 levels) in <class:Session>'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/session.rb:340:in `within'
# ./qa/page/base.rb:271:in `within_element'
# ./qa/support/page/logging.rb:143:in `within_element'
# ./qa/page/project/web_ide/edit.rb:72:in `block in create_new_file_from_template'
# ./qa/page/base.rb:49:in `block in wait_until'
# ./qa/support/waiter.rb:31:in `block in wait_until'
# ./qa/support/repeater.rb:22:in `repeat_until'
# ./qa/support/waiter.rb:23:in `wait_until'
# ./qa/page/base.rb:48:in `wait_until'
# ./qa/page/project/web_ide/edit.rb:71:in `create_new_file_from_template'
# ./qa/specs/features/browser_ui/3_create/web_ide/add_file_template_spec.rb:53:in `block (5 levels) in <module:QA>'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/specs/features/browser_ui/3_create/web_ide/add_file_template_spec.rb:52:in `block (4 levels) in <module:QA>'
Screenshot / HTML page
Possible fixes
Edited by Kyle Wiebers
