test: Update release select option to partial match

With description added to the RHEL release options in Release select every query using name needed to be updated from full to partial match.
This commit is contained in:
regexowl 2023-12-06 12:47:29 +01:00 committed by Lucas Garfield
parent 014a0c1d70
commit c11f80188e
4 changed files with 13 additions and 13 deletions

View file

@ -197,10 +197,10 @@ describe('Step Image output', () => {
await user.click(releaseMenu);
await screen.findByRole('option', {
name: 'Red Hat Enterprise Linux (RHEL) 8',
name: /Red Hat Enterprise Linux \(RHEL\) 8/,
});
await screen.findByRole('option', {
name: 'Red Hat Enterprise Linux (RHEL) 9',
name: /Red Hat Enterprise Linux \(RHEL\) 9/,
});
await screen.findByRole('button', {
name: 'Show options for further development of RHEL',
@ -223,10 +223,10 @@ describe('Step Image output', () => {
await user.click(showOptionsButton);
await screen.findByRole('option', {
name: 'Red Hat Enterprise Linux (RHEL) 8',
name: /Red Hat Enterprise Linux \(RHEL\) 8/,
});
await screen.findByRole('option', {
name: 'Red Hat Enterprise Linux (RHEL) 9',
name: /Red Hat Enterprise Linux \(RHEL\) 9/,
});
await screen.findByRole('option', {
name: 'CentOS Stream 8',
@ -1025,7 +1025,7 @@ describe('Click through all steps', () => {
})[0];
await user.click(releaseMenu);
const releaseOption = screen.getByRole('option', {
name: 'Red Hat Enterprise Linux (RHEL) 8',
name: /Red Hat Enterprise Linux \(RHEL\) 8/,
});
await user.click(releaseOption);