diff --git a/cypress/component/DataSearch/dataset_search_filters.spec.js b/cypress/component/DataSearch/dataset_search_filters.spec.js new file mode 100644 index 000000000..d19a0f712 --- /dev/null +++ b/cypress/component/DataSearch/dataset_search_filters.spec.js @@ -0,0 +1,27 @@ +/* eslint-disable no-undef */ + +import { mount } from 'cypress/react'; +import React from 'react'; +import {Storage} from '../../../src/libs/storage'; +import DatasetFilterList from '../../../src/components/data_search/DatasetFilterList'; + +const duosUser = { + isSigningOfficial: false, +}; + +describe('Data Library Filters', () => { + // Intercept configuration calls + beforeEach(() => { + cy.intercept({ + method: 'GET', + url: '/config.json', + hostname: 'localhost', + }, { 'env': 'ci' }); + }); + + it('Renders the data library filters', () => { + const props = { datasets: [], filters: [], filterHandler: () => {}, isFiltered: () => {}}; + mount(); + cy.get('div').should('contain', 'Filters'); + }); +});