Skip to content

Commit 7709b1a

Browse files
Merge pull request #1266 from hjoliver/tweak-table-header
Minor tweaks to table header.
2 parents 968affd + ab4470f commit 7709b1a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/components/cylc/table/Table.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export default {
219219
sort: (a, b) => DEFAULT_COMPARATOR(a ?? '', b ?? '')
220220
},
221221
{
222-
text: 'Job System',
222+
text: 'Job Runner',
223223
value: 'latestJob.node.jobRunnerName',
224224
sort: (a, b) => DEFAULT_COMPARATOR(a ?? '', b ?? '')
225225
},
@@ -229,22 +229,22 @@ export default {
229229
sort: (a, b) => DEFAULT_COMPARATOR(a ?? '', b ?? '')
230230
},
231231
{
232-
text: 'T-submit',
232+
text: 'Submit',
233233
value: 'latestJob.node.submittedTime',
234234
sort: (a, b) => datetimeComparator(a ?? '', b ?? '')
235235
},
236236
{
237-
text: 'T-start',
237+
text: 'Start',
238238
value: 'latestJob.node.startedTime',
239239
sort: (a, b) => datetimeComparator(a ?? '', b ?? '')
240240
},
241241
{
242-
text: 'T-finish',
242+
text: 'Finish',
243243
value: 'latestJob.node.finishedTime',
244244
sort: (a, b) => datetimeComparator(a ?? '', b ?? '')
245245
},
246246
{
247-
text: 'dT-mean',
247+
text: 'Run Time',
248248
value: 'task.node.task.meanElapsedTime',
249249
sort: (a, b) => parseInt(a ?? 0) - parseInt(b ?? 0)
250250
}

tests/e2e/specs/table.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ describe('Table view', () => {
115115
.contains('eventually')
116116
.should('be.visible')
117117
})
118-
it('displays and sorts dt-mean', () => {
118+
it('displays and sorts mean run time', () => {
119119
cy.visit('/#/table/one')
120120

121121
cy
122122
// sort dt-mean ascending
123-
.get('[aria-label="dT-mean: Not sorted. Activate to sort ascending."] > :nth-child(1)')
123+
.get('[aria-label="Run Time: Not sorted. Activate to sort ascending."] > :nth-child(1)')
124124
.click({ force: true })
125125

126126
// check 0 is at the top (1st row, 10th column)
@@ -129,7 +129,7 @@ describe('Table view', () => {
129129
expect($ele.text().trim()).equal('') // no value sorted first
130130
})
131131

132-
// sort ft-mean descending
132+
// sort dt-mean descending
133133
.get('.asc > .v-icon > .v-icon__svg > path')
134134
.click({ force: true })
135135

0 commit comments

Comments
 (0)