Tests: Disable repository related tests

Disable tests related to custom repos temporarily while that feature is
unavailable.
This commit is contained in:
lucasgarfield 2024-01-24 20:54:12 +01:00 committed by Simon Steinbeiß
parent 48da0a79ec
commit 0f75f4862a
2 changed files with 16 additions and 10 deletions

View file

@ -1222,16 +1222,17 @@ describe('Click through all steps', () => {
await clickNext();
// 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();
// Custom packages
await clickNext();
// await clickNext();
// Enter image name
const nameInput = await screen.findByRole('textbox', {
@ -1313,6 +1314,7 @@ describe('Click through all steps', () => {
},
];
// eslint-disable-next-line no-unused-vars
const custom_repos = [
{
baseurl: ['http://yum.theforeman.org/releases/3.4/el8/x86_64/'],
@ -1349,7 +1351,8 @@ describe('Click through all steps', () => {
min_size: 104857600,
},
],
custom_repositories: custom_repos,
// custom_repositories: custom_repos,
custom_repositories: [],
payload_repositories: payload_repos,
packages: ['test'],
subscription: {
@ -1362,6 +1365,7 @@ describe('Click through all steps', () => {
},
};
// eslint-disable-next-line
const expectedComposeReqs = {
aws: {
distribution: RHEL_8,
@ -1475,6 +1479,7 @@ describe('Click through all steps', () => {
},
};
// eslint-disable-next-line
let timesCalled = 0;
const receivedComposeReqs = {};
@ -1492,8 +1497,9 @@ describe('Click through all steps', () => {
);
await user.click(await screen.findByRole('button', { name: /Create/ }));
expect(receivedComposeReqs).toEqual(expectedComposeReqs);
expect(timesCalled).toEqual(6);
// TODO re-enable asap
// expect(receivedComposeReqs).toEqual(expectedComposeReqs);
// expect(timesCalled).toEqual(6);
// returns back to the landing page
await waitFor(() =>