Fix gantt chart test
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
5c155431c8
commit
1b1b4f500e
|
@ -156,7 +156,7 @@ describe('Lists', () => {
|
||||||
TaskFactory.create(1)
|
TaskFactory.create(1)
|
||||||
cy.visit('/lists/1/gantt')
|
cy.visit('/lists/1/gantt')
|
||||||
|
|
||||||
cy.get('.gantt-chart-container .gantt-chart.box .tasks')
|
cy.get('.gantt-chart-container .gantt-chart .tasks')
|
||||||
.should('be.empty')
|
.should('be.empty')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ describe('Lists', () => {
|
||||||
const now = new Date()
|
const now = new Date()
|
||||||
cy.visit('/lists/1/gantt')
|
cy.visit('/lists/1/gantt')
|
||||||
|
|
||||||
cy.get('.gantt-chart-container .gantt-chart.box .months')
|
cy.get('.gantt-chart-container .gantt-chart .months')
|
||||||
.should('contain', format(now, 'MMMM'))
|
.should('contain', format(now, 'MMMM'))
|
||||||
.should('contain', format(now.setMonth(now.getMonth() + 1), 'MMMM'))
|
.should('contain', format(now.setMonth(now.getMonth() + 1), 'MMMM'))
|
||||||
})
|
})
|
||||||
|
@ -177,9 +177,9 @@ describe('Lists', () => {
|
||||||
})
|
})
|
||||||
cy.visit('/lists/1/gantt')
|
cy.visit('/lists/1/gantt')
|
||||||
|
|
||||||
cy.get('.gantt-chart-container .gantt-chart.box .tasks')
|
cy.get('.gantt-chart-container .gantt-chart .tasks')
|
||||||
.should('not.be.empty')
|
.should('not.be.empty')
|
||||||
cy.get('.gantt-chart-container .gantt-chart.box .tasks')
|
cy.get('.gantt-chart-container .gantt-chart .tasks')
|
||||||
.should('contain', tasks[0].title)
|
.should('contain', tasks[0].title)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -194,9 +194,9 @@ describe('Lists', () => {
|
||||||
.contains('Show tasks which don\'t have dates set')
|
.contains('Show tasks which don\'t have dates set')
|
||||||
.click()
|
.click()
|
||||||
|
|
||||||
cy.get('.gantt-chart-container .gantt-chart.box .tasks')
|
cy.get('.gantt-chart-container .gantt-chart .tasks')
|
||||||
.should('not.be.empty')
|
.should('not.be.empty')
|
||||||
cy.get('.gantt-chart-container .gantt-chart.box .tasks .task.nodate')
|
cy.get('.gantt-chart-container .gantt-chart .tasks .task.nodate')
|
||||||
.should('exist')
|
.should('exist')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ describe('Lists', () => {
|
||||||
})
|
})
|
||||||
cy.visit('/lists/1/gantt')
|
cy.visit('/lists/1/gantt')
|
||||||
|
|
||||||
cy.get('.gantt-chart-container .gantt-chart.box .tasks .task')
|
cy.get('.gantt-chart-container .gantt-chart .tasks .task')
|
||||||
.first()
|
.first()
|
||||||
.trigger('mousedown', {which: 1})
|
.trigger('mousedown', {which: 1})
|
||||||
.trigger('mousemove', {clientX: 500, clientY: 0})
|
.trigger('mousemove', {clientX: 500, clientY: 0})
|
||||||
|
|
|
@ -81,7 +81,7 @@ $filter-container-height: '1rem - #{$switch-view-height}';
|
||||||
font-size: .85rem;
|
font-size: .85rem;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
margin: 8px 0 0 0;
|
margin: 8px 0 0 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Reference in New Issue