Skip to content
代码片段 群组 项目
未验证 提交 989b1a14 编辑于 作者: Artur Fedorov's avatar Artur Fedorov 提交者: GitLab
浏览文件

Fix Vue 3 failing test

Negative index is not
supported in VUE 3

EE: true
上级 1dfd66d6
No related branches found
No related tags found
无相关合并请求
......@@ -58,7 +58,8 @@ describe('ee/vulnerabilities/components/generic_report/types/report_type_list_gr
});
it('applies the correct classes to the list items', () => {
const lastItem = findListItems().at(-1);
const lastIndex = items.length - 1;
const lastItem = findListItems().at(lastIndex);
expect(lastItem.classes().includes('!gl-list-none')).toBe(hasNestedList);
});
});
......
......@@ -105,7 +105,6 @@ ee/spec/frontend/users/identity_verification/components/verify_phone_verificatio
ee/spec/frontend/vue_merge_request_widget/components/mr_widget_pipeline_container_spec.js
ee/spec/frontend/vue_shared/components/groups_list/groups_list_item_spec.js
ee/spec/frontend/vue_shared/components/projects_list/projects_list_item_spec.js
ee/spec/frontend/vulnerabilities/generic_report/types/list_graphql_spec.js
ee/spec/frontend/vulnerabilities/related_issues_spec.js
spec/frontend/__helpers__/vue_test_utils_helper_spec.js
spec/frontend/access_tokens/index_spec.js
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册