From c3be5cf58cac88f13e6ac3e73f76f0ef6a168164 Mon Sep 17 00:00:00 2001
From: Martin Wortschack <mwortschack@gitlab.com>
Date: Wed, 5 Sep 2018 11:41:25 +0200
Subject: [PATCH] fix qa selector

---
 app/views/admin/application_settings/repository.html.haml | 2 +-
 app/views/admin/application_settings/show.html.haml       | 2 +-
 qa/qa/page/admin/settings/main.rb                         | 5 +++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/app/views/admin/application_settings/repository.html.haml b/app/views/admin/application_settings/repository.html.haml
index fcbb2449bdf..97cff3e469a 100644
--- a/app/views/admin/application_settings/repository.html.haml
+++ b/app/views/admin/application_settings/repository.html.haml
@@ -14,7 +14,7 @@
   .settings-content
     = render partial: 'repository_mirrors_form'
 
-%section.qa-repository-storage-settings.settings.as-repository-storage.no-animate#js-repository-storage-settings{ class: ('expanded' if expanded) }
+%section.settings.as-repository-storage.no-animate#js-repository-storage-settings{ class: ('expanded' if expanded) }
   .settings-header
     %h4
       = _('Repository storage')
diff --git a/app/views/admin/application_settings/show.html.haml b/app/views/admin/application_settings/show.html.haml
index a5a664592a9..44793db949c 100644
--- a/app/views/admin/application_settings/show.html.haml
+++ b/app/views/admin/application_settings/show.html.haml
@@ -47,7 +47,7 @@
   .settings-content
     = render 'signin'
 
-%section.settings.as-terms.no-animate#js-terms-settings{ class: ('expanded' if expanded) }
+%section.qa-terms-settings.settings.as-terms.no-animate#js-terms-settings{ class: ('expanded' if expanded) }
   .settings-header
     %h4
       = _('Terms of Service and Privacy Policy')
diff --git a/qa/qa/page/admin/settings/main.rb b/qa/qa/page/admin/settings/main.rb
index db3387b4557..f0b34b1f788 100644
--- a/qa/qa/page/admin/settings/main.rb
+++ b/qa/qa/page/admin/settings/main.rb
@@ -6,11 +6,12 @@ module QA
           include QA::Page::Settings::Common
 
           view 'app/views/admin/application_settings/show.html.haml' do
-            element :repository_storage_settings
+            element :terms_settings
           end
 
           def expand_repository_storage(&block)
-            expand_section(:repository_storage_settings) do
+            
+            expand_section(:terms_settings) do
               RepositoryStorage.perform(&block)
             end
           end
-- 
2.30.9