Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2022-06-02 04:12:22 +0300
committerSuzanne Selhorn <sselhorn@gitlab.com>2022-06-02 04:12:22 +0300
commit438e557f7a46357a01a9267c8e23dddf7aa00a40 (patch)
treea3e1e378a049851c4548e941af86d283052cf6f2 /spec
parent7587182c0ac4d601fb4dee0c9cf4dd9c4ab5b089 (diff)
Add filters to the Deprecations page
Diffstat (limited to 'spec')
-rw-r--r--spec/frontend/deprecations/deprecation_filters_spec.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/frontend/deprecations/deprecation_filters_spec.js b/spec/frontend/deprecations/deprecation_filters_spec.js
new file mode 100644
index 00000000..c192745e
--- /dev/null
+++ b/spec/frontend/deprecations/deprecation_filters_spec.js
@@ -0,0 +1,16 @@
+/**
+ * @jest-environment jsdom
+ */
+
+import { mount } from '@vue/test-utils';
+import DeprecationFilters from '../../../content/frontend/deprecations/components/deprecation_filters.vue';
+
+const propsData = { showAllText: 'Show all', milestonesList: [] };
+const removalsFilterSelector = '[data-testid="removal-milestone-filter"]';
+
+describe('component: Deprecations Filter', () => {
+ it('Filter is visible', () => {
+ const wrapper = mount(DeprecationFilters, { propsData });
+ expect(wrapper.find(removalsFilterSelector).isVisible()).toBe(true);
+ });
+});