Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Function hasPendingChanges

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

      Parameters

      • page: ODataPage

        Playwright Page (or compatible subset).

      • Optionaloptions: ODataOptions

        OData options (modelName).

      Returns Promise<boolean>

      true if the model has pending changes, false otherwise.

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