Skip to content

Commit

Permalink
Merge pull request #325 from KovalevAndrey/permamnet-child-test-fix
Browse files Browse the repository at this point in the history
Ensure node was built before using PermanentChild API
  • Loading branch information
KovalevAndrey committed Jan 21, 2023
2 parents bae2602 + 8951f46 commit 0a8c530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Pending changes

- [#325](https://github.com/bumble-tech/appyx/pull/325)**Fixed**: Crash when using PermanentChild API in View testing

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import androidx.test.rule.ActivityTestRule
import com.bumble.appyx.core.node.LocalNode
import com.bumble.appyx.core.node.NodeView
import com.bumble.appyx.core.node.ViewFactory
import com.bumble.appyx.core.node.build
import com.bumble.appyx.testing.ui.utils.DummyParentNode
import org.junit.rules.TestRule
import org.junit.runner.Description
Expand Down Expand Up @@ -47,7 +48,7 @@ open class AppyxViewTestRule<View : NodeView>(
override fun beforeActivityLaunched() {
AppyxTestActivity.composableView = {
CompositionLocalProvider(
LocalNode provides DummyParentNode<Any>(),
LocalNode provides DummyParentNode<Any>().build(),
) {
view.View(modifier = Modifier)
}
Expand Down

0 comments on commit 0a8c530

Please sign in to comment.