From 52eb516719358f0ca00f9001ca798601b9f68aab Mon Sep 17 00:00:00 2001 From: Alexey Vasiliev Date: Tue, 19 Nov 2024 22:21:20 +0200 Subject: [PATCH] Fix alpinejs test --- test/alpine.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/alpine.test.ts b/test/alpine.test.ts index 9b5e6ce..e2173b6 100644 --- a/test/alpine.test.ts +++ b/test/alpine.test.ts @@ -122,7 +122,7 @@ describe('bindings', () => { input = await prepareInput( `
- +
` ) const span = document.querySelector('span') @@ -130,12 +130,12 @@ describe('bindings', () => { await user.type(input, '1') expect(input).toHaveValue('1') - expect(span).not.toBeVisible() + expect(span).toHaveTextContent('Completed: no') await user.type(input, '2') expect(input).toHaveValue('1-2') - expect(span).toBeVisible() + expect(span).toHaveTextContent('Completed: yes') }) test('bind masked with onMask', async () => {