Detox is currently utilising waits in its testing processes, which could be further optimised for efficiency. The current wait implementations might lead to longer test execution times and potentially hinder the effectiveness of the testing suite. This ticket aims to refactor the waits in Detox to make the testing process more efficient without compromising the accuracy of the tests.
Technical Details
Analysing Current Waits: Understand the current implementation of waits in Detox tests. Identify the different types of waits being used and their purposes.
Evaluate Wait Necessity: Determine if all the existing waits are necessary or if some can be eliminated/replaced with smarter strategies.
Implement Conditional Waits: Introduce conditional waits based on the state of the application. This could involve dynamic wait times depending on certain expected conditions being met.
Testing and Validation: Thoroughly test the refactored waits on various scenarios to ensure they are both efficient and effective. Validate that the refactored waits do not cause false positives or negatives
Acceptance Criteria
The refactoring should not lead to any test failures. Test cases that previously passed should continue to pass.
The refactoring should lead to a noticeable reduction in overall test execution time, especially in scenarios where waits are involved.
Description
Detox is currently utilising waits in its testing processes, which could be further optimised for efficiency. The current wait implementations might lead to longer test execution times and potentially hinder the effectiveness of the testing suite. This ticket aims to refactor the waits in Detox to make the testing process more efficient without compromising the accuracy of the tests.
Technical Details
Acceptance Criteria