@bigbinary/neeto-playwright-commons 3.3.6 → 3.3.8

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
@@ -1084,6 +1084,7 @@ declare class Health {
1084
1084
  neetoPlaywrightUtilities: CustomCommands;
1085
1085
  private readonly email;
1086
1086
  private loginPage;
1087
+ private teamMembers;
1087
1088
  constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
1088
1089
  /**
1089
1090
  *
@@ -1117,7 +1118,9 @@ declare class Health {
1117
1118
  *
1118
1119
  * Performs login, waits until the main application UI (floating menu, logo, and
1119
1120
  *
1120
- * heading) is present, and then executes your custom verification steps.
1121
+ * heading) is present, verifies team members can be added and removed, and then
1122
+ *
1123
+ * executes your custom verification steps.
1121
1124
  *
1122
1125
  * customSteps (optional): An async function (no arguments) that runs after login
1123
1126
  *
@@ -1126,7 +1129,7 @@ declare class Health {
1126
1129
  * @example
1127
1130
  *
1128
1131
  * await health.verifyAppIsLive(async () => {
1129
- * await test.step("3: Verify dashboard", async () => {
1132
+ * await test.step("5: Verify dashboard", async () => {
1130
1133
  * await expect(
1131
1134
  * page.getByRole("heading", { name: "Dashboard" })
1132
1135
  * ).toBeVisible();
@@ -4217,6 +4220,8 @@ declare class TeamMembers {
4217
4220
  * @endexample
4218
4221
  */
4219
4222
  navigateToTeamMembers: () => Promise<void>;
4223
+ openMemberPane: () => Promise<void>;
4224
+ fillMemberForm: (emails: string[], role?: string) => Promise<void>;
4220
4225
  /**
4221
4226
  *
4222
4227
  * Used to add a member using the add button in the header. It takes the following parameters:
@@ -4311,7 +4316,7 @@ declare class TeamMembers {
4311
4316
  * await teamMembers.removeMemberViaUI();
4312
4317
  * @endexample
4313
4318
  */
4314
- removeMemberViaUI: () => Promise<void>;
4319
+ removeMemberViaUI: (parentLocator?: Locator | Page) => Promise<void>;
4315
4320
  /**
4316
4321
  *
4317
4322
  * Used to filter members by multi select fields such as role, group, teams, etc. The filter pane should be opened and closed before and after filtering. It takes the following parameters:
@@ -4382,7 +4387,7 @@ declare class TeamMembers {
4382
4387
  * await teamMembers.getMemberRowByName("Sam");
4383
4388
  * @endexample
4384
4389
  */
4385
- getMemberRowByName: (name: string) => playwright_core.Locator;
4390
+ getMemberRowByName: (name: string) => Locator;
4386
4391
  /**
4387
4392
  *
4388
4393
  * Used to take action on members by selecting the members and clicking on the take action button in the subheader. It takes the following parameters:
@@ -5656,6 +5661,7 @@ declare const ROUTES: {
5656
5661
  loginLink: string;
5657
5662
  profile: string;
5658
5663
  admin: string;
5664
+ members: string;
5659
5665
  myProfile: string;
5660
5666
  updateEmail: string;
5661
5667
  authSettings: string;