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
4e6a3461
Commit
4e6a3461
authored
Apr 07, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test all code snippet sources
parent
c3555111
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spec/frontend/pipeline_editor/pipeline_editor_app_spec.js
spec/frontend/pipeline_editor/pipeline_editor_app_spec.js
+3
-2
No files found.
spec/frontend/pipeline_editor/pipeline_editor_app_spec.js
View file @
4e6a3461
...
...
@@ -6,6 +6,7 @@ import { TEST_HOST } from 'helpers/test_constants';
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
httpStatusCodes
from
'
~/lib/utils/http_status
'
;
import
CodeSnippetAlert
from
'
~/pipeline_editor/components/code_snippet_alert/code_snippet_alert.vue
'
;
import
{
CODE_SNIPPET_SOURCES
}
from
'
~/pipeline_editor/components/code_snippet_alert/constants
'
;
import
CommitForm
from
'
~/pipeline_editor/components/commit/commit_form.vue
'
;
import
TextEditor
from
'
~/pipeline_editor/components/editor/text_editor.vue
'
;
...
...
@@ -143,9 +144,9 @@ describe('Pipeline editor app component', () => {
expect
(
findCodeSnippetAlert
().
exists
()).
toBe
(
false
);
});
it
(
'
shows if URL param is set and supported, and cleans up URL
'
,
(
)
=>
{
it
.
each
(
CODE_SNIPPET_SOURCES
)(
'
shows if URL param is %s, and cleans up URL
'
,
(
source
)
=>
{
jest
.
spyOn
(
window
.
history
,
'
replaceState
'
);
setCodeSnippetUrlParam
(
'
api_fuzzing
'
);
setCodeSnippetUrlParam
(
source
);
createComponent
();
expect
(
findCodeSnippetAlert
().
exists
()).
toBe
(
true
);
...
...
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