Skip to main content

Function: hasPendingChanges()

hasPendingChanges(page, options?): Promise<boolean>

Defined in: src/modules/odata.ts:446

Checks whether the UI5 OData model has unsaved (pending) changes.

Parameters​

page​

ODataPage

Playwright Page (or compatible subset).

options?​

ODataOptions

OData options (modelName).

Returns​

Promise<boolean>

true if the model has pending changes, false otherwise.

Example​

const dirty = await hasPendingChanges(page);
if (dirty) {
logger.warn('Model has unsaved changes');
}