From 1489ccface576dc291a38ef18c682017a3cb3989 Mon Sep 17 00:00:00 2001 From: Andy Cohen Date: Wed, 27 Mar 2024 08:00:37 -0500 Subject: [PATCH] fix failing spec --- test/system/stimulus.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/system/stimulus.spec.js b/test/system/stimulus.spec.js index 7d21987..7502dc7 100644 --- a/test/system/stimulus.spec.js +++ b/test/system/stimulus.spec.js @@ -33,16 +33,16 @@ test.describe('Stimulus Controller Integration', () => { const customMessage = await button.getAttribute('data-confirm-message-param') || ''; await expect(header).toContainText('Manual Confirm Test'); - await expect(dialog).not.toHaveAttribute('open'); + await expect(dialog).not.toBeVisible(); await button.click(); - await expect(dialog).toHaveAttribute('open'); + await expect(dialog).toBeVisible(); await expect(dialog).toContainText(customMessage); await dialog.getByText("Yes, I'm Sure").click(); - await expect(dialog).not.toHaveAttribute('open'); + await expect(dialog).not.toBeVisible(); await expect(header).toContainText('A confirm has been accepted'); }) })