Skip to content
Snippets Groups Projects
Verified Commit 5f1673e2 authored by Rahul Chanila's avatar Rahul Chanila :two: Committed by GitLab
Browse files

Merge branch '451128-vue3-migration-vulnerability_list' into 'master'

Remove deprecated setChecked from vulnerability_list_spec.js

See merge request !148273



Merged-by: default avatarRahul Chanila <rchanila@gitlab.com>
Approved-by: default avatarJay Montal <jmontal@gitlab.com>
Approved-by: default avatarRahul Chanila <rchanila@gitlab.com>
Reviewed-by: default avatarArtur Fedorov <afedorov@gitlab.com>
Reviewed-by: default avatarRahul Chanila <rchanila@gitlab.com>
Co-authored-by: default avatarArtur Fedorov <afedorov@gitlab.com>
parents 5ceccd84 3dbfe4bf
No related branches found
No related tags found
1 merge request!148273Remove deprecated setChecked from vulnerability_list_spec.js
Pipeline #1239299916 passed with warnings
Pipeline: E2E Omnibus GitLab EE

#1239318274

    Pipeline: E2E CNG

    #1239305682

      Pipeline: GitLab

      #1239305678

        +29
        ......@@ -82,6 +82,7 @@ describe('Vulnerability list component', () => {
        const findDashboardHasNoVulnerabilities = () =>
        wrapper.findComponent(DashboardHasNoVulnerabilities);
        const findVendorNames = () => wrapper.findByTestId('vulnerability-vendor');
        const findVulnerabilityCheckbox = () => wrapper.findByTestId('vulnerability-checkbox');
        const findCheckAllCheckbox = () => wrapper.findByTestId('vulnerability-checkbox-all');
        const findAllRowCheckboxes = () => wrapper.findAllByTestId('vulnerability-checkbox');
        const findSkeletonLoading = () => wrapper.findAllComponents(GlSkeletonLoader);
        ......@@ -156,8 +157,7 @@ describe('Vulnerability list component', () => {
        });
        it('should show the selection summary when a checkbox is selected', async () => {
        findDataCell('vulnerability-checkbox').setChecked(true);
        await nextTick();
        await findVulnerabilityCheckbox().trigger('change');
        expect(findSelectionSummary().props('visible')).toBe(true);
        });
        ......@@ -175,9 +175,7 @@ describe('Vulnerability list component', () => {
        });
        it('should sync selected vulnerabilities when the vulnerability list is updated', async () => {
        findDataCell('vulnerability-checkbox').setChecked(true);
        await nextTick();
        await findVulnerabilityCheckbox().trigger('change');
        expect(findSelectionSummary().props('selectedVulnerabilities')).toHaveLength(1);
        ......@@ -189,8 +187,8 @@ describe('Vulnerability list component', () => {
        });
        it('should uncheck a selected vulnerability after the vulnerability is updated', async () => {
        const checkbox = () => findDataCell('vulnerability-checkbox');
        checkbox().setChecked(true);
        const checkbox = () => findVulnerabilityCheckbox();
        await checkbox().trigger('change');
        expect(checkbox().element.checked).toBe(true);
        await nextTick();
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment