Commit b85df409 authored by André Luís's avatar André Luís

Use gl-font-monospace and fix typo in changelog

parent 02bcb6b7
......@@ -46,7 +46,7 @@ export default {
rules: orderBy(
this.approvalRules
.filter(rule => rule.rule_type === RULE_TYPE_CODE_OWNER)
.map(rule => ({ ...rule, nameClass: 'monospace gl-word-break-all' })),
.map(rule => ({ ...rule, nameClass: 'gl-font-monospace gl-word-break-all' })),
[o => o.section === 'codeowners', 'name', 'section'],
['desc', 'asc', 'asc'],
),
......
---
title: Fix Approval Rules table in Merge Requests brusting out of the layout in some
title: Fix Approval Rules table in Merge Requests bursting out of the layout in some
scenarios
merge_request: 39753
author:
......
......@@ -99,7 +99,7 @@ RSpec.describe 'Merge request > User sees approval widget', :js do
click_on 'View eligible approvers'
wait_for_requests
within('.mr-widget-workflow table .monospace') do
within('.mr-widget-workflow table .gl-font-monospace') do
code_owner_row = find(:xpath, "//tr[td[contains(.,'#{code_owner_rule.name}')]]")
expect(code_owner_row).to have_content('Optional')
......@@ -123,7 +123,7 @@ RSpec.describe 'Merge request > User sees approval widget', :js do
click_on 'View eligible approvers'
wait_for_requests
within('.mr-widget-workflow table .monospace') do
within('.mr-widget-workflow table .gl-font-monospace') do
code_owner_row = find(:xpath, "//tr[td[contains(.,'#{code_owner_rule.name}')]]")
expect(code_owner_row).to have_content('0 of 1')
......
......@@ -350,7 +350,7 @@ describe('EE MRWidget approvals list', () => {
it('renders the name in a monospace font', () => {
const codeOwnerRow = findRowElement(row, 'name');
expect(codeOwnerRow.find('.monospace').exists()).toEqual(true);
expect(codeOwnerRow.find('.gl-font-monospace').exists()).toEqual(true);
expect(codeOwnerRow.text()).toContain(rule.name);
});
......
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