Commit f07cbee3 authored by Rajat Jain's avatar Rajat Jain

Fix pipelines jest tests

parent 11e18855
......@@ -102,7 +102,7 @@ export default {
</div>
</div>
<span>
{{ __('Opened') }}
{{ __('Created') }}
<time-ago-tooltip data-testid="startTimeItem" :time="createdAt" />
{{ __('by') }}
</span>
......
......@@ -131,7 +131,7 @@ exports[`MergeRequestTable component template matches the snapshot 1`] = `
</li>
<li>
opened 5 months ago
created 5 months ago
</li>
<li>
......
......@@ -43,12 +43,12 @@ export const devopsAdoptionTableHeaders = [
{
index: 3,
label: 'Issues',
tooltip: 'At least one issue opened',
tooltip: 'At least one issue created',
},
{
index: 4,
label: 'MRs',
tooltip: 'At least one merge request opened',
tooltip: 'At least one merge request created',
},
{
index: 5,
......
......@@ -83,8 +83,8 @@ describe('GroupActivity component', () => {
it.each`
index | value | title
${0} | ${10} | ${'Merge Requests opened'}
${1} | ${20} | ${'Issues opened'}
${0} | ${10} | ${'Merge Requests created'}
${1} | ${20} | ${'Issues created'}
${2} | ${30} | ${'Members added'}
`('renders a GlSingleStat for "$title"', async ({ index, value, title }) => {
const singleStat = findAllSingleStats().at(index);
......
......@@ -34,7 +34,7 @@ export const tableHeaders = [
'Weight',
'Due date',
'Assignees',
'Opened by',
'Created by',
];
export const endpoints = {
......
......@@ -214,13 +214,13 @@ describe('RelatedItemsTree', () => {
});
describe('stateText', () => {
it('returns string `Opened` when `item.state` value is `opened`', async () => {
it('returns string `Created` when `item.state` value is `created`', async () => {
wrapper.setProps({
item: { ...mockItem, state: ChildState.Open },
});
await nextTick();
expect(findIssueIcon().props('ariaLabel')).toBe('Opened');
expect(findIssueIcon().props('ariaLabel')).toBe('Created');
});
it('returns string `Closed` when `item.state` value is `closed`', async () => {
......
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