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
6f761edc
Commit
6f761edc
authored
Jan 02, 2020
by
Illya Klymov
Committed by
Martin Wortschack
Jan 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sync: false to entire codebase
This commit adds sync: false to our tests, preparing for VTU upgrade
parent
62052283
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
90 additions
and
35 deletions
+90
-35
ee/spec/frontend/design_management/router_spec.js
ee/spec/frontend/design_management/router_spec.js
+5
-4
ee/spec/frontend/environments_dashboard/components/dashboard_spec.js
...ntend/environments_dashboard/components/dashboard_spec.js
+4
-1
ee/spec/frontend/packages/details/components/maven_installation_spec.js
...nd/packages/details/components/maven_installation_spec.js
+4
-2
ee/spec/frontend/packages/details/components/npm_installation_spec.js
...tend/packages/details/components/npm_installation_spec.js
+4
-2
ee/spec/frontend/projects/merge_requests/blocking_mr_input_root_spec.js
...nd/projects/merge_requests/blocking_mr_input_root_spec.js
+9
-3
ee/spec/frontend/vue_shared/components/sidebar/epics_select/base_spec.js
...d/vue_shared/components/sidebar/epics_select/base_spec.js
+6
-2
spec/frontend/create_cluster/eks_cluster/components/cluster_form_dropdown_spec.js
...ster/eks_cluster/components/cluster_form_dropdown_spec.js
+3
-1
spec/frontend/create_cluster/eks_cluster/components/eks_cluster_configuration_form_spec.js
...cluster/components/eks_cluster_configuration_form_spec.js
+18
-6
spec/frontend/error_tracking_settings/components/app_spec.js
spec/frontend/error_tracking_settings/components/app_spec.js
+3
-1
spec/frontend/mr_popover/mr_popover_spec.js
spec/frontend/mr_popover/mr_popover_spec.js
+3
-1
spec/frontend/repository/components/last_commit_spec.js
spec/frontend/repository/components/last_commit_spec.js
+23
-9
spec/frontend/vue_shared/components/dropdown/dropdown_search_input_spec.js
..._shared/components/dropdown/dropdown_search_input_spec.js
+3
-1
spec/frontend/vue_shared/components/user_avatar/user_avatar_list_spec.js
...ue_shared/components/user_avatar/user_avatar_list_spec.js
+5
-2
No files found.
ee/spec/frontend/design_management/router_spec.js
View file @
6f761edc
...
...
@@ -70,10 +70,11 @@ describe('Design management router', () => {
it
(
'
pushes designs detail component
'
,
()
=>
{
router
.
push
(
'
/designs/1
'
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
const
detail
=
vm
.
find
(
DesignDetail
);
expect
(
detail
.
exists
()).
toBe
(
true
);
expect
(
detail
.
props
(
'
id
'
)).
toEqual
(
'
1
'
);
});
});
});
});
ee/spec/frontend/environments_dashboard/components/dashboard_spec.js
View file @
6f761edc
...
...
@@ -144,8 +144,11 @@ describe('dashboard', () => {
it
(
'
should get the page info from the state
'
,
()
=>
{
store
.
state
.
pageInfo
=
{
totalResults
:
100
};
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
wrapper
.
find
(
ProjectSelector
).
props
(
'
totalResults
'
)).
toBe
(
100
);
});
});
});
});
});
ee/spec/frontend/packages/details/components/maven_installation_spec.js
View file @
6f761edc
...
...
@@ -95,10 +95,12 @@ describe('MavenInstallation', () => {
it
(
'
should track when the setup tab is clicked
'
,
()
=>
{
setupTab
().
trigger
(
'
click
'
);
return
wrapper
.
vm
.
$nextTick
(()
=>
{
expect
(
eventSpy
).
toHaveBeenCalledWith
(
undefined
,
TrackingActions
.
REGISTRY_SETUP
,
{
label
,
});
});
});
it
(
'
should track when the installation tab is clicked
'
,
()
=>
{
setupTab
().
trigger
(
'
click
'
);
...
...
ee/spec/frontend/packages/details/components/npm_installation_spec.js
View file @
6f761edc
...
...
@@ -90,10 +90,12 @@ describe('NpmInstallation', () => {
it
(
'
should track when the setup tab is clicked
'
,
()
=>
{
setupTab
().
trigger
(
'
click
'
);
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
eventSpy
).
toHaveBeenCalledWith
(
undefined
,
TrackingActions
.
REGISTRY_SETUP
,
{
label
,
});
});
});
it
(
'
should track when the installation tab is clicked
'
,
()
=>
{
setupTab
().
trigger
(
'
click
'
);
...
...
ee/spec/frontend/projects/merge_requests/blocking_mr_input_root_spec.js
View file @
6f761edc
...
...
@@ -90,16 +90,20 @@ describe('blocking mr input root', () => {
createComponent
({
existingRefs
:
[
'
!1
'
]
});
removeRef
(
0
);
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expectShouldUpdateRefsToBe
(
true
);
});
});
it
(
'
is true after a ref is added
'
,
()
=>
{
createComponent
();
addTokenizedInput
(
'
foo
'
);
return
wrapper
.
vm
.
$nextTick
(()
=>
{
expectShouldUpdateRefsToBe
(
true
);
});
});
});
describe
(
'
remove_hidden_blocking_merge_requests
'
,
()
=>
{
const
expectRemoveHiddenBlockingMergeRequestsToBe
=
createHiddenInputExpectation
(
...
...
@@ -129,8 +133,10 @@ describe('blocking mr input root', () => {
makeComponentWithHiddenMrs
();
removeRef
(
2
);
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expectRemoveHiddenBlockingMergeRequestsToBe
(
true
);
});
});
});
});
});
ee/spec/frontend/vue_shared/components/sidebar/epics_select/base_spec.js
View file @
6f761edc
...
...
@@ -56,9 +56,11 @@ describe('EpicsSelect', () => {
issueId
:
123
,
});
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
wrapper
.
vm
.
$store
.
state
.
issueId
).
toBe
(
123
);
});
});
});
describe
(
'
initialEpic
'
,
()
=>
{
it
(
'
should update `selectedEpic` within state when prop is updated
'
,
()
=>
{
...
...
@@ -66,9 +68,11 @@ describe('EpicsSelect', () => {
initialEpic
:
mockEpic2
,
});
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
wrapper
.
vm
.
$store
.
state
.
selectedEpic
).
toBe
(
mockEpic2
);
});
});
});
describe
(
'
initialEpicLoading
'
,
()
=>
{
it
(
'
should update `selectedEpic` within state when prop is updated
'
,
()
=>
{
...
...
spec/frontend/create_cluster/eks_cluster/components/cluster_form_dropdown_spec.js
View file @
6f761edc
...
...
@@ -216,6 +216,8 @@ describe('ClusterFormDropdown', () => {
$
(
dropdownEl
).
trigger
(
'
shown.bs.dropdown
'
);
return
vm
.
vm
.
$nextTick
(()
=>
{
expect
(
vm
.
find
(
DropdownSearchInput
).
props
(
'
focused
'
)).
toBe
(
true
);
});
});
});
spec/frontend/create_cluster/eks_cluster/components/eks_cluster_configuration_form_spec.js
View file @
6f761edc
...
...
@@ -197,8 +197,10 @@ describe('EksClusterConfigurationForm', () => {
it
(
'
sets RoleDropdown hasErrors to true when loading roles failed
'
,
()
=>
{
rolesState
.
loadingItemsError
=
new
Error
();
return
Vue
.
nextTick
().
then
(()
=>
{
expect
(
findRoleDropdown
().
props
(
'
hasErrors
'
)).
toEqual
(
true
);
});
});
it
(
'
sets isLoadingRegions to RegionDropdown loading property
'
,
()
=>
{
regionsState
.
isLoadingItems
=
true
;
...
...
@@ -215,8 +217,10 @@ describe('EksClusterConfigurationForm', () => {
it
(
'
sets loadingRegionsError to RegionDropdown error property
'
,
()
=>
{
regionsState
.
loadingItemsError
=
new
Error
();
return
Vue
.
nextTick
().
then
(()
=>
{
expect
(
findRegionDropdown
().
props
(
'
hasErrors
'
)).
toEqual
(
true
);
});
});
it
(
'
disables KeyPairDropdown when no region is selected
'
,
()
=>
{
expect
(
findKeyPairDropdown
().
props
(
'
disabled
'
)).
toBe
(
true
);
...
...
@@ -245,8 +249,10 @@ describe('EksClusterConfigurationForm', () => {
it
(
'
sets KeyPairDropdown hasErrors to true when loading key pairs fails
'
,
()
=>
{
keyPairsState
.
loadingItemsError
=
new
Error
();
return
Vue
.
nextTick
().
then
(()
=>
{
expect
(
findKeyPairDropdown
().
props
(
'
hasErrors
'
)).
toEqual
(
true
);
});
});
it
(
'
disables VpcDropdown when no region is selected
'
,
()
=>
{
expect
(
findVpcDropdown
().
props
(
'
disabled
'
)).
toBe
(
true
);
...
...
@@ -275,8 +281,10 @@ describe('EksClusterConfigurationForm', () => {
it
(
'
sets VpcDropdown hasErrors to true when loading vpcs fails
'
,
()
=>
{
vpcsState
.
loadingItemsError
=
new
Error
();
return
Vue
.
nextTick
().
then
(()
=>
{
expect
(
findVpcDropdown
().
props
(
'
hasErrors
'
)).
toEqual
(
true
);
});
});
it
(
'
disables SubnetDropdown when no vpc is selected
'
,
()
=>
{
expect
(
findSubnetDropdown
().
props
(
'
disabled
'
)).
toBe
(
true
);
...
...
@@ -305,8 +313,10 @@ describe('EksClusterConfigurationForm', () => {
it
(
'
sets SubnetDropdown hasErrors to true when loading subnets fails
'
,
()
=>
{
subnetsState
.
loadingItemsError
=
new
Error
();
return
Vue
.
nextTick
().
then
(()
=>
{
expect
(
findSubnetDropdown
().
props
(
'
hasErrors
'
)).
toEqual
(
true
);
});
});
it
(
'
disables SecurityGroupDropdown when no vpc is selected
'
,
()
=>
{
expect
(
findSecurityGroupDropdown
().
props
(
'
disabled
'
)).
toBe
(
true
);
...
...
@@ -335,8 +345,10 @@ describe('EksClusterConfigurationForm', () => {
it
(
'
sets SecurityGroupDropdown hasErrors to true when loading security groups fails
'
,
()
=>
{
securityGroupsState
.
loadingItemsError
=
new
Error
();
return
Vue
.
nextTick
().
then
(()
=>
{
expect
(
findSecurityGroupDropdown
().
props
(
'
hasErrors
'
)).
toEqual
(
true
);
});
});
describe
(
'
when region is selected
'
,
()
=>
{
const
region
=
{
name
:
'
us-west-2
'
};
...
...
spec/frontend/error_tracking_settings/components/app_spec.js
View file @
6f761edc
...
...
@@ -57,7 +57,9 @@ describe('error tracking settings app', () => {
it
(
'
disables the button when saving
'
,
()
=>
{
store
.
state
.
settingsLoading
=
true
;
return
wrapper
.
vm
.
$nextTick
(()
=>
{
expect
(
wrapper
.
find
(
'
.js-error-tracking-button
'
).
attributes
(
'
disabled
'
)).
toBeTruthy
();
});
});
});
});
spec/frontend/mr_popover/mr_popover_spec.js
View file @
6f761edc
...
...
@@ -24,8 +24,10 @@ describe('MR Popover', () => {
it
(
'
shows skeleton-loader while apollo is loading
'
,
()
=>
{
wrapper
.
vm
.
$apollo
.
loading
=
true
;
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
wrapper
.
element
).
toMatchSnapshot
();
});
});
describe
(
'
loaded state
'
,
()
=>
{
it
(
'
matches the snapshot
'
,
()
=>
{
...
...
spec/frontend/repository/components/last_commit_spec.js
View file @
6f761edc
...
...
@@ -66,40 +66,52 @@ describe('Repository last commit component', () => {
it
(
'
renders commit widget
'
,
()
=>
{
factory
();
return
vm
.
vm
.
$nextTick
(()
=>
{
expect
(
vm
.
element
).
toMatchSnapshot
();
});
});
it
(
'
renders short commit ID
'
,
()
=>
{
factory
();
return
vm
.
vm
.
$nextTick
(()
=>
{
expect
(
vm
.
find
(
'
.label-monospace
'
).
text
()).
toEqual
(
'
12345678
'
);
});
});
it
(
'
hides pipeline components when pipeline does not exist
'
,
()
=>
{
factory
(
createCommitData
({
pipeline
:
null
}));
return
vm
.
vm
.
$nextTick
(()
=>
{
expect
(
vm
.
find
(
'
.js-commit-pipeline
'
).
exists
()).
toBe
(
false
);
});
});
it
(
'
renders pipeline components
'
,
()
=>
{
factory
();
return
vm
.
vm
.
$nextTick
(()
=>
{
expect
(
vm
.
find
(
'
.js-commit-pipeline
'
).
exists
()).
toBe
(
true
);
});
});
it
(
'
hides author component when author does not exist
'
,
()
=>
{
factory
(
createCommitData
({
author
:
null
}));
return
vm
.
vm
.
$nextTick
(()
=>
{
expect
(
vm
.
find
(
'
.js-user-link
'
).
exists
()).
toBe
(
false
);
expect
(
vm
.
find
(
UserAvatarLink
).
exists
()).
toBe
(
false
);
});
});
it
(
'
does not render description expander when description is null
'
,
()
=>
{
factory
(
createCommitData
({
description
:
null
}));
return
vm
.
vm
.
$nextTick
(()
=>
{
expect
(
vm
.
find
(
'
.text-expander
'
).
exists
()).
toBe
(
false
);
expect
(
vm
.
find
(
'
.commit-row-description
'
).
exists
()).
toBe
(
false
);
});
});
it
(
'
expands commit description when clicking expander
'
,
()
=>
{
factory
(
createCommitData
({
description
:
'
Test description
'
}));
...
...
@@ -113,6 +125,8 @@ describe('Repository last commit component', () => {
it
(
'
renders the signature HTML as returned by the backend
'
,
()
=>
{
factory
(
createCommitData
({
signatureHtml
:
'
<button>Verified</button>
'
}));
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
element
).
toMatchSnapshot
();
});
});
});
spec/frontend/vue_shared/components/dropdown/dropdown_search_input_spec.js
View file @
6f761edc
...
...
@@ -49,7 +49,9 @@ describe('DropdownSearchInputComponent', () => {
wrapper
.
setProps
({
focused
:
true
});
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
inputEl
.
focus
).
toHaveBeenCalled
();
});
});
});
});
spec/frontend/vue_shared/components/user_avatar/user_avatar_list_spec.js
View file @
6f761edc
...
...
@@ -147,10 +147,13 @@ describe('UserAvatarList', () => {
it
(
'
with collapse clicked, it renders avatars up to breakpoint
'
,
()
=>
{
clickButton
();
return
wrapper
.
vm
.
$nextTick
(()
=>
{
const
links
=
wrapper
.
findAll
(
UserAvatarLink
);
expect
(
links
.
length
).
toEqual
(
TEST_BREAKPOINT
);
});
});
});
});
});
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