Skip to content

Commit

Permalink
test(Select): add test for parent with flex-basis 0
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 committed Oct 8, 2024
1 parent 434ce7f commit 3206de4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/components/Select/__tests__/Select.visual.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';

import {test} from '~playwright/core';

import {Select} from '../index';
import type {SelectOption} from '../index';

test.describe('Select', {tag: '@Select'}, () => {
test('control-with-parent-flex-basis-0', async ({mount, expectScreenshot}) => {
const options: SelectOption[] = [{value: '1', content: 'Value 1'}];
await mount(
<div style={{display: 'flex'}}>
<div style={{flex: '0 0'}}>
<Select value={['1']} options={options} />
</div>
</div>,
);
await expectScreenshot();
});
});

0 comments on commit 3206de4

Please sign in to comment.