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

@ -83,12 +83,12 @@ describe('Check that the target filtering is in accordance to mock content', ()
// select rhel8
const releaseMenu = screen.getAllByRole('button', {
name: 'Red Hat Enterprise Linux (RHEL) 9',
name: /Red Hat Enterprise Linux \(RHEL\) 9/,
})[0];
await user.click(releaseMenu);
await user.click(
await screen.findByRole('option', {
name: 'Red Hat Enterprise Linux (RHEL) 8',
name: /Red Hat Enterprise Linux \(RHEL\) 8/,
})
);
@ -166,12 +166,12 @@ describe('Check that the target filtering is in accordance to mock content', ()
// select rhel8
const releaseMenu = screen.getAllByRole('button', {
name: 'Red Hat Enterprise Linux (RHEL) 9',
name: /Red Hat Enterprise Linux \(RHEL\) 9/,
})[0];
await user.click(releaseMenu);
await user.click(
await screen.findByRole('option', {
name: 'Red Hat Enterprise Linux (RHEL) 8',
name: /Red Hat Enterprise Linux \(RHEL\) 8/,
})
);