diff --git a/packages/react-code-editor/src/components/CodeEditor/__test__/__snapshots__/CodeEditor.test.tsx.snap b/packages/react-code-editor/src/components/CodeEditor/__test__/__snapshots__/CodeEditor.test.tsx.snap index bdef38498f6..9caca156ec3 100644 --- a/packages/react-code-editor/src/components/CodeEditor/__test__/__snapshots__/CodeEditor.test.tsx.snap +++ b/packages/react-code-editor/src/components/CodeEditor/__test__/__snapshots__/CodeEditor.test.tsx.snap @@ -23,6 +23,7 @@ exports[`Matches snapshot with control buttons enabled 1`] = ` style="display: contents;" > ); const button = screen.getByRole('button'); @@ -81,7 +82,8 @@ test(`aria-disabled and class ${styles.modifiers.ariaDisabled} are not rendered expect(button).not.toHaveClass(styles.modifiers.ariaDisabled); }); -test(`aria-disabled and class ${styles.modifiers.ariaDisabled} are not rendered when isDisabled is true, but isAriaDisabled is not passed`, () => { +// Re-enable as part of https://github.com/patternfly/patternfly-react/issues/11618 +test.skip(`aria-disabled and class ${styles.modifiers.ariaDisabled} are not rendered when isDisabled is true, but isAriaDisabled is not passed`, () => { render(); const button = screen.getByRole('button'); @@ -89,6 +91,15 @@ test(`aria-disabled and class ${styles.modifiers.ariaDisabled} are not rendered expect(button).not.toHaveClass(styles.modifiers.ariaDisabled); }); +// Remove as part of https://github.com/patternfly/patternfly-react/issues/11618 +test(`Renders with aria-disabled of true and without class ${styles.modifiers.ariaDisabled} when isDisabled is true`, () => { + render(); + + const button = screen.getByRole('button'); + expect(button).toHaveAttribute('aria-disabled', 'true'); + expect(button).not.toHaveClass(styles.modifiers.ariaDisabled); +}); + test(`Renders with class ${styles.modifiers.ariaDisabled} and aria-disabled attribute when isAriaDisabled = true`, () => { render(); const button = screen.getByRole('button'); diff --git a/packages/react-core/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap b/packages/react-core/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap index 43774b7acca..1bf9bbee899 100644 --- a/packages/react-core/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +++ b/packages/react-core/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap @@ -3,9 +3,10 @@ exports[`Renders basic button 1`] = `