diff options
author | Sean McGivern <sean@gitlab.com> | 2019-04-15 16:04:40 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-04-16 16:33:06 +0300 |
commit | c6456830b5f9a147807b9de32c437eb6dda4c53b (patch) | |
tree | 7bb4f9f9c41f3055e9a0bcdb8732dc7fb327b146 /app/views/admin | |
parent | ca8c35285eedb0ae6e9a52fe377ec0b3ae9ada1a (diff) |
Add QA tests for the performance bar
These are very high-level. Currently, they test:
1. That the performance bar appears.
2. That it has detailed metrics for Postgres and Gitaly.
3. That AJAX requests are included in the request selector.
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/application_settings/_performance_bar.html.haml | 4 | ||||
-rw-r--r-- | app/views/admin/application_settings/metrics_and_profiling.html.haml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/admin/application_settings/_performance_bar.html.haml b/app/views/admin/application_settings/_performance_bar.html.haml index 44ac8d94764..f992d531ea5 100644 --- a/app/views/admin/application_settings/_performance_bar.html.haml +++ b/app/views/admin/application_settings/_performance_bar.html.haml @@ -5,10 +5,10 @@ .form-group .form-check = f.check_box :performance_bar_enabled, class: 'form-check-input' - = f.label :performance_bar_enabled, class: 'form-check-label' do + = f.label :performance_bar_enabled, class: 'form-check-label qa-enable-performance-bar-checkbox' do Enable the Performance Bar .form-group = f.label :performance_bar_allowed_group_path, 'Allowed group', class: 'label-bold' = f.text_field :performance_bar_allowed_group_path, class: 'form-control', placeholder: 'my-org/my-group', value: @application_setting.performance_bar_allowed_group&.full_path - = f.submit 'Save changes', class: "btn btn-success" + = f.submit 'Save changes', class: 'btn btn-success qa-save-changes-button' diff --git a/app/views/admin/application_settings/metrics_and_profiling.html.haml b/app/views/admin/application_settings/metrics_and_profiling.html.haml index f50aca32bdf..d5ba6abe7af 100644 --- a/app/views/admin/application_settings/metrics_and_profiling.html.haml +++ b/app/views/admin/application_settings/metrics_and_profiling.html.haml @@ -24,7 +24,7 @@ .settings-content = render 'prometheus' -%section.settings.as-performance-bar.no-animate#js-performance-bar-settings{ class: ('expanded' if expanded_by_default?) } +%section.settings.qa-performance-bar-settings.as-performance-bar.no-animate#js-performance-bar-settings{ class: ('expanded' if expanded_by_default?) } .settings-header %h4 = _('Profiling - Performance bar') |