File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed
Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -45,35 +45,4 @@ describe('Input', () => {
4545 ) . resolves . toBe ( true ) ;
4646 } )
4747 ) ;
48-
49- test (
50- 'Should not submit form during IME composition' ,
51- useBrowser ( async browser => {
52- await browser . url ( '#/light/input/input-integ' ) ;
53- const page = new InputPage ( browser ) ;
54- await page . focusInput ( ) ;
55-
56- // Simulate IME composition
57- await browser . execute ( ( ) => {
58- const input = document . querySelector ( 'input' ) ! ;
59- input . dispatchEvent ( new CompositionEvent ( 'compositionstart' ) ) ;
60- } ) ;
61-
62- await page . keys ( [ 'Enter' ] ) ;
63-
64- // Form should not be submitted during composition
65- await expect ( page . isFormSubmitted ( ) ) . resolves . toBe ( false ) ;
66-
67- // End composition
68- await browser . execute ( ( ) => {
69- const input = document . querySelector ( 'input' ) ! ;
70- input . dispatchEvent ( new CompositionEvent ( 'compositionend' , { data : '가' } ) ) ;
71- } ) ;
72-
73- await page . keys ( [ 'Enter' ] ) ;
74-
75- // Form should not be submitted during composition
76- await expect ( page . isFormSubmitted ( ) ) . resolves . toBe ( true ) ;
77- } )
78- ) ;
7948} ) ;
You can’t perform that action at this time.
0 commit comments