Commit f07cbee3 authored by Rajat Jain's avatar Rajat Jain

Fix pipelines jest tests

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