-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
7 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
Binary file added
BIN
+3.27 KB
...t.tsx-snapshots/Select-control-with-parent-flex-basis-0-dark-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.1 KB
...est.tsx-snapshots/Select-control-with-parent-flex-basis-0-dark-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.03 KB
....tsx-snapshots/Select-control-with-parent-flex-basis-0-light-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.91 KB
...st.tsx-snapshots/Select-control-with-parent-flex-basis-0-light-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters