summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAnnabel Gray <annabel.m.gray@gmail.com>2018-06-14 16:34:58 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-06-14 16:34:58 +0000
commit4d098451c3830a13e7ae3a9615d87dbc1f73ceec (patch)
treed13dd2d7fee004f96c1d373ad3bd2c7a9c10dbd0 /spec
parentb3969ed23cbda79eea138fea3a23921703795543 (diff)
downloadgitlab-ce-4d098451c3830a13e7ae3a9615d87dbc1f73ceec.tar.gz
Resolve "Performance bar Gitaly modal is hard to read"
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/vue_shared/components/gl_modal_spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/javascripts/vue_shared/components/gl_modal_spec.js b/spec/javascripts/vue_shared/components/gl_modal_spec.js
index 23be8d93b81..e4737714312 100644
--- a/spec/javascripts/vue_shared/components/gl_modal_spec.js
+++ b/spec/javascripts/vue_shared/components/gl_modal_spec.js
@@ -208,6 +208,14 @@ describe('GlModal', () => {
expect(vm.$el.querySelector('.modal-dialog').classList.contains('modal-lg')).toEqual(true);
});
+ it('should render modal-xl', () => {
+ vm = mountComponent(modalComponent, {
+ modalSize: 'xl',
+ });
+
+ expect(vm.$el.querySelector('.modal-dialog').classList.contains('modal-xl')).toEqual(true);
+ });
+
it('should not add modal size classes when md size is passed', () => {
vm = mountComponent(modalComponent, {
modalSize: 'md',