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
0ca055cc
Commit
0ca055cc
authored
Dec 03, 2021
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests for 'Duration' label change
parent
3c9916bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
spec/frontend/jobs/components/job_sidebar_details_container_spec.js
...end/jobs/components/job_sidebar_details_container_spec.js
+10
-1
No files found.
spec/frontend/jobs/components/job_sidebar_details_container_spec.js
View file @
0ca055cc
...
...
@@ -56,7 +56,7 @@ describe('Job Sidebar Details Container', () => {
beforeEach
(
createWrapper
);
it
.
each
([
[
'
duration
'
,
'
Duration
: 6 seconds
'
],
[
'
duration
'
,
'
Elapsed time
: 6 seconds
'
],
[
'
erased_at
'
,
'
Erased: 3 weeks ago
'
],
[
'
finished_at
'
,
'
Finished: 3 weeks ago
'
],
[
'
queued
'
,
'
Queued: 9 seconds
'
],
...
...
@@ -86,6 +86,15 @@ describe('Job Sidebar Details Container', () => {
expect
(
findAllDetailsRow
()).
toHaveLength
(
7
);
});
describe
(
'
duration row
'
,
()
=>
{
it
(
'
renders all the details components
'
,
async
()
=>
{
createWrapper
();
await
store
.
dispatch
(
'
receiveJobSuccess
'
,
job
);
expect
(
findAllDetailsRow
().
at
(
0
).
text
()).
toBe
(
'
Duration: 6 seconds
'
);
});
});
});
describe
(
'
timeout
'
,
()
=>
{
...
...
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