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
f10a86b1
Commit
f10a86b1
authored
Jan 25, 2022
by
NataliaTepluhina
Committed by
Natalia Tepluhina
Jan 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed double imports in tests
parent
6d809ce1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
ee/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
...ontend/sidebar/components/sidebar_dropdown_widget_spec.js
+6
-7
spec/frontend/pipelines/graph/linked_pipelines_column_spec.js
.../frontend/pipelines/graph/linked_pipelines_column_spec.js
+1
-2
spec/frontend/terraform/components/states_table_actions_spec.js
...rontend/terraform/components/states_table_actions_spec.js
+1
-2
No files found.
ee/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
View file @
f10a86b1
...
...
@@ -7,9 +7,8 @@ import {
}
from
'
@gitlab/ui
'
;
import
*
as
Sentry
from
'
@sentry/browser
'
;
import
{
mount
}
from
'
@vue/test-utils
'
;
import
Vue
from
'
vue
'
;
import
Vue
,
{
nextTick
}
from
'
vue
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
SidebarDropdownWidget
from
'
ee/sidebar/components/sidebar_dropdown_widget.vue
'
;
import
{
IssuableAttributeType
,
issuableAttributesQueries
}
from
'
ee/sidebar/constants
'
;
import
groupEpicsQuery
from
'
ee/sidebar/queries/group_epics.query.graphql
'
;
...
...
@@ -58,7 +57,7 @@ describe('SidebarDropdownWidget', () => {
// It then emits `shown` event in a watcher for `visible`
// Hence we need both of these:
await
waitForPromises
();
await
wrapper
.
vm
.
$
nextTick
();
await
nextTick
();
};
const
waitForApollo
=
async
()
=>
{
...
...
@@ -168,7 +167,7 @@ describe('SidebarDropdownWidget', () => {
findSearchBox
().
vm
.
$emit
(
'
input
'
,
'
non existing epics
'
);
await
wrapper
.
vm
.
$
nextTick
();
await
nextTick
();
expect
(
findDropdownText
().
text
()).
toBe
(
'
No open iteration found
'
);
});
...
...
@@ -268,7 +267,7 @@ describe('SidebarDropdownWidget', () => {
it
(
'
sends a groupEpics query with the entered search term "foo" and in TITLE param
'
,
async
()
=>
{
findSearchBox
().
vm
.
$emit
(
'
input
'
,
mockSearchTerm
);
await
wrapper
.
vm
.
$
nextTick
();
await
nextTick
();
// Account for debouncing
jest
.
runAllTimers
();
...
...
@@ -292,7 +291,7 @@ describe('SidebarDropdownWidget', () => {
});
it
(
'
sends a groupEpics query with empty title and undefined in param
'
,
async
()
=>
{
await
wrapper
.
vm
.
$
nextTick
();
await
nextTick
();
// Account for debouncing
jest
.
runAllTimers
();
...
...
@@ -306,7 +305,7 @@ describe('SidebarDropdownWidget', () => {
it
(
'
sends a groupEpics query for an IID with the entered search term "&1"
'
,
async
()
=>
{
findSearchBox
().
vm
.
$emit
(
'
input
'
,
'
&1
'
);
await
wrapper
.
vm
.
$
nextTick
();
await
nextTick
();
// Account for debouncing
jest
.
runAllTimers
();
...
...
spec/frontend/pipelines/graph/linked_pipelines_column_spec.js
View file @
f10a86b1
import
{
mount
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
Vue
from
'
vue
'
;
import
Vue
,
{
nextTick
}
from
'
vue
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
{
nextTick
}
from
'
vue
'
;
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
getPipelineDetails
from
'
shared_queries/pipelines/get_pipeline_details.query.graphql
'
;
...
...
spec/frontend/terraform/components/states_table_actions_spec.js
View file @
f10a86b1
import
{
GlDropdown
,
GlModal
,
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
Vue
from
'
vue
'
;
import
Vue
,
{
nextTick
}
from
'
vue
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
{
nextTick
}
from
'
vue
'
;
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
InitCommandModal
from
'
~/terraform/components/init_command_modal.vue
'
;
...
...
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