From a4628a3fdd25d4dd5f54e1702c886577ff0530e1 Mon Sep 17 00:00:00 2001 From: Josias Schneider Date: Thu, 9 Nov 2023 10:49:31 -0300 Subject: [PATCH] Fix flaky aria-disabled tests (#621) * Fix flaky aria-disabled tests * Version bump: 9.2.2 --------- Co-authored-by: Versionator --- package.json | 2 +- test/forms/buttons/button.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 47bcf48e..b016d293 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@launchpadlab/lp-components", - "version": "9.2.1", + "version": "9.2.2", "engines": { "node": "^18.12" }, diff --git a/test/forms/buttons/button.test.js b/test/forms/buttons/button.test.js index 9b1a021a..da4eed64 100644 --- a/test/forms/buttons/button.test.js +++ b/test/forms/buttons/button.test.js @@ -7,14 +7,14 @@ test('Button is aria-disabled when form is invalid', () => { render() const button = screen.getByRole('button') - expect(button).toHaveAttribute('aria-disabled') + expect(button).toHaveAttribute('aria-disabled', 'true') }) test('Button is aria-disabled when form is pristine', () => { render() const button = screen.getByRole('button') - expect(button).toHaveAttribute('aria-disabled') + expect(button).toHaveAttribute('aria-disabled', 'true') }) test('Button onClick is run when the form is not submitting, pristine, or invalid', async () => {