Skip to content

Commit 03a0ac7

Browse files
Include assert to test_NavigateToNewPage_WithAndroidCache for reuse native views on forward navigation (NativeScript#4764)
1 parent 617fa92 commit 03a0ac7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/app/ui/page/page-tests.android.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ export function test_NavigateToNewPage_WithAndroidCache() {
3232
const androidFrame = topmost().android;
3333
const cachingBefore = androidFrame.cachePagesOnNavigate;
3434
try {
35+
const currentPage = topmost().currentPage;
3536
androidFrame.cachePagesOnNavigate = true;
3637
helper.navigateWithHistory(pageFactory);
38+
TKUnit.assertNotNull(currentPage.nativeView);
3739
helper.goBack();
3840
} finally {
3941
androidFrame.cachePagesOnNavigate = cachingBefore;

0 commit comments

Comments
 (0)