Skip to content

Commit

Permalink
V2Wizard: Restore tests
Browse files Browse the repository at this point in the history
Uncomment all tests that should be passing up to this point in the V2
wizard development.
  • Loading branch information
lucasgarfield authored and regexowl committed Jan 8, 2024
1 parent 6e57efb commit 8a6fc07
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions src/test/Components/CreateImageWizardV2/CreateImageWizard.test.tsx
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
// import React from 'react';
import React from 'react';

// import '@testing-library/jest-dom';

// import {
// screen,
// waitFor,
// waitForElementToBeRemoved,
// within,
// } from '@testing-library/react';
import {
screen,
// waitFor,
// waitForElementToBeRemoved,
// within,
} from '@testing-library/react';
// import userEvent from '@testing-library/user-event';
// import { rest } from 'msw';

// import CreateImageWizard from '../../../Components/CreateImageWizard/CreateImageWizard';
// import ShareImageModal from '../../../Components/ShareImageModal/ShareImageModal';
import CreateImageWizard from '../../../Components/CreateImageWizardV2/CreateImageWizard';
import ShareImageModal from '../../../Components/ShareImageModal/ShareImageModal';
// import {
// IMAGE_BUILDER_API,
// PROVISIONING_API,
// RHEL_8,
// RHSM_API,
// } from '../../../constants.js';
// import { server } from '../../mocks/server.js';
// import {
// clickBack,
// clickNext,
// getNextButton,
// renderCustomRoutesWithReduxRouter,
// verifyCancelButton,
// } from '../../testUtils';

// const routes = [
// {
// path: 'insights/image-builder/*',
// element: <div />,
// },
// {
// path: 'insights/image-builder/imagewizard/:composeId?',
// element: <CreateImageWizard />,
// },
// {
// path: 'insights/image-builder/share /:composeId',
// element: <ShareImageModal />,
// },
// ];
import {
// clickBack,
// clickNext,
// getNextButton,
renderCustomRoutesWithReduxRouter,
// verifyCancelButton,
} from '../../testUtils';

const routes = [
{
path: 'insights/image-builder/*',
element: <div />,
},
{
path: 'insights/image-builder/imagewizard/:composeId?',
element: <CreateImageWizard />,
},
{
path: 'insights/image-builder/share /:composeId',
element: <ShareImageModal />,
},
];

// let router = undefined;

Expand Down Expand Up @@ -110,22 +110,22 @@
// server.resetHandlers();
// });

// describe('Create Image Wizard', () => {
// test('renders component', () => {
// renderCustomRoutesWithReduxRouter('imagewizard', {}, routes);
// // check heading
// screen.getByRole('heading', { name: /Image Builder/ });

// screen.getByRole('button', { name: 'Image output' });
// screen.getByRole('button', { name: 'Register' });
// screen.getByRole('button', { name: 'File system configuration' });
// screen.getByRole('button', { name: 'Content' });
// screen.getByRole('button', { name: 'Additional Red Hat packages' });
// screen.getByRole('button', { name: 'Custom repositories' });
// screen.getByRole('button', { name: 'Details' });
// screen.getByRole('button', { name: 'Review' });
// });
// });
describe('Create Image Wizard', () => {
test('renders component', () => {
renderCustomRoutesWithReduxRouter('imagewizard', {}, routes);
// check heading
screen.getByRole('heading', { name: /Image Builder/ });

// screen.getByRole('button', { name: 'Image output' });
// screen.getByRole('button', { name: 'Register' });
// screen.getByRole('button', { name: 'File system configuration' });
// screen.getByRole('button', { name: 'Content' });
// screen.getByRole('button', { name: 'Additional Red Hat packages' });
// screen.getByRole('button', { name: 'Custom repositories' });
// screen.getByRole('button', { name: 'Details' });
// screen.getByRole('button', { name: 'Review' });
});
});

// describe('Step Image output', () => {
// const user = userEvent.setup();
Expand Down

0 comments on commit 8a6fc07

Please sign in to comment.