34 lines
892 B
TypeScript
34 lines
892 B
TypeScript
/*global QUnit*/
|
|
import opaTest from "sap/ui/test/opaQunit";
|
|
import AppPage from "./pages/AppPage";
|
|
import ViewPage from "./pages/MainPage";
|
|
|
|
import Opa5 from "sap/ui/test/Opa5";
|
|
|
|
QUnit.module("Navigation Journey");
|
|
|
|
const onTheAppPage = new AppPage();
|
|
const onTheViewPage = new ViewPage();
|
|
Opa5.extendConfig({
|
|
viewNamespace: "de.paulvincenthorn.weekorganizer.weekorganizerapp.view.",
|
|
autoWait: true
|
|
});
|
|
|
|
opaTest("Should see the initial page of the app", function () {
|
|
// Arrangements
|
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
onTheAppPage.iStartMyUIComponent({
|
|
componentConfig: {
|
|
name: "de.paulvincenthorn.weekorganizer.weekorganizerapp"
|
|
}
|
|
});
|
|
|
|
// Assertions
|
|
onTheAppPage.iShouldSeeTheApp();
|
|
onTheViewPage.iShouldSeeThePageView();
|
|
|
|
|
|
// Cleanup
|
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
onTheAppPage.iTeardownMyApp();
|
|
}); |