test: Re-enable repositories step
This reverts: - https://github.com/osbuild/image-builder-frontend/pull/1593
This commit is contained in:
parent
362cf6abee
commit
97170fb98f
2 changed files with 270 additions and 281 deletions
|
|
@ -1221,20 +1221,18 @@ describe('Click through all steps', () => {
|
|||
);
|
||||
await clickNext();
|
||||
|
||||
// Temporarily disable
|
||||
// Custom repositories
|
||||
// await user.click(
|
||||
// await screen.findByRole('checkbox', { name: /select row 0/i })
|
||||
// );
|
||||
// await user.click(
|
||||
// await screen.findByRole('checkbox', { name: /select row 1/i })
|
||||
// );
|
||||
await user.click(
|
||||
await screen.findByRole('checkbox', { name: /select row 0/i })
|
||||
);
|
||||
await user.click(
|
||||
await screen.findByRole('checkbox', { name: /select row 1/i })
|
||||
);
|
||||
|
||||
await clickNext();
|
||||
|
||||
// Temporarily disable
|
||||
// Custom packages
|
||||
// await clickNext();
|
||||
await clickNext();
|
||||
|
||||
// Enter image name
|
||||
const nameInput = await screen.findByRole('textbox', {
|
||||
|
|
@ -1299,8 +1297,6 @@ describe('Click through all steps', () => {
|
|||
expect(within(revtbody).getAllByRole('row')).toHaveLength(3);
|
||||
|
||||
// mock the backend API
|
||||
// Temporarily disable
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const payload_repos = [
|
||||
{
|
||||
baseurl: 'http://yum.theforeman.org/releases/3.4/el8/x86_64/',
|
||||
|
|
@ -1318,8 +1314,6 @@ describe('Click through all steps', () => {
|
|||
},
|
||||
];
|
||||
|
||||
// Temporarily disable
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const custom_repos = [
|
||||
{
|
||||
baseurl: ['http://yum.theforeman.org/releases/3.4/el8/x86_64/'],
|
||||
|
|
@ -1356,9 +1350,8 @@ describe('Click through all steps', () => {
|
|||
min_size: 104857600,
|
||||
},
|
||||
],
|
||||
// Temporarily disable
|
||||
// custom_repositories: custom_repos,
|
||||
// payload_repositories: payload_repos,
|
||||
custom_repositories: custom_repos,
|
||||
payload_repositories: payload_repos,
|
||||
packages: ['test'],
|
||||
subscription: {
|
||||
'activation-key': 'name0',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue