Skip to content

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Feb 22, 2025

Description

Add e2e tests on Fabric. We need those!

Currently the tests are duplicated for the sake of one single test on Android that fails only on CI...

iOS tests fail also locally - most likely we have some discrepancies between old & new architecture. Needs to be investigated, hover I do not treat it as a blocker, since this PR aims to setup these tests, fixing them will be handled separately.

Changes

  • Add build scripts
  • Add Fabric CI
  • Add Fabric detox configuration
  • Copy tests & do not duplicate test-butler apk
  • Hopefully correctly setup detox in FabricExample native code

Also:

  • Unified detox configuration between apps,
  • added helper scripts that simplify running e2e on local setup,
  • added support for DETOX_AVD_NAME (name avd that detox should use for locally running tests, if not set the scripts will try to choose somethign from list of available devices)

Test code and steps to reproduce

CI + yarn build-e2e-{android,ios} && yarn test-e2e-{android,ios}

Checklist

  • Ensured that CI passes

@kkafar kkafar marked this pull request as draft February 22, 2025 19:24
@kkafar kkafar marked this pull request as ready for review March 14, 2025 21:41
@kkafar kkafar merged commit 628f084 into main Mar 14, 2025
8 of 9 checks passed
@kkafar kkafar deleted the @kkafar/detox-on-fabric branch March 14, 2025 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant