Skip to Content
0
Feb 09, 2023 at 10:48 AM

Fiori Elements v4: OPA5 - this._mServices[n].instance.destroy is not a function

392 Views Last edit Feb 09, 2023 at 11:13 AM 5 rev

Hello experts,

I came across few issues in Fiori Elements v4: List Report / Analytical List Page OPA5 tests:

When I am using

Given.iStartMyUIComponent() *** Then.iTeardownMyUIComponent()/Then.iTearDownMyApp()

I am getting next error during the teardown

TypeError: this._mServices[n].instance.destroy is not a function

I tried to check why it is happening at it looks like some 'navigationService' service instance doesn't have a destroy function

image.png

Another strange behaviour is that when I am using

Given.iStartMyApp() *** Then.iTeardownMyApp()

everything is working good but I am not receiving code coverage information

image.png

Can you please help me to identify the root cause of such a behaviour?

Is this something that should be addressed to the Fiori Team or this issue caused by our application development?

I created two branches in our repository where this can be checked.

Teardown issue can be checked here: Teardown issue application branch

Code coverage issue can be checked here: Code coverage issue application branch

Thanks in advance,

Mykhaylo

Attachments

image.png (404.1 kB)
image.png (210.3 kB)