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
bb1e4e2e
Commit
bb1e4e2e
authored
Jul 22, 2020
by
Tom Quirk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test lfs setting is unaffected by repo setting
parent
1bc16cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
spec/frontend/pages/projects/shared/permissions/components/settings_panel_spec.js
...ects/shared/permissions/components/settings_panel_spec.js
+15
-2
No files found.
spec/frontend/pages/projects/shared/permissions/components/settings_panel_spec.js
View file @
bb1e4e2e
...
@@ -303,6 +303,8 @@ describe('Settings Panel', () => {
...
@@ -303,6 +303,8 @@ describe('Settings Panel', () => {
});
});
describe
(
'
Git Large File Storage
'
,
()
=>
{
describe
(
'
Git Large File Storage
'
,
()
=>
{
const
findLfsFeatureToggle
=
()
=>
wrapper
.
find
(
'
[name="project[lfs_enabled]"]
'
);
it
(
'
should show the LFS settings if LFS is available
'
,
()
=>
{
it
(
'
should show the LFS settings if LFS is available
'
,
()
=>
{
wrapper
.
setProps
({
lfsAvailable
:
true
});
wrapper
.
setProps
({
lfsAvailable
:
true
});
...
@@ -331,7 +333,7 @@ describe('Settings Panel', () => {
...
@@ -331,7 +333,7 @@ describe('Settings Panel', () => {
{
lfsAvailable
:
true
},
{
lfsAvailable
:
true
},
);
);
expect
(
wrapper
.
find
(
'
[name="project[lfs_enabled]"]
'
).
props
().
disabledInput
).
toEqual
(
false
);
expect
(
findLfsFeatureToggle
(
).
props
().
disabledInput
).
toEqual
(
false
);
});
});
it
(
'
should disable the LFS input when the repository is disabled
'
,
()
=>
{
it
(
'
should disable the LFS input when the repository is disabled
'
,
()
=>
{
...
@@ -340,7 +342,18 @@ describe('Settings Panel', () => {
...
@@ -340,7 +342,18 @@ describe('Settings Panel', () => {
{
lfsAvailable
:
true
},
{
lfsAvailable
:
true
},
);
);
expect
(
wrapper
.
find
(
'
[name="project[lfs_enabled]"]
'
).
props
().
disabledInput
).
toEqual
(
true
);
expect
(
findLfsFeatureToggle
().
props
().
disabledInput
).
toEqual
(
true
);
});
it
(
'
should not change lfsEnabled when disabling the repository
'
,
async
()
=>
{
const
lfsSettingElem
=
findLfsFeatureToggle
();
expect
(
lfsSettingElem
.
props
().
value
).
toEqual
(
true
);
wrapper
.
setData
({
repositoryAccessLevel
:
featureAccessLevel
.
NOT_ENABLED
});
await
wrapper
.
vm
.
$nextTick
();
// value should not change
expect
(
lfsSettingElem
.
props
().
value
).
toEqual
(
true
);
});
});
describe
.
each
`
describe
.
each
`
...
...
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