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-16 00:32:09 +0300
committerSarah German <sgerman@gitlab.com>2022-06-16 00:32:09 +0300
commitd7b8532c90d386ae891660f3b1898ce2f60fe44e (patch)
tree0f2b0f9cd60b637e2a514dbe270d24072f57474b /spec
parentbd3df1259d0ba5a1071e2eb4c5e135602383171a (diff)
Replace FontAwesome icons in mobile nav1164-toc-awesome
Diffstat (limited to 'spec')
-rw-r--r--spec/frontend/default/components/__snapshots__/table_of_contents_spec.js.snap17
-rw-r--r--spec/frontend/default/components/table_of_contents_spec.js6
2 files changed, 15 insertions, 8 deletions
diff --git a/spec/frontend/default/components/__snapshots__/table_of_contents_spec.js.snap b/spec/frontend/default/components/__snapshots__/table_of_contents_spec.js.snap
index 4763abef..4677a1ba 100644
--- a/spec/frontend/default/components/__snapshots__/table_of_contents_spec.js.snap
+++ b/spec/frontend/default/components/__snapshots__/table_of_contents_spec.js.snap
@@ -17,12 +17,17 @@ exports[`frontend/default/components/table_of_contents matches snapshot 1`] = `
href="#"
role="button"
>
- <i
- class="fa d-flex align-items-center justify-content-center mr-1 gl-w-3 fa-angle-right"
- role="presentation"
- />
-
- On this page
+ <svg
+ aria-hidden="true"
+ class="gl-pt-2 gl-mr-2 s18 gl-icon s16"
+ data-testid="chevron-right-icon"
+ role="img"
+ >
+ <use
+ href="[object Object]#chevron-right"
+ />
+ </svg>
+ On this page
</a>
</h4>
diff --git a/spec/frontend/default/components/table_of_contents_spec.js b/spec/frontend/default/components/table_of_contents_spec.js
index 86f14d1b..81718d7a 100644
--- a/spec/frontend/default/components/table_of_contents_spec.js
+++ b/spec/frontend/default/components/table_of_contents_spec.js
@@ -35,7 +35,7 @@ describe('frontend/default/components/table_of_contents', () => {
};
const findCollapseButton = () => wrapper.find('[data-testid="collapse"]');
- const findCollapseIcon = () => findCollapseButton().find('i');
+ const findCollapseIcon = () => findCollapseButton().find('svg');
const findCollapsibleContainer = () => wrapper.find('[data-testid="container"]');
const findMainList = () => wrapper.find('[data-testid="main-list"]');
const findMainListItems = () => findMainList().props('items');
@@ -44,7 +44,9 @@ describe('frontend/default/components/table_of_contents', () => {
const expectCollapsed = (isCollapsed = true) => {
expect(findCollapseButton().attributes('aria-expanded')).toBe(isCollapsed ? undefined : 'true');
expect(findCollapsibleContainer().props('isCollapsed')).toBe(isCollapsed);
- expect(findCollapseIcon().classes(isCollapsed ? 'fa-angle-right' : 'fa-angle-down')).toBe(true);
+ expect(findCollapseIcon().attributes('data-testid')).toBe(
+ isCollapsed ? 'chevron-right-icon' : 'chevron-down-icon',
+ );
};
it('matches snapshot', () => {