| 420 | expect(dayPeriod).toHaveTextContent('PM'); |
| 421 | |
| 422 | let composition = data => { |
| 423 | fireEvent( |
| 424 | dayPeriod, |
| 425 | new InputEvent('beforeinput', { |
| 426 | bubbles: true, |
| 427 | cancelable: false, |
| 428 | inputType: 'insertCompositionText', |
| 429 | data |
| 430 | }) |
| 431 | ); |
| 432 | fireEvent.input(dayPeriod, {inputType: 'insertCompositionText', data}); |
| 433 | }; |
| 434 | |
| 435 | composition(''); |
| 436 | expect(dayPeriod).toHaveTextContent('PM'); |