sapui5-opa

OPA matcher for sap.m.MessageToast.show call?

若如初见. 提交于 2019-12-25 12:09:41
问题 How does a OPA match pattern for a sap.m.MessageToast.show call looks like? I looked into the Code of sap.m.MessageToast.show and assumed the use control is sap.ui.core.Popup . Therefore I tried the following matcher: iShouldSeeAToastMessage : function() { return this.waitFor({ controlType : "sap.ui.core.Popup", success : function (aDialog) { ok(true, "Found a Toast: " + aDialog[0]); }, errorMessage : "No Toast message detected!" }); }, Is the controlType correct? How could the matcher