Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bb942b98
Commit
bb942b98
authored
Dec 16, 2019
by
Tom Quirk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix import warning in design view test
parent
623d484d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
ee/spec/frontend/design_management/pages/design/__snapshots__/index_spec.js.snap
..._management/pages/design/__snapshots__/index_spec.js.snap
+1
-1
ee/spec/frontend/design_management/pages/design/index_spec.js
...pec/frontend/design_management/pages/design/index_spec.js
+1
-8
No files found.
ee/spec/frontend/design_management/pages/design/__snapshots__/index_spec.js.snap
View file @
bb942b98
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Design management design index page flash
container is in correct position in DOM
1`] = `
exports[`Design management design index page flash
GlAlert is rendered in correct position with correct content
1`] = `
<div
<div
class="design-detail fixed-top w-100 position-bottom-0 d-flex justify-content-center flex-column flex-lg-row"
class="design-detail fixed-top w-100 position-bottom-0 d-flex justify-content-center flex-column flex-lg-row"
>
>
...
...
ee/spec/frontend/design_management/pages/design/index_spec.js
View file @
bb942b98
...
@@ -4,7 +4,6 @@ import DesignIndex from 'ee/design_management/pages/design/index.vue';
...
@@ -4,7 +4,6 @@ import DesignIndex from 'ee/design_management/pages/design/index.vue';
import
DesignDiscussion
from
'
ee/design_management/components/design_notes/design_discussion.vue
'
;
import
DesignDiscussion
from
'
ee/design_management/components/design_notes/design_discussion.vue
'
;
import
DesignReplyForm
from
'
ee/design_management/components/design_notes/design_reply_form.vue
'
;
import
DesignReplyForm
from
'
ee/design_management/components/design_notes/design_reply_form.vue
'
;
import
createImageDiffNoteMutation
from
'
ee/design_management/graphql/mutations/createImageDiffNote.mutation.graphql
'
;
import
createImageDiffNoteMutation
from
'
ee/design_management/graphql/mutations/createImageDiffNote.mutation.graphql
'
;
import
*
as
utils
from
'
ee/design_management/utils/design_management_utils
'
;
import
design
from
'
../../mock_data/design
'
;
import
design
from
'
../../mock_data/design
'
;
jest
.
mock
(
'
mousetrap
'
,
()
=>
({
jest
.
mock
(
'
mousetrap
'
,
()
=>
({
...
@@ -191,14 +190,8 @@ describe('Design management design index page', () => {
...
@@ -191,14 +190,8 @@ describe('Design management design index page', () => {
errorMessage
:
'
woops
'
,
errorMessage
:
'
woops
'
,
});
});
});
});
it
(
'
container is in correct position in DOM
'
,
()
=>
{
it
(
'
GlAlert is rendered in correct position with correct content
'
,
()
=>
{
expect
(
wrapper
.
element
).
toMatchSnapshot
();
expect
(
wrapper
.
element
).
toMatchSnapshot
();
// wrapper.vm.$nextTick(() => {
// // tests that `design-detail` class exists on Component container,
// // and that the '.flash-container' element exists and is placed correctly
// expect(wrapper.element).toMatchSnapshot();
// });
});
});
});
});
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment