Skip to content

Commit 2068ef7

Browse files
author
Protik Biswas
committed
removing e2e test
1 parent b9ff842 commit 2068ef7

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

packages/e2e-test-app-fabric/test/TextInputComponentTest.test.ts

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -414,47 +414,6 @@ describe('TextInput Tests', () => {
414414
const dump = await dumpVisualTree('textinput-clear-on-submit-4');
415415
expect(dump).toMatchSnapshot();
416416
});
417-
test('TextInputs can manually clear text on submit using setValue in onSubmitEditing', async () => {
418-
const component = await app.findElementByTestID(
419-
'textinput-manual-clear-on-submit',
420-
);
421-
await component.waitForDisplayed({timeout: 5000});
422-
423-
// Enter text in the input
424-
await app.waitUntil(
425-
async () => {
426-
await component.setValue('Hello World');
427-
return (await component.getText()) === 'Hello World';
428-
},
429-
{
430-
interval: 1500,
431-
timeout: 5000,
432-
timeoutMsg: `Unable to enter correct text.`,
433-
},
434-
);
435-
436-
// Verify text was entered
437-
expect(await component.getText()).toBe('Hello World');
438-
439-
// Press Enter to trigger onSubmitEditing which should clear the text
440-
await app.waitUntil(
441-
async () => {
442-
await component.setValue('\uE007'); // Enter key
443-
return (await component.getText()) === '';
444-
},
445-
{
446-
interval: 1500,
447-
timeout: 5000,
448-
timeoutMsg: `Text should be cleared after pressing Enter (manual setValue('') in onSubmitEditing)`,
449-
},
450-
);
451-
452-
// Verify text was cleared
453-
expect(await component.getText()).toBe('');
454-
455-
const dump = await dumpVisualTree('textinput-manual-clear-on-submit');
456-
expect(dump).toMatchSnapshot();
457-
});
458417
test('TextInputs can keep text on focus', async () => {
459418
const componentFocusFalse = await app.findElementByTestID(
460419
'clear-text-on-focus-false',

0 commit comments

Comments
 (0)