Detox: React Navigation v3.3.1 SafeAreaView update breaks scroll('down') (iOS only)

Created on 7 Mar 2019  路  4Comments  路  Source: wix/Detox

This issue is iOS only.

Description

A recent updateto react-navigation increases the SafeAreaView size a small amount.

This means all tests that use the scroll('down') function now break because the scroll begins on the safe area view so the scroll view doesn't scroll at all.

For example, I have this helper function that will infinitely try to scroll:

await waitFor(element(by.id(testID))).toBeVisible().whileElement(by.id(scrollView)).scroll(150, 'down');

Steps to Reproduce

  1. Install detox
  2. Install react-navigation v3.3.1 or higher
  3. Run a detox test that uses the scroll(150, 'down')

Observed behaviour: Scrolling begins at the SafeAreaView, so scrolling doesn't work.

  • Detox: 10.0.3
  • React Navigation: 3.3.1
looking for contributors

Most helpful comment

if this appeared together with tab navigator, it was probably fixed here https://github.com/react-navigation/react-navigation-tabs/pull/110

All 4 comments

Probably related to https://github.com/google/EarlGrey/issues/619 which is not fixed.
We don't use React Navigation, so I'm not sure when I will be able to check this.

if this appeared together with tab navigator, it was probably fixed here https://github.com/react-navigation/react-navigation-tabs/pull/110

Thanks for the info @vonovak. I will test this when i get a chance.

Thanks, guys

Was this page helpful?
0 / 5 - 0 ratings