diff --git a/cypress/e2e/list/list-view-list.spec.ts b/cypress/e2e/list/list-view-list.spec.ts index 7a856434..c637cc23 100644 --- a/cypress/e2e/list/list-view-list.spec.ts +++ b/cypress/e2e/list/list-view-list.spec.ts @@ -91,7 +91,9 @@ describe('List View List', () => { cy.visit('/lists/1/list') cy.get('.tasks-container .tasks') - .should('contain', tasks[99].title) + .should('contain', tasks[1].title) + cy.get('.tasks-container .tasks') + .should('not.contain', tasks[99].title) cy.get('.card-content .pagination .pagination-link') .contains('2') @@ -100,8 +102,8 @@ describe('List View List', () => { cy.url() .should('contain', '?page=2') cy.get('.tasks-container .tasks') - .should('contain', tasks[1].title) + .should('contain', tasks[99].title) cy.get('.tasks-container .tasks') - .should('not.contain', tasks[99].title) + .should('not.contain', tasks[1].title) }) }) \ No newline at end of file diff --git a/cypress/factories/task.ts b/cypress/factories/task.ts index febc01da..46c8e865 100644 --- a/cypress/factories/task.ts +++ b/cypress/factories/task.ts @@ -15,6 +15,7 @@ export class TaskFactory extends Factory { list_id: 1, created_by_id: 1, index: '{increment}', + position: '{increment}', created: formatISO(now), updated: formatISO(now) }