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
dbff1e77
Commit
dbff1e77
authored
May 04, 2021
by
mgandres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant spec for pipeline editor refetch
parent
3feab2e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
26 deletions
+1
-26
app/assets/javascripts/pipeline_editor/components/ui/pipeline_editor_empty_state.vue
...line_editor/components/ui/pipeline_editor_empty_state.vue
+1
-1
spec/frontend/pipeline_editor/pipeline_editor_app_spec.js
spec/frontend/pipeline_editor/pipeline_editor_app_spec.js
+0
-25
No files found.
app/assets/javascripts/pipeline_editor/components/ui/pipeline_editor_empty_state.vue
View file @
dbff1e77
<
script
>
import
{
GlButton
,
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
__
}
from
'
~/locale
'
;
import
glFeatureFlagsMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
PipelineEditorFileNav
from
'
~/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue
'
;
import
glFeatureFlagsMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
export
default
{
components
:
{
...
...
spec/frontend/pipeline_editor/pipeline_editor_app_spec.js
View file @
dbff1e77
...
...
@@ -331,30 +331,5 @@ describe('Pipeline editor app component', () => {
expect
(
findEmptyState
().
exists
()).
toBe
(
false
);
expect
(
findEditorHome
().
exists
()).
toBe
(
true
);
});
it
(
'
shows start screen when refetch does not fetch CI file
'
,
async
()
=>
{
mockBlobContentData
.
mockResolvedValue
(
mockCiYml
);
await
createComponentWithApollo
();
expect
(
findEmptyState
().
exists
()).
toBe
(
false
);
expect
(
findEditorHome
().
exists
()).
toBe
(
true
);
mockBlobContentData
.
mockRejectedValue
({
response
:
{
status
:
httpStatusCodes
.
NOT_FOUND
,
},
});
await
wrapper
.
vm
.
$apollo
.
queries
.
initialCiFileContent
.
refetch
();
await
wrapper
.
vm
.
handleBlobContentError
({
networkError
:
{
response
:
{
status
:
httpStatusCodes
.
NOT_FOUND
,
},
},
});
expect
(
findEmptyState
().
exists
()).
toBe
(
true
);
expect
(
findEditorHome
().
exists
()).
toBe
(
false
);
});
});
});
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