another step for constructing base project

This commit is contained in:
hamid
2026-06-17 22:53:49 +03:30
parent 5b4c0d183f
commit 5388bea320
76 changed files with 3836 additions and 1961 deletions
@@ -28,7 +28,8 @@ describe('<AppIconButton/> component', () => {
// Button
const button = screen.getByTestId(testId);
expect(button).toBeDefined();
expect(button).toHaveAttribute('role', 'button');
// MUI v9: native <button> has implicit role; no explicit role attr on semantic elements
expect(button).toHaveRole('button');
expect(button).toHaveAttribute('type', 'button');
// Icon
@@ -70,7 +71,8 @@ describe('<AppIconButton/> component', () => {
// Button
const button = screen.getByTestId(testId);
expect(button).toBeDefined();
expect(button).toHaveAttribute('aria-disabled', 'true');
// MUI v9: native disabled button uses HTML disabled attribute, not aria-disabled
expect(button).toBeDisabled();
expect(button).toHaveClass('Mui-disabled');
});