Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/specs/features/browser_ui/3_create/repository/branch_with_unusual_name_spec.rb')
-rw-r--r--qa/qa/specs/features/browser_ui/3_create/repository/branch_with_unusual_name_spec.rb15
1 files changed, 14 insertions, 1 deletions
diff --git a/qa/qa/specs/features/browser_ui/3_create/repository/branch_with_unusual_name_spec.rb b/qa/qa/specs/features/browser_ui/3_create/repository/branch_with_unusual_name_spec.rb
index 0503b1b3761..b98bb8592d3 100644
--- a/qa/qa/specs/features/browser_ui/3_create/repository/branch_with_unusual_name_spec.rb
+++ b/qa/qa/specs/features/browser_ui/3_create/repository/branch_with_unusual_name_spec.rb
@@ -2,7 +2,10 @@
module QA
RSpec.describe 'Create' do
- describe 'Branch with unusual name', product_group: :source_code do
+ describe 'Branch with unusual name', product_group: :source_code, quarantine: {
+ issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/364565',
+ type: :bug
+ } do
let(:branch_name) { 'unUsually/named#br--anch' }
let(:project) do
Resource::Project.fabricate_via_api! do |resource|
@@ -29,6 +32,16 @@ module QA
Page::Project::Show.perform do |show|
show.switch_to_branch(branch_name)
+
+ # It takes a few seconds for console errors to appear
+ sleep 3
+
+ errors = page.driver.browser.logs.get(:browser)
+ .select { |e| e.level == "SEVERE" }
+ .to_a
+
+ raise("Console error(s):\n#{errors.join("\n\n")}") if errors.present?
+
show.click_file('test-folder')
expect(show).to have_file('test-file.md')