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:
parent
014a0c1d70
commit
c11f80188e
4 changed files with 13 additions and 13 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ describe('Check that the target filtering is in accordance to mock content', ()
|
|||
await user.click(releaseMenu);
|
||||
await user.click(
|
||||
screen.getByRole('option', {
|
||||
name: 'Red Hat Enterprise Linux (RHEL) 8',
|
||||
name: /Red Hat Enterprise Linux \(RHEL\) 8/,
|
||||
})
|
||||
);
|
||||
|
||||
|
|
@ -185,7 +185,7 @@ describe('Check that the target filtering is in accordance to mock content', ()
|
|||
await user.click(releaseMenu);
|
||||
await user.click(
|
||||
screen.getByRole('option', {
|
||||
name: 'Red Hat Enterprise Linux (RHEL) 8',
|
||||
name: /Red Hat Enterprise Linux \(RHEL\) 8/,
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -101,12 +101,12 @@ describe('Step Image output', () => {
|
|||
|
||||
// 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/,
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -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/,
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue