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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
c63afd30
Commit
c63afd30
authored
Mar 07, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken tests
parent
318aeffc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
spec/javascripts/pipelines/nav_controls_spec.js
spec/javascripts/pipelines/nav_controls_spec.js
+2
-2
spec/javascripts/pipelines/pipelines_spec.js
spec/javascripts/pipelines/pipelines_spec.js
+7
-7
No files found.
spec/javascripts/pipelines/nav_controls_spec.js
View file @
c63afd30
...
...
@@ -69,11 +69,11 @@ describe('Pipelines Nav Controls', () => {
});
it
(
'
should emit postAction event when reset runner cache button is clicked
'
,
()
=>
{
spyOn
(
component
,
'
$
on
'
);
spyOn
(
component
,
'
$
emit
'
);
component
.
$el
.
querySelector
(
'
.js-clear-cache
'
).
click
();
expect
(
component
.
$
on
).
toHaveBeenCalledWith
(
'
postAction
'
,
'
foo
'
);
expect
(
component
.
$
emit
).
toHaveBeenCalledWith
(
'
resetRunnersCache
'
,
'
foo
'
);
});
});
});
spec/javascripts/pipelines/pipelines_spec.js
View file @
c63afd30
...
...
@@ -95,16 +95,16 @@ describe('Pipelines', () => {
expect
(
vm
.
$el
.
querySelector
(
'
.js-pipelines-tab-all
'
).
textContent
.
trim
()).
toContain
(
'
All
'
);
});
it
(
'
renders Run Pipeline
button
'
,
()
=>
{
it
(
'
renders Run Pipeline
link
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.js-run-pipeline
'
).
getAttribute
(
'
href
'
)).
toEqual
(
paths
.
newPipelinePath
);
});
it
(
'
renders CI Lint
button
'
,
()
=>
{
it
(
'
renders CI Lint
link
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.js-ci-lint
'
).
getAttribute
(
'
href
'
)).
toEqual
(
paths
.
ciLintPath
);
});
it
(
'
renders Clear Runner Cache button
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.js-clear-cache
'
).
getAttribute
(
'
href
'
)).
toEqual
(
paths
.
resetCachePath
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-clear-cache
'
).
textContent
.
trim
()).
toEqual
(
'
Clear Runner Caches
'
);
});
it
(
'
renders pipelines table
'
,
()
=>
{
...
...
@@ -139,16 +139,16 @@ describe('Pipelines', () => {
expect
(
vm
.
$el
.
querySelector
(
'
.js-pipelines-tab-all
'
).
textContent
.
trim
()).
toContain
(
'
All
'
);
});
it
(
'
renders Run Pipeline
button
'
,
()
=>
{
it
(
'
renders Run Pipeline
link
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.js-run-pipeline
'
).
getAttribute
(
'
href
'
)).
toEqual
(
paths
.
newPipelinePath
);
});
it
(
'
renders CI Lint
button
'
,
()
=>
{
it
(
'
renders CI Lint
link
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.js-ci-lint
'
).
getAttribute
(
'
href
'
)).
toEqual
(
paths
.
ciLintPath
);
});
it
(
'
renders Clear Runner Cache button
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.js-clear-cache
'
).
getAttribute
(
'
href
'
)).
toEqual
(
paths
.
resetCachePath
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-clear-cache
'
).
textContent
.
trim
()).
toEqual
(
'
Clear Runner Caches
'
);
});
it
(
'
renders tab empty state
'
,
()
=>
{
...
...
@@ -218,7 +218,7 @@ describe('Pipelines', () => {
it
(
'
renders buttons
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.js-run-pipeline
'
).
getAttribute
(
'
href
'
)).
toEqual
(
paths
.
newPipelinePath
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-ci-lint
'
).
getAttribute
(
'
href
'
)).
toEqual
(
paths
.
ciLintPath
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-clear-cache
'
).
getAttribute
(
'
href
'
)).
toEqual
(
paths
.
resetCachePath
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-clear-cache
'
).
textContent
.
trim
()).
toEqual
(
'
Clear Runner Caches
'
);
});
it
(
'
renders error state
'
,
()
=>
{
...
...
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