refactor: update e2e tests for CI (#6722)

This commit is contained in:
Manol Donev
2019-01-08 15:23:35 +02:00
committed by GitHub
parent 46c9de020e
commit a6d561e549
29 changed files with 295 additions and 73 deletions

View File

@@ -3,11 +3,11 @@ import { EventData } from "tns-core-modules/ui/core/view";
import { Button } from "tns-core-modules/ui/button";
export function onNavigateToLayoutFrame(args: EventData) {
application._resetRootView({ moduleName: "layout-root/layout-root-frame" });
application._resetRootView({ moduleName: "layout-root/layout-frame-root" });
}
export function onNavigateToLayoutMultiFrame(args: EventData) {
application._resetRootView({ moduleName: "layout-root/layout-root-multi-frame" });
application._resetRootView({ moduleName: "layout-root/layout-multi-frame-root" });
}
export function onNavigateToPageFrame(args: EventData) {
@@ -31,9 +31,9 @@ export function onNavigateToTabsBottomPage(args: EventData) {
}
export function onNavigateToTabsTopRoot(args: EventData) {
application._resetRootView({ moduleName: "tab-root/tab-root-top" });
application._resetRootView({ moduleName: "tab-root/tab-top-root" });
}
export function onNavigateToTabsBottomRoot(args: EventData) {
application._resetRootView({ moduleName: "tab-root/tab-root-bottom" });
application._resetRootView({ moduleName: "tab-root/tab-bottom-root" });
}

View File

@@ -10,9 +10,9 @@
<Button text="Layout w/ multi frame" tap="onNavigateToLayoutMultiFrame" />
<Button text="Page w/ frame" tap="onNavigateToPageFrame" />
<Button text="Page w/ multi frame" tap="onNavigateToPageMultiFrame" />
<Button ios:visibility="collapsed" text="Page w/ tabs (top)" tap="onNavigateToTabsTopPage" />
<Button text="Page w/ tabs (top)" tap="onNavigateToTabsTopPage" />
<Button text="Page w/ tabs (bottom)" tap="onNavigateToTabsBottomPage" />
<Button ios:visibility="collapsed" text="Root tabs (top)" tap="onNavigateToTabsTopRoot" />
<Button text="Root tabs (top)" tap="onNavigateToTabsTopRoot" />
<Button text="Root tabs (bottom)" tap="onNavigateToTabsBottomRoot" />
</StackLayout>
</GridLayout>