diff --git a/index.e2e.spec.ts b/index.e2e.spec.ts index c346ce8f..f44b4ac9 100644 --- a/index.e2e.spec.ts +++ b/index.e2e.spec.ts @@ -78,7 +78,7 @@ describe("E2E drag & drop demo", () => { await mouse.drag(down(500)); await mouse.move(right(100)); await mouse.leftClick(); - const dest = await screen.find("moved_trash.png"); + const dest = await screen.waitFor("moved_trash.png"); expect(Math.abs(dest.left - expected.left)).toBeLessThanOrEqual(maxDiff); expect(Math.abs(dest.top - expected.top)).toBeLessThanOrEqual(maxDiff); expect(Math.abs(dest.width - expected.width)).toBeLessThanOrEqual(maxDiff); diff --git a/package.json b/package.json index 1fd0b9a2..222cdf34 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,8 @@ "scripts": { "clean": "rm -rf dist", "compile": "npm run clean && tsc -p .", - "test": "jest", - "coverage": "jest --coverage", + "test": "jest --runInBand", + "coverage": "jest --coverage --runInBand", "lint": "tslint -p tsconfig.json", "watch": "tsc -w -p .", "publish-next": "npm publish --tag next",