diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-31 09:06:29 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-31 09:06:29 +0000 |
commit | 6026bddcd51eca573c530240c421392045172b89 (patch) | |
tree | 30cb1134ac00a336e6cfaa81bbafe6cd1360f58f /spec/frontend/jobs | |
parent | b7c776f95d5f41ac00986073563ad0c1de4bad44 (diff) | |
download | gitlab-ce-6026bddcd51eca573c530240c421392045172b89.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/jobs')
-rw-r--r-- | spec/frontend/jobs/components/log/log_spec.js | 4 | ||||
-rw-r--r-- | spec/frontend/jobs/store/utils_spec.js | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/spec/frontend/jobs/components/log/log_spec.js b/spec/frontend/jobs/components/log/log_spec.js index cc334009982..7c834542a9a 100644 --- a/spec/frontend/jobs/components/log/log_spec.js +++ b/spec/frontend/jobs/components/log/log_spec.js @@ -60,8 +60,8 @@ describe('Job Log', () => { expect(wrapper.find('.collapsible-line').attributes('role')).toBe('button'); }); - it('renders an icon with the closed state', () => { - expect(wrapper.find('.collapsible-line svg').classes()).toContain('ic-angle-right'); + it('renders an icon with the open state', () => { + expect(wrapper.find('.collapsible-line svg').classes()).toContain('ic-angle-down'); }); describe('on click header section', () => { diff --git a/spec/frontend/jobs/store/utils_spec.js b/spec/frontend/jobs/store/utils_spec.js index 43dacfe622c..8819f39dee0 100644 --- a/spec/frontend/jobs/store/utils_spec.js +++ b/spec/frontend/jobs/store/utils_spec.js @@ -26,7 +26,7 @@ describe('Jobs Store Utils', () => { const parsedHeaderLine = parseHeaderLine(headerLine, 2); expect(parsedHeaderLine).toEqual({ - isClosed: true, + isClosed: false, isHeader: true, line: { ...headerLine, @@ -57,7 +57,7 @@ describe('Jobs Store Utils', () => { it('adds the section duration to the correct header', () => { const parsed = [ { - isClosed: true, + isClosed: false, isHeader: true, line: { section: 'prepare-script', @@ -66,7 +66,7 @@ describe('Jobs Store Utils', () => { lines: [], }, { - isClosed: true, + isClosed: false, isHeader: true, line: { section: 'foo-bar', @@ -85,7 +85,7 @@ describe('Jobs Store Utils', () => { it('does not add the section duration when the headers do not match', () => { const parsed = [ { - isClosed: true, + isClosed: false, isHeader: true, line: { section: 'bar-foo', @@ -94,7 +94,7 @@ describe('Jobs Store Utils', () => { lines: [], }, { - isClosed: true, + isClosed: false, isHeader: true, line: { section: 'foo-bar', @@ -183,7 +183,7 @@ describe('Jobs Store Utils', () => { describe('collpasible section', () => { it('adds a `isClosed` property', () => { - expect(result[1].isClosed).toEqual(true); + expect(result[1].isClosed).toEqual(false); }); it('adds a `isHeader` property', () => { @@ -213,7 +213,7 @@ describe('Jobs Store Utils', () => { const existingLog = [ { isHeader: true, - isClosed: true, + isClosed: false, line: { content: [{ text: 'bar' }], offset: 10, lineNumber: 1 }, }, ]; @@ -263,7 +263,7 @@ describe('Jobs Store Utils', () => { const existingLog = [ { isHeader: true, - isClosed: true, + isClosed: false, lines: [{ offset: 101, content: [{ text: 'foobar' }], lineNumber: 2 }], line: { offset: 10, @@ -435,7 +435,7 @@ describe('Jobs Store Utils', () => { expect(result).toEqual([ { - isClosed: true, + isClosed: false, isHeader: true, line: { offset: 1, @@ -461,7 +461,7 @@ describe('Jobs Store Utils', () => { expect(result).toEqual([ { - isClosed: true, + isClosed: false, isHeader: true, line: { offset: 1, |