From 8b9e5e54af0f054541842928a2215161b6750167 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 11 Dec 2023 23:23:25 +0100 Subject: [PATCH] fix(test): use correct file input --- cypress/e2e/task/task.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/task/task.spec.ts b/cypress/e2e/task/task.spec.ts index 62f1b6129..57cc87d7b 100644 --- a/cypress/e2e/task/task.spec.ts +++ b/cypress/e2e/task/task.spec.ts @@ -36,7 +36,7 @@ function uploadAttachmentAndVerify(taskId: number) { cy.get('.task-view .action-buttons .button') .contains('Add Attachments') .click() - cy.get('input[type=file]', {timeout: 1000}) + cy.get('input[type=file]#files', {timeout: 1000}) .selectFile('cypress/fixtures/image.jpg', {force: true}) // The input is not visible, but on purpose cy.wait('@uploadAttachment') @@ -771,7 +771,7 @@ describe('Task', () => { .should('exist') }) - it('Can check items off a checklist', () => { + it.only('Can check items off a checklist', () => { const tasks = TaskFactory.create(1, { id: 1, description: `