@bigbinary/neeto-playwright-commons 3.3.2 → 3.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -2795,15 +2795,18 @@ declare class GooglePage extends IntegrationBase {
2795
2795
  private handleNotVerifiedPage;
2796
2796
  /**
2797
2797
  *
2798
- * Revokes permissions for the Microsoft integration by navigating to Microsoft's
2798
+ * Revokes permissions for the Microsoft integration by navigating to Microsoft's my apps page and revoking the application's consent. This method handles the complete flow of disconnecting the app from Microsoft's side by opening the app context menu, navigating to "Manage your application", and clicking "Revoke consent".
2799
2799
  *
2800
- * my apps page and removing the application connection. This method handles the
2800
+ * appName (optional): The name of the application to revoke permissions for.
2801
2801
  *
2802
- * complete flow of disconnecting the app from Microsoft's side.
2802
+ * Defaults to "NeetoForm - Staging".
2803
2803
  *
2804
2804
  * @example
2805
2805
  *
2806
2806
  * await microsoftPage.revokePermissions();
2807
+ *
2808
+ * // With a custom app name
2809
+ * await microsoftPage.revokePermissions("MyApp - Production");
2807
2810
  * @endexample
2808
2811
  */
2809
2812
  revokePermissions: () => Promise<void>;
@@ -2890,18 +2893,21 @@ declare class MicrosoftPage extends IntegrationBase {
2890
2893
  private staySignedIn;
2891
2894
  /**
2892
2895
  *
2893
- * Revokes permissions for the Microsoft integration by navigating to Microsoft's
2896
+ * Revokes permissions for the Microsoft integration by navigating to Microsoft's my apps page and revoking the application's consent. This method handles the complete flow of disconnecting the app from Microsoft's side by opening the app context menu, navigating to "Manage your application", and clicking "Revoke consent".
2894
2897
  *
2895
- * my apps page and removing the application connection. This method handles the
2898
+ * appName (optional): The name of the application to revoke permissions for.
2896
2899
  *
2897
- * complete flow of disconnecting the app from Microsoft's side.
2900
+ * Defaults to "NeetoForm - Staging".
2898
2901
  *
2899
2902
  * @example
2900
2903
  *
2901
2904
  * await microsoftPage.revokePermissions();
2905
+ *
2906
+ * // With a custom app name
2907
+ * await microsoftPage.revokePermissions("MyApp - Production");
2902
2908
  * @endexample
2903
2909
  */
2904
- revokePermissions: () => Promise<void>;
2910
+ revokePermissions: (appName?: string) => Promise<void>;
2905
2911
  }
2906
2912
  type AsyncNoArgsFunction = () => Promise<void>;
2907
2913
  type RedirectUrl = string | RegExp | ((url: URL) => boolean);
@@ -6020,6 +6026,10 @@ declare const MICROSOFT_LOGIN_TEXTS: {
6020
6026
  permissionsRequested: string;
6021
6027
  yes: string;
6022
6028
  remove: string;
6029
+ manageYourApplication: string;
6030
+ revokeConsent: string;
6031
+ useVerificationCode: string;
6032
+ successfullyRevokedConsent: string;
6023
6033
  };
6024
6034
  /**
6025
6035
  *
@@ -8128,7 +8138,7 @@ declare const MICROSOFT_LOGIN_SELECTORS: {
8128
8138
  signInProfileIcon: string;
8129
8139
  emailInput: string;
8130
8140
  placeholder: string;
8131
- dropdownMenu: string;
8141
+ dropdownMenu: (appName: string) => string;
8132
8142
  };
8133
8143
  /**
8134
8144
  *