Checks whether the UI5 OData model has unsaved (pending) changes.
Playwright Page (or compatible subset).
Optional
OData options (modelName).
true if the model has pending changes, false otherwise.
true
false
const dirty = await hasPendingChanges(page);if (dirty) { logger.warn('Model has unsaved changes');} Copy
const dirty = await hasPendingChanges(page);if (dirty) { logger.warn('Model has unsaved changes');}
Checks whether the UI5 OData model has unsaved (pending) changes.