Skip to content

Commit 40f9f88

Browse files
authored
Merge pull request #146 from nut-tree/feature/145/stabilize_drag_and_drop
Feature/145/stabilize drag and drop
2 parents 81b5971 + 83e636d commit 40f9f88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.e2e.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe("E2E drag & drop demo", () => {
7878
await mouse.drag(down(500));
7979
await mouse.move(right(100));
8080
await mouse.leftClick();
81-
const dest = await screen.find("moved_trash.png");
81+
const dest = await screen.waitFor("moved_trash.png");
8282
expect(Math.abs(dest.left - expected.left)).toBeLessThanOrEqual(maxDiff);
8383
expect(Math.abs(dest.top - expected.top)).toBeLessThanOrEqual(maxDiff);
8484
expect(Math.abs(dest.width - expected.width)).toBeLessThanOrEqual(maxDiff);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"scripts": {
4747
"clean": "rm -rf dist",
4848
"compile": "npm run clean && tsc -p .",
49-
"test": "jest",
50-
"coverage": "jest --coverage",
49+
"test": "jest --runInBand",
50+
"coverage": "jest --coverage --runInBand",
5151
"lint": "tslint -p tsconfig.json",
5252
"watch": "tsc -w -p .",
5353
"publish-next": "npm publish --tag next",

0 commit comments

Comments
 (0)