Skip to content

Commit

Permalink
test: correct broken test case
Browse files Browse the repository at this point in the history
It mentions it asserts "top right", but classes check for "bottom right"
  • Loading branch information
nikku committed Nov 7, 2024
1 parent b181cf4 commit f402e25
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ describe('simple mode', function() {
simpleModeButtonBounds = simpleModeButton.getBoundingClientRect();

expect(simpleModeButton.classList.contains('right')).to.be.true;
expect(simpleModeButton.classList.contains('bottom')).to.be.true;
expect(simpleModeButtonBounds.left + 4).to.be.closeTo(cellBounds.right, 1);
expect(simpleModeButtonBounds.bottom - 4).to.be.closeTo(cellBounds.top, 1);
expect(simpleModeButton.classList.contains('top')).to.be.true;
expect(simpleModeButtonBounds.left).to.be.closeTo(cellBounds.right, 10);
expect(simpleModeButtonBounds.top).to.be.closeTo(cellBounds.top, 10);
});


Expand Down

0 comments on commit f402e25

Please sign in to comment.