diff options
Diffstat (limited to 'spec/frontend/clusters/components/ingress_modsecurity_settings_spec.js')
-rw-r--r-- | spec/frontend/clusters/components/ingress_modsecurity_settings_spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/clusters/components/ingress_modsecurity_settings_spec.js b/spec/frontend/clusters/components/ingress_modsecurity_settings_spec.js index fd6d9854868..f83a350a27c 100644 --- a/spec/frontend/clusters/components/ingress_modsecurity_settings_spec.js +++ b/spec/frontend/clusters/components/ingress_modsecurity_settings_spec.js @@ -59,6 +59,12 @@ describe('IngressModsecuritySettings', () => { }); }); + it('renders toggle with label', () => { + expect(findModSecurityToggle().props('label')).toBe( + IngressModsecuritySettings.i18n.modSecurityEnabled, + ); + }); + it('renders save and cancel buttons', () => { expect(findSaveButton().exists()).toBe(true); expect(findCancelButton().exists()).toBe(true); |