Skip to content

Commit

Permalink
fix failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
OutlawAndy committed Mar 27, 2024
1 parent 793fdb8 commit 1489ccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/system/stimulus.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
})
})

0 comments on commit 1489ccf

Please sign in to comment.