From 9c2d076f58f5fa250ce8a71b10d88f24032b8b3d Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 30 May 2021 21:40:56 +0200 Subject: [PATCH] Make tests less flaky --- .drone.yml | 2 +- cypress/integration/task/task.spec.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index aad7f66e..57ca9a52 100644 --- a/.drone.yml +++ b/.drone.yml @@ -95,7 +95,7 @@ steps: CYPRESS_TEST_SECRET: averyLongSecretToSe33dtheDB YARN_CACHE_FOLDER: .cache/yarn/ CYPRESS_CACHE_FOLDER: .cache/cypress/ - CYPRESS_DEFAULT_COMMAND_TIMEOUT: 10000 + CYPRESS_DEFAULT_COMMAND_TIMEOUT: 60000 commands: - sed -i 's/localhost/api/g' public/index.html - yarn serve & npx wait-on http://localhost:8080 diff --git a/cypress/integration/task/task.spec.js b/cypress/integration/task/task.spec.js index 34967d10..be95a475 100644 --- a/cypress/integration/task/task.spec.js +++ b/cypress/integration/task/task.spec.js @@ -11,6 +11,7 @@ import '../../support/authenticateUser' import {TaskAssigneeFactory} from '../../factories/task_assignee' import {LabelFactory} from '../../factories/labels' import {LabelTaskFactory} from '../../factories/label_task' +import {BucketFactory} from '../../factories/bucket' describe('Task', () => { let namespaces @@ -195,6 +196,9 @@ describe('Task', () => { it('Can move a task to another list', () => { const lists = ListFactory.create(2) + BucketFactory.create(2, { + list_id: '{increment}' + }) const tasks = TaskFactory.create(1, { id: 1, list_id: lists[0].id,