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
af55b429
Commit
af55b429
authored
Jun 14, 2019
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update class names
parent
12a777b2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
app/assets/javascripts/jobs/components/job_log.vue
app/assets/javascripts/jobs/components/job_log.vue
+1
-1
lib/gitlab/ci/ansi2html.rb
lib/gitlab/ci/ansi2html.rb
+1
-1
spec/features/projects/jobs/user_browses_job_spec.rb
spec/features/projects/jobs/user_browses_job_spec.rb
+2
-2
spec/javascripts/jobs/components/job_log_spec.js
spec/javascripts/jobs/components/job_log_spec.js
+2
-2
spec/javascripts/jobs/mock_data.js
spec/javascripts/jobs/mock_data.js
+1
-1
No files found.
app/assets/javascripts/jobs/components/job_log.vue
View file @
af55b429
...
@@ -73,7 +73,7 @@ export default {
...
@@ -73,7 +73,7 @@ export default {
clickedArrow
.
classList
.
toggle
(
'
fa-caret-down
'
);
clickedArrow
.
classList
.
toggle
(
'
fa-caret-down
'
);
const
{
section
}
=
clickedArrow
.
dataset
;
const
{
section
}
=
clickedArrow
.
dataset
;
const
sibilings
=
this
.
$el
.
querySelectorAll
(
`.js-s
_
${
section
}
:not(.js-section-header)`
);
const
sibilings
=
this
.
$el
.
querySelectorAll
(
`.js-s
-
${
section
}
:not(.js-section-header)`
);
sibilings
.
forEach
(
row
=>
row
.
classList
.
toggle
(
'
hidden
'
));
sibilings
.
forEach
(
row
=>
row
.
classList
.
toggle
(
'
hidden
'
));
},
},
...
...
lib/gitlab/ci/ansi2html.rb
View file @
af55b429
...
@@ -309,7 +309,7 @@ module Gitlab
...
@@ -309,7 +309,7 @@ module Gitlab
if
@sections
.
any?
if
@sections
.
any?
css_classes
<<
"section"
css_classes
<<
"section"
css_classes
<<
"js-section-header"
if
@lineno_in_section
==
0
css_classes
<<
"js-section-header"
if
@lineno_in_section
==
0
css_classes
+=
sections
.
map
{
|
section
|
"js-s
_
#{
section
}
"
}
css_classes
+=
sections
.
map
{
|
section
|
"js-s
-
#{
section
}
"
}
end
end
@out
<<
%{<span class="#{css_classes.join(' ')}">}
@out
<<
%{<span class="#{css_classes.join(' ')}">}
...
...
spec/features/projects/jobs/user_browses_job_spec.rb
View file @
af55b429
...
@@ -42,12 +42,12 @@ describe 'User browses a job', :js do
...
@@ -42,12 +42,12 @@ describe 'User browses a job', :js do
text_to_hide
=
"Cloning into '/nolith/ci-tests'"
text_to_hide
=
"Cloning into '/nolith/ci-tests'"
expect
(
page
).
to
have_content
(
text_to_hide
)
expect
(
page
).
to
have_content
(
text_to_hide
)
expect
(
page
).
to
have_css
(
'.js-s
_
get-sources'
)
expect
(
page
).
to
have_css
(
'.js-s
-
get-sources'
)
find
(
'.js-section-start[data-section="get-sources"]'
).
click
find
(
'.js-section-start[data-section="get-sources"]'
).
click
expect
(
page
).
not_to
have_content
(
text_to_hide
)
expect
(
page
).
not_to
have_content
(
text_to_hide
)
expect
(
page
).
to
have_no_css
(
'.js-s
_
get-sources'
)
expect
(
page
).
to
have_no_css
(
'.js-s
-
get-sources'
)
end
end
end
end
...
...
spec/javascripts/jobs/components/job_log_spec.js
View file @
af55b429
...
@@ -85,13 +85,13 @@ describe('Job Log', () => {
...
@@ -85,13 +85,13 @@ describe('Job Log', () => {
const
{
section
}
=
vm
.
$el
.
querySelector
(
'
.js-section-start
'
).
dataset
;
const
{
section
}
=
vm
.
$el
.
querySelector
(
'
.js-section-start
'
).
dataset
;
vm
.
$el
.
querySelector
(
'
.js-section-start
'
).
click
();
vm
.
$el
.
querySelector
(
'
.js-section-start
'
).
click
();
vm
.
$el
.
querySelectorAll
(
`.js-s
_
${
section
}
:not(.js-section-header)`
).
forEach
(
el
=>
{
vm
.
$el
.
querySelectorAll
(
`.js-s
-
${
section
}
:not(.js-section-header)`
).
forEach
(
el
=>
{
expect
(
el
.
classList
.
contains
(
'
hidden
'
)).
toEqual
(
true
);
expect
(
el
.
classList
.
contains
(
'
hidden
'
)).
toEqual
(
true
);
});
});
vm
.
$el
.
querySelector
(
'
.js-section-start
'
).
click
();
vm
.
$el
.
querySelector
(
'
.js-section-start
'
).
click
();
vm
.
$el
.
querySelectorAll
(
`.js-s
_
${
section
}
:not(.js-section-header)`
).
forEach
(
el
=>
{
vm
.
$el
.
querySelectorAll
(
`.js-s
-
${
section
}
:not(.js-section-header)`
).
forEach
(
el
=>
{
expect
(
el
.
classList
.
contains
(
'
hidden
'
)).
toEqual
(
false
);
expect
(
el
.
classList
.
contains
(
'
hidden
'
)).
toEqual
(
false
);
});
});
})
})
...
...
spec/javascripts/jobs/mock_data.js
View file @
af55b429
...
@@ -1195,7 +1195,7 @@ export const logWithCollapsibleSections = {
...
@@ -1195,7 +1195,7 @@ export const logWithCollapsibleSections = {
append
:
false
,
append
:
false
,
complete
:
true
,
complete
:
true
,
html
:
html
:
'
<div class="js-section-start fa fa-caret-down append-right-8 cursor-pointer" data-timestamp="1559571405" data-section="after-script" role="button"></div><span class="term-fg-l-green term-bold section js-section-header js-s
_after-script">Running after script...</span><span class="section js-section-header js-s_after-script"><br /></span><span class="section s_after-script line"></span><span class="section js-s_after-script"></span><span class="term-fg-l-green term-bold section js-s_after-script">$ date</span><span class="section js-s_after-script"><br /></span><span class="section s_after-script line"></span><span class="section js-s_after-script">Mon Jun 3 14:16:46 UTC 2019<br /></span><span class="section s_after-script line"></span><span class="section js-s_after-script"></span><div class="section-end" data-section="after-script"></div><div class="js-section-start fa fa-caret-down append-right-8 cursor-pointer"data-timestamp="1559571408" data-section="archive-cache" role="button" ></div><span class="term-fg-l-green term-bold section js-section-header js-s_archive-cache">Not uploading cache debian-stretch-ruby-2.6.3-node-10.x-3 due to policy</span><span class="section js-section-header js-s_archive-cache"><br /></span><span class="section s_archive-cache line"></span><span class="section js-s_archive-cache"></span><div class="section-end" data-section="archive-cache"></div><div class="js-section-start fa fa-caret-down append-right-8 cursor-pointer" data-timestamp="1559571409" data-section="upload-artifacts-on-success" role="button"></div><span class="term-fg-l-green term-bold section js-section-header js-s_upload-artifacts-on-success">Uploading artifacts...</span><span class="section js-section-header js-s_upload-artifacts-on-success"><br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_upload-artifacts-on-success">coverage/: found 5 matching files </span><span class="section js-s_upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_upload-artifacts-on-success">knapsack/: found 4 matching files </span><span class="section js-s_upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_upload-artifacts-on-success">rspec_flaky/: found 4 matching files </span><span class="section js-s_upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_upload-artifacts-on-success">rspec_profiling/: found 1 matching files </span><span class="section js-s_upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_upload-artifacts-on-success"></span><span class="term-fg-yellow section js-s_upload-artifacts-on-success">WARNING: tmp/capybara/: no matching files </span><span class="section js-s_upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_upload-artifacts-on-success">Uploading artifacts to coordinator... ok </span><span class="section js-s_upload-artifacts-on-success"> id</span><span class="section js-s_upload-artifacts-on-success">=224162288 responseStatus</span><span class="section js-s_upload-artifacts-on-success">=201 Created token</span><span class="section js-s_upload-artifacts-on-success">=bBmyXJNW<br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_upload-artifacts-on-success"></span><span class="term-fg-l-green term-bold section js-s_upload-artifacts-on-success">Uploading artifacts...</span><span class="section js-s_upload-artifacts-on-success"><br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_upload-artifacts-on-success">junit_rspec.xml: found 1 matching files </span><span class="section js-s_upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_upload-artifacts-on-success">Uploading artifacts to coordinator... ok </span><span class="section js-s_upload-artifacts-on-success"> id</span><span class="section js-s_upload-artifacts-on-success">=224162288 responseStatus</span><span class="section js-s_upload-artifacts-on-success">=201 Created token</span><span class="section js-s_upload-artifacts-on-success">=bBmyXJNW<br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s_
upload-artifacts-on-success"></span><div class="section-end" data-section="upload-artifacts-on-success"></div><span class="term-fg-l-green term-bold">Job succeeded<br /><span class="term-fg-l-green term-bold"></span></span>
'
,
'
<div class="js-section-start fa fa-caret-down append-right-8 cursor-pointer" data-timestamp="1559571405" data-section="after-script" role="button"></div><span class="term-fg-l-green term-bold section js-section-header js-s
-after-script">Running after script...</span><span class="section js-section-header js-s-after-script"><br /></span><span class="section s_after-script line"></span><span class="section js-s-after-script"></span><span class="term-fg-l-green term-bold section js-s-after-script">$ date</span><span class="section js-s-after-script"><br /></span><span class="section s_after-script line"></span><span class="section js-s-after-script">Mon Jun 3 14:16:46 UTC 2019<br /></span><span class="section s_after-script line"></span><span class="section js-s-after-script"></span><div class="section-end" data-section="after-script"></div><div class="js-section-start fa fa-caret-down append-right-8 cursor-pointer"data-timestamp="1559571408" data-section="archive-cache" role="button" ></div><span class="term-fg-l-green term-bold section js-section-header js-s-archive-cache">Not uploading cache debian-stretch-ruby-2.6.3-node-10.x-3 due to policy</span><span class="section js-section-header js-s-archive-cache"><br /></span><span class="section s_archive-cache line"></span><span class="section js-s-archive-cache"></span><div class="section-end" data-section="archive-cache"></div><div class="js-section-start fa fa-caret-down append-right-8 cursor-pointer" data-timestamp="1559571409" data-section="upload-artifacts-on-success" role="button"></div><span class="term-fg-l-green term-bold section js-section-header js-s-upload-artifacts-on-success">Uploading artifacts...</span><span class="section js-section-header js-s-upload-artifacts-on-success"><br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-upload-artifacts-on-success">coverage/: found 5 matching files </span><span class="section js-s-upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-upload-artifacts-on-success">knapsack/: found 4 matching files </span><span class="section js-s-upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-upload-artifacts-on-success">rspec_flaky/: found 4 matching files </span><span class="section js-s-upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-upload-artifacts-on-success">rspec_profiling/: found 1 matching files </span><span class="section js-s-upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-upload-artifacts-on-success"></span><span class="term-fg-yellow section js-s-upload-artifacts-on-success">WARNING: tmp/capybara/: no matching files </span><span class="section js-s-upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-upload-artifacts-on-success">Uploading artifacts to coordinator... ok </span><span class="section js-s-upload-artifacts-on-success"> id</span><span class="section js-s-upload-artifacts-on-success">=224162288 responseStatus</span><span class="section js-s-upload-artifacts-on-success">=201 Created token</span><span class="section js-s-upload-artifacts-on-success">=bBmyXJNW<br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-upload-artifacts-on-success"></span><span class="term-fg-l-green term-bold section js-s-upload-artifacts-on-success">Uploading artifacts...</span><span class="section js-s-upload-artifacts-on-success"><br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-upload-artifacts-on-success">junit_rspec.xml: found 1 matching files </span><span class="section js-s-upload-artifacts-on-success"> <br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-upload-artifacts-on-success">Uploading artifacts to coordinator... ok </span><span class="section js-s-upload-artifacts-on-success"> id</span><span class="section js-s-upload-artifacts-on-success">=224162288 responseStatus</span><span class="section js-s-upload-artifacts-on-success">=201 Created token</span><span class="section js-s-upload-artifacts-on-success">=bBmyXJNW<br /></span><span class="section s_upload-artifacts-on-success line"></span><span class="section js-s-
upload-artifacts-on-success"></span><div class="section-end" data-section="upload-artifacts-on-success"></div><span class="term-fg-l-green term-bold">Job succeeded<br /><span class="term-fg-l-green term-bold"></span></span>
'
,
id
:
1385
,
id
:
1385
,
offset
:
0
,
offset
:
0
,
size
:
78815
,
size
:
78815
,
...
...
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