Skip to content

Commit

Permalink
chore: More attempts to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Aug 20, 2021
1 parent c46f96e commit a0f0c11
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/get-text.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('getTextAtPoint', () => {
const bbox = getBboxForOffset(firstTextNode, 1);

const result = getTextAtPoint({
x: bbox.right,
x: bbox.right + 0.5,
y: bbox.top + bbox.height / 2,
});

Expand Down Expand Up @@ -936,8 +936,7 @@ describe('getTextAtPoint', () => {
const bbox = inputNode.getBoundingClientRect();

// See notes above about how we arrived at this offset.
// TODO: 14 is just a check in case 13 doesn't work
const offset = isChromium() ? 14 : 15;
const offset = isChromium() ? 13 : 15;

const result = getTextAtPoint({
x: bbox.left + offset,
Expand Down Expand Up @@ -978,8 +977,7 @@ describe('getTextAtPoint', () => {
const bbox = textAreaNode.getBoundingClientRect();

// See notes above about how we arrived at this offset.
// TODO: 12.5 is just a check in case 13 doesn't work
const offset = isChromium() ? 12.5 : 15;
const offset = isChromium() ? 13 : 15;

const result = getTextAtPoint({ x: bbox.left + offset, y: 5 });

Expand Down

0 comments on commit a0f0c11

Please sign in to comment.