test: Add test to check for all the available releases

This obsoletes the 'non-rhel releases on beta' test, as it checks all
releases.
This commit is contained in:
Sanne Raymaekers 2022-05-18 14:21:31 +02:00
parent 2e39b47095
commit e160aec170

View file

@ -221,7 +221,7 @@ describe('Step Image output', () => {
expect(next).toBeDisabled();
});
test('non-rhel releases on beta', async () => {
test('expected releases are present on beta', async () => {
setUp();
const releaseMenu = screen.getByRole('button', {
@ -232,10 +232,16 @@ describe('Step Image output', () => {
await screen.findByRole('option', {
name: 'Red Hat Enterprise Linux (RHEL) 8'
});
screen.getByRole('option', {
await screen.findByRole('option', {
name: 'Red Hat Enterprise Linux (RHEL) 9'
});
await screen.findByRole('option', {
name: 'CentOS Stream 8'
});
await screen.findByRole('option', {
name: 'CentOS Stream 9'
});
userEvent.click(releaseMenu);
});
});