Skip to content

Testing BTP Workzone Cross-App navigation stopped working #742

Description

@balexan

Describe the bug
Testing cross-app navigation with BTP Workzone was working for years.
With the new UI5 version, it stopped working.

To Reproduce
Here is an isolated test project:
package.json

{
  "dependencies": {
    "@wdio/cli": "^9.27.0",
    "wdio-ui5-service": "^3.0.8"
  }
}

wdio.conf.js

exports.config = {
    wdi5: {
        btpWorkZoneEnablement: true 
    },
    specs: ['./*.test.js'],
    capabilities: [
        {
            browserName: 'chrome'
        }
    ],
    baseUrl: 'https://dev-17acmpno.launchpad.cfapps.eu10.hana.ondemand.com/site/PX-Configuration#UnitViewer-Display?sap-ui-app-id-hint=saas_approuter_sap.px.unitreadonly&/Unit(9d4f97ba-7eaa-47be-b8e3-a786f071419d)',
    services: ['ui5'],
    framework: 'mocha',
};

crossapp.test.js

const initializeFacades = async () => {
    return browser.fe.initialize({
        onThePXProjectViewerList: {
            ListReport: {
                appId: 'sap.px.unitreadonly',
                componentId: 'UnitList',
                entitySet: 'Unit'
            }
        },
        onThePXProjectViewerObjectPage: {
            ObjectPage: {
                appId: 'sap.px.unitreadonly',
                componentId: 'UnitObjectPage',
                entitySet: 'Unit'
            }
        },
        onThePXConfig4ViewerList: {
            ListReport: {
                appId: 'sap.px.config4all',
                componentId: 'PxConfigList',
                entitySet: 'PxConfig'
            }
        },
        onTheShell: {
            Shell: {}
        }
    });
};

describe('PxProject', () => {
    let FioriElementsFacade;

    before(async () => {
        FioriElementsFacade = await initializeFacades();
    });

    describe('Validations', () => {
        describe('Validating list of related PX Configs...', () => {
            it('shall navigate to PX Config', async () => {
                console.log(`Click first column and navigate to PXConfig...`);
                await FioriElementsFacade.execute(async (_Given, When, Then) => {
                    When.onThePXProjectViewerObjectPage.onTable('PX Configurations').iPressCell(0, 0);
                });
                await FioriElementsFacade.execute(async (_Given, When, Then) => {
                    Then.onTheShell.iSeeShellAppTitle('PX Configurations - Viewer');
                });
                await FioriElementsFacade.execute(async (_Given, When, Then) => {
                    Then.onThePXConfig4ViewerObjectPage.iSeeThisPage();
                });
            });
        });
    });
});

Error description
The navigation happens, in the browser, but the test times out and pretends it couldn't click.

Runtime Env (please complete the following information):

  • wdi5/wdio-ui5-service-version: 3.0.8
  • UI5 version: 1.146.0
  • wdio-version (output of wdio --version): 9.27.0
  • node-version (output of node --version): 22.13.1
  • OS: MacOS 26.3.1
  • Browser + Version: Chrome 146.0.7680.178

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions