Skip to content

Commit 513ba2d

Browse files
committed
Add fixed viewport to vitest config
1 parent 956c65b commit 513ba2d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ describe('Popover', () => {
404404
// Content is very big, so popover spans to the edge of the viewport and
405405
// grows further than the opposite side of the anchor element
406406
{
407-
children: 'very long text'.repeat(4),
407+
children: 'very long text'.repeat(8),
408408
align: 'left',
409409
getExpectedCoordinates: popoverDOMNode => {
410410
const popoverRect = popoverDOMNode.getBoundingClientRect();

vitest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default defineConfig({
1414
headless: true,
1515
screenshotFailures: false,
1616
instances: [{ browser: 'chromium' }],
17+
viewport: { width: 1024, height: 768 },
1718
},
1819

1920
// CSS bundle relied upon by accessibility tests (eg. for color-contrast

0 commit comments

Comments
 (0)