mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Update unittest helper method navigation checks
This commit is contained in:
@@ -194,7 +194,6 @@ export function navigateToModule(moduleName: string) {
|
|||||||
frame.topmost().navigate({ moduleName: moduleName, animated: false });
|
frame.topmost().navigate({ moduleName: moduleName, animated: false });
|
||||||
TKUnit.waitUntilReady(() => { return frame.topmost().currentPage !== currentPage; });
|
TKUnit.waitUntilReady(() => { return frame.topmost().currentPage !== currentPage; });
|
||||||
TKUnit.assert(frame.topmost().currentPage.isLoaded, "Current page should be loaded!");
|
TKUnit.assert(frame.topmost().currentPage.isLoaded, "Current page should be loaded!");
|
||||||
TKUnit.assert(!currentPage.isLoaded, "Previous page should be unloaded!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function goBack(): void {
|
export function goBack(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user