Make tests less flaky

This commit is contained in:
kolaente 2021-05-30 21:40:56 +02:00
parent 1969bd8190
commit 9c2d076f58
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 5 additions and 1 deletions

View file

@ -95,7 +95,7 @@ steps:
CYPRESS_TEST_SECRET: averyLongSecretToSe33dtheDB CYPRESS_TEST_SECRET: averyLongSecretToSe33dtheDB
YARN_CACHE_FOLDER: .cache/yarn/ YARN_CACHE_FOLDER: .cache/yarn/
CYPRESS_CACHE_FOLDER: .cache/cypress/ CYPRESS_CACHE_FOLDER: .cache/cypress/
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 10000 CYPRESS_DEFAULT_COMMAND_TIMEOUT: 60000
commands: commands:
- sed -i 's/localhost/api/g' public/index.html - sed -i 's/localhost/api/g' public/index.html
- yarn serve & npx wait-on http://localhost:8080 - yarn serve & npx wait-on http://localhost:8080

View file

@ -11,6 +11,7 @@ import '../../support/authenticateUser'
import {TaskAssigneeFactory} from '../../factories/task_assignee' import {TaskAssigneeFactory} from '../../factories/task_assignee'
import {LabelFactory} from '../../factories/labels' import {LabelFactory} from '../../factories/labels'
import {LabelTaskFactory} from '../../factories/label_task' import {LabelTaskFactory} from '../../factories/label_task'
import {BucketFactory} from '../../factories/bucket'
describe('Task', () => { describe('Task', () => {
let namespaces let namespaces
@ -195,6 +196,9 @@ describe('Task', () => {
it('Can move a task to another list', () => { it('Can move a task to another list', () => {
const lists = ListFactory.create(2) const lists = ListFactory.create(2)
BucketFactory.create(2, {
list_id: '{increment}'
})
const tasks = TaskFactory.create(1, { const tasks = TaskFactory.create(1, {
id: 1, id: 1,
list_id: lists[0].id, list_id: lists[0].id,