Skip to content

Commit b060bba

Browse files
Copilotchiaramooney
andcommitted
Remove hitSlop test as it is not supported on fabric
Co-authored-by: chiaramooney <34109996+chiaramooney@users.noreply.github.com>
1 parent b67b127 commit b060bba

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

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

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -345,42 +345,6 @@ describe('Pressable Tests', () => {
345345
},
346346
);
347347
});
348-
test('Pressable should register onPress action when hit within hitSlop range', async () => {
349-
const searchBox = await app.findElementByTestID('example_search');
350-
await app.waitUntil(
351-
async () => {
352-
await searchBox.setValue('Pre');
353-
return (await searchBox.getText()) === 'Pre';
354-
},
355-
{
356-
interval: 1500,
357-
timeout: 5000,
358-
timeoutMsg: `Unable to enter correct search text into test searchbox.`,
359-
},
360-
);
361-
const component = await app.findElementByTestID(
362-
'pressable_hit_slop_button',
363-
);
364-
await component.waitForDisplayed({timeout: 20000});
365-
366-
// Click on the component to test hitSlop interaction
367-
await component.click();
368-
369-
const dump = await dumpVisualTree('pressable_hit_slop');
370-
expect(dump).toMatchSnapshot();
371-
372-
await app.waitUntil(
373-
async () => {
374-
await searchBox.setValue(['Backspace', 'Backspace', 'Backspace']);
375-
return (await searchBox.getText()) === 'Search...';
376-
},
377-
{
378-
interval: 1500,
379-
timeout: 5000,
380-
timeoutMsg: `Unable to enter correct search text into test searchbox.`,
381-
},
382-
);
383-
});
384348
test('Pressable should support different disabled styling configurations', async () => {
385349
const searchBox = await app.findElementByTestID('example_search');
386350
await app.waitUntil(

0 commit comments

Comments
 (0)