@bigbinary/neeto-playwright-commons 1.22.35 → 1.22.36

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
@@ -3528,7 +3528,7 @@ declare class ApiKeysPage {
3528
3528
  deleteApiKey: (targetRow: Locator) => Promise<void>;
3529
3529
  }
3530
3530
  interface VerifyAuditLogProps {
3531
- targetRow: Locator;
3531
+ targetRow?: Locator;
3532
3532
  action: string;
3533
3533
  date: string;
3534
3534
  adminName: string;
@@ -3541,12 +3541,58 @@ interface VerifyDataInPaneProps {
3541
3541
  lastName?: string;
3542
3542
  roleName?: string;
3543
3543
  }
3544
+ interface VerifyAuditLogEntryProps {
3545
+ page?: Page;
3546
+ tableDetails: VerifyAuditLogProps;
3547
+ paneDetails: {
3548
+ values: string[];
3549
+ userDetails?: {
3550
+ firstName?: string;
3551
+ lastName?: string;
3552
+ roleName?: string;
3553
+ };
3554
+ };
3555
+ }
3544
3556
  declare class AuditLogsPage {
3545
3557
  page: Page;
3546
3558
  neetoPlaywrightUtilities: CustomCommands;
3547
3559
  t: TFunction;
3548
3560
  targetRow: Locator;
3549
3561
  constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
3562
+ /**
3563
+ *
3564
+ * Used to verify both the audit log table entry and the detailed information in the pane. This method combines verifyAuditLog and verifyDataInPane for comprehensive verification.
3565
+ *
3566
+ * page (optional): The custom page context. Default is POM's page.
3567
+ *
3568
+ * tableDetails (required): Object containing details for table verification.
3569
+ *
3570
+ * @example
3571
+ *
3572
+ * await auditLogsPage.verifyAuditLogEntry({
3573
+ * page,
3574
+ * tableDetails: {
3575
+ * targetRow: page.getByRole("row"),
3576
+ * action: "Updated user",
3577
+ * date: "Nov 27, 2024",
3578
+ * adminName: "Oliver Smith"
3579
+ * },
3580
+ * paneDetails: {
3581
+ * values: ["johnluther@example.com"],
3582
+ * userDetails: {
3583
+ * firstName: "John",
3584
+ * lastName: "Luther",
3585
+ * roleName: "Agent"
3586
+ * }
3587
+ * }
3588
+ * });
3589
+ * @endexample
3590
+ */
3591
+ verifyAuditLogEntry: ({
3592
+ page,
3593
+ tableDetails,
3594
+ paneDetails
3595
+ }: VerifyAuditLogEntryProps) => Promise<void>;
3550
3596
  /**
3551
3597
  *
3552
3598
  * Used to verify the values in the audit logs table.