Commit 2d731e8d authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'fix-index-design-spec' into 'master'

Fix uses of `loading` param in `spec/frontend/design_management/pages/index_spec.js`

See merge request gitlab-org/gitlab!44683
parents d1f437c9 0d402275
......@@ -651,7 +651,7 @@ describe('Design management index page', () => {
describe('when navigating', () => {
it('ensures fullscreen layout is not applied', () => {
createComponent(true);
createComponent({ loading: true });
expect(mockPageEl.classList.remove).toHaveBeenCalledTimes(1);
expect(mockPageEl.classList.remove).toHaveBeenCalledWith(...DESIGN_DETAIL_LAYOUT_CLASSLIST);
......@@ -661,7 +661,7 @@ describe('Design management index page', () => {
router.replace({
path: '/designs',
});
createComponent(true);
createComponent({ loading: true });
return wrapper.vm.$nextTick().then(() => {
expect(scrollIntoViewMock).toHaveBeenCalled();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment