Skip to content

Commit 16ac3dc

Browse files
alexisareyngeorgylobko
authored andcommitted
remove test - browser automation cannot simulate real IME
1 parent 3298400 commit 16ac3dc

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/input/__integ__/input.test.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)