@bigbinary/neeto-playwright-commons 1.9.12 → 1.9.13
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 +12 -7
- package/index.cjs.js.map +1 -1
- package/index.d.ts +7 -1
- package/index.js +12 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -14888,8 +14888,9 @@ const MEMBER_FORM_SELECTORS = {
|
|
|
14888
14888
|
|
|
14889
14889
|
class TeamMembers {
|
|
14890
14890
|
constructor({ page, neetoPlaywrightUtilities, }) {
|
|
14891
|
-
this.navigateToTeamMembersSublink = async (sublink = "all") => {
|
|
14892
|
-
|
|
14891
|
+
this.navigateToTeamMembersSublink = async ({ clickMembersTab = true, sublink = "all", } = {}) => {
|
|
14892
|
+
clickMembersTab &&
|
|
14893
|
+
(await this.page.getByTestId(MEMBER_SELECTORS.membersTab).click());
|
|
14893
14894
|
await this.page
|
|
14894
14895
|
.getByTestId(MEMBER_SELECTORS.menubarSubLink(sublink))
|
|
14895
14896
|
.click();
|
|
@@ -14901,12 +14902,14 @@ class TeamMembers {
|
|
|
14901
14902
|
.getByTestId(MEMBER_FORM_SELECTORS.emailTextField)
|
|
14902
14903
|
.fill(emails.join(", "));
|
|
14903
14904
|
await this.page.getByTestId(MEMBER_SELECTORS.roleLabel(role)).click();
|
|
14904
|
-
|
|
14905
|
-
|
|
14905
|
+
await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
|
|
14906
|
+
if (IS_STAGING_ENV) {
|
|
14907
|
+
await this.page
|
|
14906
14908
|
.getByTestId(COMMON_SELECTORS.paneBody)
|
|
14907
14909
|
.getByTestId(COMMON_SELECTORS.checkboxLabel)
|
|
14908
|
-
.click()
|
|
14909
|
-
|
|
14910
|
+
.click();
|
|
14911
|
+
await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
|
|
14912
|
+
}
|
|
14910
14913
|
await this.page.getByTestId(MEMBER_SELECTORS.submitButton).click();
|
|
14911
14914
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
14912
14915
|
await this.neetoPlaywrightUtilities.verifySuccessToast();
|
|
@@ -15002,7 +15005,9 @@ class TeamMembers {
|
|
|
15002
15005
|
.click();
|
|
15003
15006
|
};
|
|
15004
15007
|
// TODO: Change the selector after this issue is resolved: https://github.com/bigbinary/neeto-team-members-nano/issues/258
|
|
15005
|
-
this.getMemberRowByName = (name) => this.page.getByRole("row", {
|
|
15008
|
+
this.getMemberRowByName = (name) => this.page.getByRole("row", {
|
|
15009
|
+
name: IS_STAGING_ENV ? name : `avatar--${name}`,
|
|
15010
|
+
});
|
|
15006
15011
|
this.takeActionOnMembers = async ({ names = [], state, action, }) => {
|
|
15007
15012
|
if (neetoCist.isPresent(names)) {
|
|
15008
15013
|
for (const name of names) {
|