Übung OPA Test anlegen (4)
- Wir fügen in dem Dokument
pages/App.js folgenden Code ein:
sap.ui.define([
], (Opa5, Press) => {
const sViewName =
Opa5.createPageObjects({
onTheAppPage: {
actions: {
iPressTheSayHelloWithDialogButton() {
return this.waitFor({
id: viewName: sViewName,
actions: new Press(),
errorMessage: });
}
},
assertions: {
iShouldSeeTheHelloDialog() {
return this.waitFor({
controlType: success() {
// we set the view busy, so we need to query the parent of the app
Opa5.assert.ok(true, },
errorMessage: });
}
}
}
});
});