@bigbinary/neeto-playwright-commons 1.13.6 → 1.13.7

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.cjs.js CHANGED
@@ -21189,10 +21189,8 @@ class ThankYouPage {
21189
21189
  await fetchConfiguration;
21190
21190
  };
21191
21191
  this.saveChanges = async () => {
21192
- const saveChangesButton = this.page.getByTestId(THANK_YOU_SELECTORS.saveChangesButton);
21193
- await saveChangesButton.click();
21192
+ await this.page.getByTestId(THANK_YOU_SELECTORS.saveChangesButton).click();
21194
21193
  await this.neetoPlaywrightUtilities.verifyToast();
21195
- await test$1.expect(saveChangesButton).toBeDisabled();
21196
21194
  };
21197
21195
  this.verifyThankYouImage = async (imagePath, imageName) => {
21198
21196
  await test$1.expect(this.page.getByTestId(THANK_YOU_SELECTORS.thankYouConfigurationLabel())).toBeChecked();
@@ -21494,6 +21492,7 @@ const GOOGLE_LOGIN_TEXTS = {
21494
21492
  neetoAutomation: "neeto.automation",
21495
21493
  };
21496
21494
  const ENGAGE_TEXTS = { subscribe: "Subscribe" };
21495
+ const AUDIT_LOGS_TEXTS = { organizationRole: "Organization Role" };
21497
21496
 
21498
21497
  /* eslint-disable playwright/require-top-level-describe */
21499
21498
  /* eslint-disable playwright/no-standalone-expect */
@@ -25095,6 +25094,45 @@ class OrganizationPage {
25095
25094
  }
25096
25095
  }
25097
25096
 
25097
+ class AuditLogsPage {
25098
+ constructor(page, neetoPlaywrightUtilities) {
25099
+ this.verifyAuditLog = async ({ targetRow, action, date, adminName, }) => {
25100
+ this.targetRow = targetRow;
25101
+ await test$1.expect(targetRow.getByRole("cell", { name: action })).toBeVisible();
25102
+ await test$1.expect(targetRow.getByRole("cell", {
25103
+ name: this.t("neetoMolecules.common.success"),
25104
+ })).toBeVisible();
25105
+ await test$1.expect(targetRow.getByRole("cell", { name: adminName })).toBeVisible();
25106
+ await test$1.expect(targetRow.getByRole("cell", { name: date })).toBeVisible();
25107
+ };
25108
+ this.verifyDataInPane = async ({ page = this.page, action, values, firstName, lastName, roleName, }) => {
25109
+ await this.targetRow.getByText(action).click();
25110
+ await Promise.all(values.map(value => test$1.expect(page.getByTestId(COMMON_SELECTORS.paneBody).getByText(value)).toBeVisible()));
25111
+ const rowInPane = page
25112
+ .getByTestId(COMMON_SELECTORS.paneBody)
25113
+ .getByRole("row");
25114
+ firstName &&
25115
+ // eslint-disable-next-line playwright/no-standalone-expect
25116
+ (await test$1.expect(rowInPane
25117
+ .filter({ hasText: this.t("neetoTeamMembers.labels.firstName") })
25118
+ .getByText(firstName)).toBeVisible());
25119
+ lastName &&
25120
+ // eslint-disable-next-line playwright/no-standalone-expect
25121
+ (await test$1.expect(rowInPane
25122
+ .filter({ hasText: this.t("neetoTeamMembers.labels.lastName") })
25123
+ .getByText(lastName)).toBeVisible());
25124
+ roleName &&
25125
+ // eslint-disable-next-line playwright/no-standalone-expect
25126
+ (await test$1.expect(rowInPane
25127
+ .filter({ hasText: AUDIT_LOGS_TEXTS.organizationRole })
25128
+ .getByText(roleName)).toBeVisible());
25129
+ };
25130
+ this.page = page;
25131
+ this.neetoPlaywrightUtilities = neetoPlaywrightUtilities;
25132
+ this.t = playwrightI18nextFixture.getI18nInstance().t;
25133
+ }
25134
+ }
25135
+
25098
25136
  class SidebarSection {
25099
25137
  constructor(page, neetoPlaywrightUtilities) {
25100
25138
  this.clickOnSubLink = (label) => this.page.getByTestId(COMMON_SELECTORS.sidebarSubLink(label)).click();
@@ -158425,6 +158463,8 @@ const definePlaywrightConfig = (overrides) => {
158425
158463
  };
158426
158464
 
158427
158465
  exports.API_ROUTES = API_ROUTES;
158466
+ exports.AUDIT_LOGS_TEXTS = AUDIT_LOGS_TEXTS;
158467
+ exports.AuditLogsPage = AuditLogsPage;
158428
158468
  exports.BASE_URL = BASE_URL;
158429
158469
  exports.CHANGELOG_WIDGET_SELECTORS = CHANGELOG_WIDGET_SELECTORS;
158430
158470
  exports.CHAT_WIDGET_SELECTORS = CHAT_WIDGET_SELECTORS;