Multiple Create E2E tests failures on file verification
Full description
Several tests failed with various failures but for the same reason (due to refactoring in !65514 (merged))
- qa/specs/features/browser_ui/3_create/repository/file/edit_file_via_web_spec.rb
- qa/specs/features/browser_ui/3_create/repository/file/create_file_via_web_spec.rb
- qa/specs/features/browser_ui/3_create/snippet/add_file_to_snippet_spec.rb
- qa/specs/features/browser_ui/3_create/snippet/clone_push_pull_personal_snippet_spec.rb
- qa/specs/features/browser_ui/3_create/snippet/copy_snippet_file_contents_spec.rb
- qa/specs/features/browser_ui/3_create/snippet/create_personal_snippet_spec.rb
- qa/specs/features/browser_ui/3_create/snippet/create_personal_snippet_with_multiple_files_spec.rb
- qa/specs/features/browser_ui/3_create/snippet/create_project_snippet_spec.rb
- qa/specs/features/browser_ui/browser_ui/3_create/snippet/create_project_snippet_with_multiple_files_spec.rb
- qa/specs/features/browser_ui/3_create/snippet/delete_file_from_snippet_spec.rb
- qa/specs/features/browser_ui/3_create/snippet/share_snippet_spec.rb
Example stack trace
Create Version control for personal snippets clones, pushes, and pulls a snippet over SSH, deletes via UI
Failure/Error: expect(snippet).to have_file_name(new_file)
ArgumentError:
wrong number of arguments (given 2, expected 1)
# ./qa/support/page/logging.rb:146:in `within_element'
# ./qa/page/component/blob_content.rb:78:in `within_file_by_number'
# ./qa/page/component/blob_content.rb:43:in `has_file_name?'
# ./qa/specs/features/browser_ui/3_create/snippet/clone_push_pull_personal_snippet_spec.rb:101:in `block in verify_changes_in_ui'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/specs/features/browser_ui/3_create/snippet/clone_push_pull_personal_snippet_spec.rb:100:in `verify_changes_in_ui'
# ./qa/specs/features/browser_ui/3_create/snippet/clone_push_pull_personal_snippet_spec.rb:84:in `block (3
Create Multiple file snippet behaves like copying snippet file contents copies file contents of a multi-file personal_snippet to a comment and verifies them
Failure/Error: expect(snippet).to have_comment_content(files[:content])
expected `QA::Page::Dashboard::Snippet::Show.has_comment_content?("First file content")` to be truthy, got false
First happened in https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/1815567575.
Edited by Anastasia McDonald