Skip to content

Broken master: gitlab svg path, test failing

We got a new failure:

FAIL ee/spec/frontend/vue_shared/security_reports/card_security_reports_app_spec.js
  ● Card security reports app › Headline renders › renders branch and commit information

    expect(received).toMatchSnapshot()

    Snapshot name: `Card security reports app Headline renders renders branch and commit information 1`

    - Snapshot
    + Received

    - "<span class="js-security-dashboard-right pull-right"><svg aria-hidden="true" class="s16 ic-branch"><use xlink:href="undefined#branch"></use></svg> <a href="http://test.host/branch" class="monospace">master</a> <span class="text-muted prepend-left-5 append-right-5">·</span> <svg aria-hidden="true" class="s16 ic-commit"><use xlink:href="undefined#commit"></use></svg> <a href="http://test.host/commit" class="monospace">1234adf</a></span>"
    + "<span class="js-security-dashboard-right pull-right"><svg aria-hidden="true" class="s16 ic-branch"><use xlink:href="#branch"></use></svg> <a href="http://test.host/branch" class="monospace">master</a> <span class="text-muted prepend-left-5 append-right-5">·</span> <svg aria-hidden="true" class="s16 ic-commit"><use xlink:href="#commit"></use></svg> <a href="http://test.host/commit" class="monospace">1234adf</a></span>"

      107 |     it('renders branch and commit information', () => {
      108 |       const revInformation = wrapper.find('.card-header .js-security-dashboard-right');
    > 109 |       expect(revInformation.html()).toMatchSnapshot();
          |                                     ^
      110 |     });
      111 |   });
      112 | 

      at Object.toMatchSnapshot (ee/spec/frontend/vue_shared/security_reports/card_security_reports_app_spec.js:109:37)

 › 1 snapshot failed.