Failure in qa/specs/features/ee/geo/attachment_replication_spec.rb
Job #82603829 failed for gitlab-qa@67bbf886:
1) GitLab Geo attachment replication user uploads attachment to the primary node
Failure/Error: show.comment('See attached banana for scale', attachment: file_to_attach)
NoMethodError:
undefined method `basename' for QA::Page::File:Module
# ./qa/page/component/dropzone.rb:18:in `attach_file'
# ./qa/page/project/issue/show.rb:31:in `comment'
# ./qa/specs/features/ee/geo/attachment_replication_spec.rb:20:in `block (4 levels) in <module:QA>'
# ./qa/scenario/actable.rb:14:in `perform'
# ./qa/specs/features/ee/geo/attachment_replication_spec.rb:19:in `block (3 levels) in <module:QA>'
# ./qa/runtime/browser.rb:115:in `perform'
# ./qa/runtime/browser.rb:27:in `visit'
# ./qa/runtime/browser.rb:31:in `visit'
# ./qa/specs/features/ee/geo/attachment_replication_spec.rb:6:in `block (2 levels) in <module:QA>'
# ./qa/specs/runner.rb:22:in `perform'
# ./qa/scenario/template.rb:7:in `block in perform'
# ./qa/scenario/template.rb:5:in `tap'
# ./qa/scenario/template.rb:5:in `perform'
# ./qa/ee/scenario/test/geo.rb:33:in `perform'
# ./qa/scenario/template.rb:7:in `block in perform'
# ./qa/scenario/template.rb:5:in `tap'
# ./qa/scenario/template.rb:5:in `perform'
# ./qa/scenario/bootable.rb:26:in `launch!'
We only need to replace File
with ::File
in QA::Page::Component::Dropzone
.