Refactor and clean up duplicates for paginated_table_with_search_and_tabs_spec.js
The following discussion from !112445 (merged) should be addressed:
-
@deepika.guliani started a discussion: (+1 comment) suggestion Since we are already working on some tech debt , how about renaming
Filters
tofindFilteredSearchBar
?Also I saw there are some duplicates in this file for eg :
const Pagination = () => wrapper.findComponent(GlPagination); const Tabs = () => wrapper.findComponent(GlTabs); const findPagination = () => wrapper.findComponent(GlPagination); const findStatusTabs = () => wrapper.findComponent(GlTabs);
WDYT about using
findPagination
andfindStatusTabs
and getting rid of the extra lines of code ?🤔