Commit 751851ee authored by Phil Hughes's avatar Phil Hughes

Merge branch '281727-feature-flag-rollout-of-ci_job_line_links' into 'master'

Autogenerated links in logs keep same color of text

See merge request gitlab-org/gitlab!47853
parents bb1bc271 8a66d605
......@@ -38,6 +38,7 @@ export default {
{
attrs: {
href: chunk,
class: 'gl-reset-color! gl-text-decoration-underline',
rel: 'nofollow noopener noreferrer', // eslint-disable-line @gitlab/require-i18n-strings
},
},
......
......@@ -131,6 +131,12 @@ describe('Job Log Line', () => {
expect(findLink().attributes().rel).toBe('nofollow noopener noreferrer');
});
it('renders a link with corresponding styles', () => {
createComponent(mockProps({ text: httpsUrl }));
expect(findLink().classes()).toEqual(['gl-reset-color!', 'gl-text-decoration-underline']);
});
it('render links surrounded by text', () => {
createComponent(
mockProps({ text: `My HTTP url: ${httpUrl} and my HTTPS url: ${httpsUrl} are here.` }),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment