Flaky spec in ``spec/features/projects/snippets/create_snippet_spec.rb` | Projects > Snippets > Create Snippet uploads a file when dragging into textarea
Job failed in https://gitlab.com/gitlab-org/security/gitlab/-/jobs/801333909
Trace
Failures:
1) Projects > Snippets > Create Snippet uploads a file when dragging into textarea
Got 1 failure and 1 other error:
1.1) Failure/Error: expect(link).to match(%r{/#{Regexp.escape(project.full_path)}/uploads/\h{32}/banana_sample\.gif\z})
expected "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" to match /\/namespace94\/project89\/uploads\/\h{32}\/banana_sample\.gif\z/
Diff:
@@ -1,2 +1,2 @@
-/\/namespace94\/project89\/uploads\/\h{32}\/banana_sample\.gif\z/
+"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
# ./spec/features/projects/snippets/create_snippet_spec.rb:66:in `block (2 levels) in '
# ./spec/spec_helper.rb:344:in `block (3 levels) in '
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:335:in `block (2 levels) in '
# ./spec/spec_helper.rb:331:in `block (3 levels) in '
# ./spec/spec_helper.rb:331:in `block (2 levels) in '
1.2) Failure/Error: raise JSConsoleError, message
JSConsoleError:
Unexpected browser console output:
http://127.0.0.1:45315/namespace94/project89/uploads/87166eca5785cec664651b034f09d9ca/banana_sample.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
# ./spec/support/capybara.rb:172:in `block (2 levels) in '
# ./spec/spec_helper.rb:344:in `block (3 levels) in '
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:335:in `block (2 levels) in '
# ./spec/spec_helper.rb:331:in `block (3 levels) in '
# ./spec/spec_helper.rb:331:in `block (2 levels) in '
Finished in 8 minutes 6 seconds (files took 43.73 seconds to load)