Commit ec810919 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'vs/use-shallow-mount-in-dast-site-validation-modal-spec' into 'master'

Use shallowMount in dast_site_validation_modal_spec

See merge request gitlab-org/gitlab!67605
parents f570d7a5 13c2fa7c
...@@ -111,7 +111,7 @@ describe('DastSiteValidationModal', () => { ...@@ -111,7 +111,7 @@ describe('DastSiteValidationModal', () => {
describe('rendering', () => { describe('rendering', () => {
describe('loading', () => { describe('loading', () => {
beforeEach(() => { beforeEach(() => {
createFullComponent({ createComponent({
handlers: { handlers: {
dastSiteTokenCreate: pendingHandler, dastSiteTokenCreate: pendingHandler,
}, },
...@@ -127,7 +127,7 @@ describe('DastSiteValidationModal', () => { ...@@ -127,7 +127,7 @@ describe('DastSiteValidationModal', () => {
describe('error', () => { describe('error', () => {
beforeEach(async () => { beforeEach(async () => {
createFullComponent({ createComponent({
handlers: { handlers: {
dastSiteTokenCreate: jest.fn().mockRejectedValue(new Error('GraphQL Network Error')), dastSiteTokenCreate: jest.fn().mockRejectedValue(new Error('GraphQL Network Error')),
}, },
...@@ -161,13 +161,6 @@ describe('DastSiteValidationModal', () => { ...@@ -161,13 +161,6 @@ describe('DastSiteValidationModal', () => {
expect(downloadButton).not.toBeNull(); expect(downloadButton).not.toBeNull();
}); });
it.each(validationMethods)(
'renders a radio input for "%s" validation',
(validationMethod) => {
expect(findRadioInputForValidationMethod(validationMethod)).not.toBe(null);
},
);
it('renders an input group with the target URL prepended', () => { it('renders an input group with the target URL prepended', () => {
const inputGroup = withinComponent().getByRole('group', { const inputGroup = withinComponent().getByRole('group', {
name: 'Step 3 - Confirm text file location and validate', name: 'Step 3 - Confirm text file location and validate',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment