Skip to content

Commit

Permalink
fix(KFLUXUI-278): added fireEvent for breadcrumbs link
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshett committed Jan 23, 2025
1 parent 033aaa6 commit dc7b4ac
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fireEvent } from '@testing-library/dom';
import { FormikProps } from 'formik';
import { createUseWorkspaceInfoMock, formikRenderer } from '../../../../../utils/test-utils';
import { ReleasePlanForm } from '../ReleasePlanForm';
Expand Down Expand Up @@ -34,6 +35,7 @@ describe('ReleasePlanForm', () => {
expect(result.getByRole('checkbox', { name: 'Standing attribution' })).toBeVisible();
expect(result.getByRole('textbox', { name: 'Release plan name' })).toBeVisible();
const breadcrumbLink = result.getByRole('link', { name: /release/i });
fireEvent.click(breadcrumbLink);
expect(breadcrumbLink).toHaveAttribute('href', '/workspaces/test-ws/release');
});

Expand Down

0 comments on commit dc7b4ac

Please sign in to comment.