CreateImageWizard: switch tiles to cards

Tiles are being deprecated in PatternFly. This commit switches from
tiles to cards for the Target Environments in the CreateImageWizard.

The keyboard test had to be removed since cards don't have a keydown
event.
This commit is contained in:
Gianluca Zuccarelli 2025-05-30 12:54:40 +01:00 committed by Anna Vítová
parent 362e5f7ca6
commit 4668ed71ab
3 changed files with 104 additions and 75 deletions

View file

@ -24,9 +24,7 @@ const testTile = async (tile: HTMLElement) => {
tile.focus();
await waitFor(() => user.keyboard(' '));
expect(tile).toHaveClass('pf-m-selected');
await waitFor(() => user.keyboard(' '));
expect(tile).not.toHaveClass('pf-m-selected');
expect(tile).toHaveClass('pf-m-selectable');
};
describe('Create Image Wizard', () => {