Skip to content

Commit 23e944f

Browse files
committed
Improve Popover test to work in smaller viewports
1 parent 295e336 commit 23e944f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/feedback/test/Popover-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ describe('Popover', () => {
355355
// Content is slightly longer than the anchor element. The popover matches
356356
// one of its sides but spans further to the opposite one
357357
{
358-
children: 'slightly longer text'.repeat(2),
358+
children: 'slightly longer text',
359359
align: 'left',
360360
getExpectedCoordinates: (popoverDOMNode, wrapper) => {
361361
const buttonDOMNode = getToggleButton(wrapper).getDOMNode();
@@ -388,7 +388,7 @@ describe('Popover', () => {
388388
// Content is very big, so popover spans to the edge of the viewport and
389389
// grows further than the opposite side of the anchor element
390390
{
391-
children: 'very long text'.repeat(6),
391+
children: 'very long text'.repeat(4),
392392
align: 'left',
393393
getExpectedCoordinates: popoverDOMNode => {
394394
const popoverRect = popoverDOMNode.getBoundingClientRect();

0 commit comments

Comments
 (0)