Commit 2753854d authored by Yogi's avatar Yogi Committed by Nicolò Maria Mezzopera

Resolve "Add GlToggle label in...

Resolve "Add GlToggle label in `app/assets/javascripts/sidebar/components/subscriptions/subscriptions.vue`"
parent 0da898bf
......@@ -122,6 +122,8 @@ export default {
:value="subscribed"
class="hide-collapsed"
data-testid="subscription-toggle"
:label="__('Notifications')"
label-position="hidden"
@change="toggleSubscription"
/>
</div>
......
---
title: Add GlToggle label in sidebar subscription toggle
merge_request: 54548
author: Yogi (@yo)
type: changed
......@@ -84,6 +84,15 @@ describe('Subscriptions', () => {
spy.mockRestore();
});
it('has visually hidden label', () => {
wrapper = mountComponent();
expect(findToggleButton().props()).toMatchObject({
label: 'Notifications',
labelPosition: 'hidden',
});
});
describe('given project emails are disabled', () => {
const subscribeDisabledDescription = 'Notifications have been disabled';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment