Commit cba38901 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Fixing tests

parent 73dbc288
Pipeline #4501 passed with stages
in 6 minutes and 32 seconds
......@@ -18,7 +18,7 @@ describe('TaskView', () => {
store.dispatch('setTask', {taskID: 1, taskName: 'A', taskState: 'SUBMITTED'})
store.dispatch('setTask', {taskID: 2, taskName: 'B', taskState: 'SUCCESS'})
store.dispatch('setTask', {taskID: 3, taskName: 'C', taskState: 'SUBMITTED'})
store.dispatch('setTask', {taskID: 4, taskName: 'D', taskState: 'FAILED'})
store.dispatch('setTask', {taskID: 4, taskName: 'D', taskState: 'FAILURE'})
store.dispatch('setTask', {taskID: 5, taskName: 'E', taskState: 'YAY'})
store.dispatch('setTask', {taskID: 6, taskName: 'F', taskState: 'PENDING'})
Vue.nextTick(() => {
......@@ -32,7 +32,7 @@ describe('TaskView', () => {
it('cancel button works', () => {
store.dispatch('setTask', {taskID: 1, taskName: 'A', taskState: 'SUBMITTED'})
store.dispatch('setTask', {taskID: 2, taskName: 'B', taskState: 'FAILED'})
store.dispatch('setTask', {taskID: 2, taskName: 'B', taskState: 'FAILURE'})
Vue.nextTick(() => {
expect(Object.keys(store.getters.tasks).length).toBe(2)
expect(vm.$el.querySelectorAll('.fjs-state-container').length).toBe(2)
......
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