diff options
Diffstat (limited to 'spec/frontend/jobs/components/log/mock_data.js')
-rw-r--r-- | spec/frontend/jobs/components/log/mock_data.js | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/spec/frontend/jobs/components/log/mock_data.js b/spec/frontend/jobs/components/log/mock_data.js index db42644de77..0dae306dcc7 100644 --- a/spec/frontend/jobs/components/log/mock_data.js +++ b/spec/frontend/jobs/components/log/mock_data.js @@ -150,3 +150,73 @@ export const collapsibleTraceIncremental = [ sections: ['section'], }, ]; + +export const nestedSectionClosed = { + offset: 5, + section_header: true, + isHeader: true, + isClosed: true, + line: { + content: [{ text: 'foo' }], + sections: ['prepare-script'], + lineNumber: 1, + }, + section_duration: '00:03', + lines: [ + { + section_header: true, + section_duration: '00:02', + isHeader: true, + isClosed: true, + line: { + offset: 52, + content: [{ text: 'bar' }], + sections: ['prepare-script', 'prepare-script-nested'], + lineNumber: 2, + }, + lines: [ + { + offset: 80, + content: [{ text: 'this is a collapsible nested section' }], + sections: ['prepare-script', 'prepare-script-nested'], + lineNumber: 3, + }, + ], + }, + ], +}; + +export const nestedSectionOpened = { + offset: 5, + section_header: true, + isHeader: true, + isClosed: false, + line: { + content: [{ text: 'foo' }], + sections: ['prepare-script'], + lineNumber: 1, + }, + section_duration: '00:03', + lines: [ + { + section_header: true, + section_duration: '00:02', + isHeader: true, + isClosed: false, + line: { + offset: 52, + content: [{ text: 'bar' }], + sections: ['prepare-script', 'prepare-script-nested'], + lineNumber: 2, + }, + lines: [ + { + offset: 80, + content: [{ text: 'this is a collapsible nested section' }], + sections: ['prepare-script', 'prepare-script-nested'], + lineNumber: 3, + }, + ], + }, + ], +}; |