Wizard: add RHEL 9 beta

Only exposed in preview.
This commit is contained in:
Sanne Raymaekers 2024-10-16 12:46:07 +02:00
parent 25f9fac059
commit cd70d1ff95
5 changed files with 25 additions and 5 deletions

View file

@ -203,7 +203,7 @@ describe('Step Image output', () => {
await screen.findByRole('option', {
name: /Red Hat Enterprise Linux \(RHEL\) 8/,
});
await screen.findByRole('option', {
await screen.findAllByRole('option', {
name: /Red Hat Enterprise Linux \(RHEL\) 9/,
});
await screen.findByRole('button', {
@ -223,7 +223,7 @@ describe('Step Image output', () => {
await screen.findByRole('option', {
name: /Red Hat Enterprise Linux \(RHEL\) 8/,
});
await screen.findByRole('option', {
await screen.findAllByRole('option', {
name: /Red Hat Enterprise Linux \(RHEL\) 9/,
});
await screen.findByRole('option', {
@ -451,12 +451,16 @@ describe('Set release using query parameter', () => {
test('rhel 9 by default (no query parameter)', async () => {
await renderCreateMode();
await screen.findByText('Red Hat Enterprise Linux (RHEL) 9');
await screen.findByText('Red Hat Enterprise Linux (RHEL) 9', {
exact: true,
});
});
test('rhel 9 by default (invalid query parameter)', async () => {
await renderCreateMode({ release: 'rhel9001' });
await screen.findByText('Red Hat Enterprise Linux (RHEL) 9');
await screen.findByText('Red Hat Enterprise Linux (RHEL) 9', {
exact: true,
});
});
test('rhel 8 (query parameter provided)', async () => {