Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
test(table): Fixes an issue where drag table e2e tests did not work i…
Browse files Browse the repository at this point in the history
…n edge
  • Loading branch information
tomheller committed May 26, 2020
1 parent c56c005 commit 45a0143
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/components-e2e/src/components/table-order/table.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ export const getDragDistance = async (
.nth(targetIndex)
.getBoundingClientRectProperty('top');

return targetPosY - posY;
// Round this value as testCafe expects the dragOffset
// to be an interger and due to rounding issues,
// boundingClientBoxes can restult in floating point
// issues.
return Math.round(targetPosY - posY);
};

0 comments on commit 45a0143

Please sign in to comment.