Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronDCole committed Dec 1, 2021
1 parent c1779cc commit 0013132
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
12 changes: 0 additions & 12 deletions tests/e2e/specs/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ describe('Table view', () => {
cy
.get('#c-table-filter-task-name')
.type('eep')
cy
.get('#c-table-filter-btn')
.click()
cy
.get('td > div.d-flex > div')
.contains('sleepy')
Expand All @@ -85,9 +82,6 @@ describe('Table view', () => {
.get('.v-list-item')
.contains(TaskState.RUNNING.name)
.click({ force: true })
cy
.get('#c-table-filter-btn')
.click({ force: true })
cy
.get('td > div.d-flex > div')
.contains('checkpoint')
Expand All @@ -110,19 +104,13 @@ describe('Table view', () => {
.get('.v-list-item')
.contains(TaskState.SUBMITTED.name)
.click({ force: true })
cy
.get('#c-table-filter-btn')
.click({ force: true })
cy
.get('.c-table table > tbody > tr')
.should('have.length', 3)
.should('be.visible')
cy
.get('#c-table-filter-task-name')
.type(TaskState.FAILED.name)
cy
.get('#c-table-filter-btn')
.click()
cy
.get('td > div.d-flex > div')
.contains(TaskState.FAILED.name)
Expand Down
6 changes: 4 additions & 2 deletions tests/unit/components/cylc/table/deltas.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ describe('Deltas', () => {
firstParent: {
id: i
}
}
},
jobs: []
}
})
})
Expand Down Expand Up @@ -314,7 +315,8 @@ describe('Deltas', () => {
table[i] = {
id: i,
node: taskProxy,
latestJob: job
latestJob: job,
jobs: []
}
})
})
Expand Down
9 changes: 6 additions & 3 deletions tests/unit/components/cylc/table/table.data.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ const simpleTableTasks = [
startedTime: new Date(),
finishedTime: null,
state: JobState.RUNNING.name
}
},
jobs: []
},
{
id: `${BASE_ID}|taskB`,
Expand All @@ -45,7 +46,8 @@ const simpleTableTasks = [
state: TaskState.WAITING.name,
name: 'taskB'
},
latestJob: {}
latestJob: {},
jobs: []
},
{
id: `${BASE_ID}|taskC`,
Expand All @@ -54,7 +56,8 @@ const simpleTableTasks = [
state: TaskState.SUBMITTED.name,
name: 'taskC'
},
latestJob: {}
latestJob: {},
jobs: []
}
]

Expand Down

0 comments on commit 0013132

Please sign in to comment.