From 672e5ec36cb88f8569debdcc399da2bbd0938faa Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 12:44:38 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test:=20Added=20disabled=20link=20a?= =?UTF-8?q?nd=20anchor=20tag=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/VLink.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/VLink.spec.ts b/test/VLink.spec.ts index a437551..fc91dce 100644 --- a/test/VLink.spec.ts +++ b/test/VLink.spec.ts @@ -21,4 +21,16 @@ describe('VLink', () => { expect(a.exists()).toBe(true); expect(a.attributes('href')).toBe('https://example.com'); }) + + test('disables the link when `disabled` is true', () => { + const wrapper = mount(VLink, { + props: {label: 'Disabled', disabled: true } + }) + + const button = wrapper.find('.p-button'); + expect(button.classes()).toContain('disabled'); + expect(button.attributes('aria-disabled')).toBe('true'); + }); + + })