@bigbinary/neeto-playwright-commons 1.8.18 → 1.8.20
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 +20 -0
- package/index.cjs.js.map +1 -1
- package/index.d.ts +18 -1
- package/index.js +20 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -355,6 +355,7 @@ declare const COMMON_SELECTORS: {
|
|
|
355
355
|
floatingActionMenuButton: string;
|
|
356
356
|
columnsDropdownContainer: string;
|
|
357
357
|
columnsDropdownButton: string;
|
|
358
|
+
breadcrumbHeader: string;
|
|
358
359
|
};
|
|
359
360
|
|
|
360
361
|
declare const NEETO_EDITOR_SELECTORS: {
|
|
@@ -659,10 +660,26 @@ interface ToggleColumnCheckboxAndVerifyVisibilityProps {
|
|
|
659
660
|
shouldBeChecked: boolean;
|
|
660
661
|
}
|
|
661
662
|
declare const tableUtils: {
|
|
663
|
+
verifyTableColumnsExistence: ({ page, columnNames, }: {
|
|
664
|
+
page: Page;
|
|
665
|
+
columnNames: string[];
|
|
666
|
+
}) => Promise<void>;
|
|
662
667
|
assertColumnHeaderVisibility: ({ page, columnName, shouldBeVisible, }: AssertColumnHeaderVisibilityProps) => Promise<void>;
|
|
663
668
|
toggleColumnCheckboxAndVerifyVisibility: ({ page, tableColumns, shouldBeChecked, }: ToggleColumnCheckboxAndVerifyVisibilityProps) => Promise<void>;
|
|
664
669
|
};
|
|
665
670
|
|
|
671
|
+
interface BreadcrumbTitleAndRoute {
|
|
672
|
+
title: string;
|
|
673
|
+
route: string;
|
|
674
|
+
}
|
|
675
|
+
interface VerifyBreadcrumbProps {
|
|
676
|
+
page: Page;
|
|
677
|
+
titlesAndRoutes: BreadcrumbTitleAndRoute[];
|
|
678
|
+
}
|
|
679
|
+
declare const headerUtils: {
|
|
680
|
+
verifyBreadcrumbs: ({ page, titlesAndRoutes, }: VerifyBreadcrumbProps) => Promise<void>;
|
|
681
|
+
};
|
|
682
|
+
|
|
666
683
|
interface CurrentsOverrides {
|
|
667
684
|
projectId: string;
|
|
668
685
|
}
|
|
@@ -675,4 +692,4 @@ interface Overrides {
|
|
|
675
692
|
}
|
|
676
693
|
declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
|
|
677
694
|
|
|
678
|
-
export { API_ROUTES, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, type CustomFixture, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailosaurUtils, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SlackPage, TAGS_SELECTORS, THIRD_PARTY_ROUTES, USER_AGENTS, WebhooksPage, clearCredentials, commands, definePlaywrightConfig, extractSubdomainFromError, generateStagingData, getGlobalUserState, hyphenize, i18nFixture, initializeCredentials, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, skipTest, _default as stealthTest, tableUtils, updateCredentials, writeDataToFile };
|
|
695
|
+
export { API_ROUTES, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, type CustomFixture, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailosaurUtils, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SlackPage, TAGS_SELECTORS, THIRD_PARTY_ROUTES, USER_AGENTS, WebhooksPage, clearCredentials, commands, definePlaywrightConfig, extractSubdomainFromError, generateStagingData, getGlobalUserState, headerUtils, hyphenize, i18nFixture, initializeCredentials, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, skipTest, _default as stealthTest, tableUtils, updateCredentials, writeDataToFile };
|
package/index.js
CHANGED
|
@@ -155,6 +155,7 @@ const COMMON_SELECTORS = {
|
|
|
155
155
|
floatingActionMenuButton: "floating-action-menu-container",
|
|
156
156
|
columnsDropdownContainer: "columns-dropdown-container",
|
|
157
157
|
columnsDropdownButton: "columns-dropdown-button",
|
|
158
|
+
breadcrumbHeader: "header-breadcrumb",
|
|
158
159
|
};
|
|
159
160
|
|
|
160
161
|
class CustomCommands {
|
|
@@ -10622,6 +10623,9 @@ class OrganizationPage {
|
|
|
10622
10623
|
});
|
|
10623
10624
|
await this.page.getByTestId(SIGNUP_SELECTORS.profileSubmitButton).click();
|
|
10624
10625
|
await submitProfile;
|
|
10626
|
+
await this.page.waitForURL(new RegExp(getGlobalUserState().domain), {
|
|
10627
|
+
waitUntil: "load",
|
|
10628
|
+
});
|
|
10625
10629
|
};
|
|
10626
10630
|
this.setupOrganization = async (product) => {
|
|
10627
10631
|
if (!IS_STAGING_ENV)
|
|
@@ -10922,6 +10926,9 @@ const assertColumnHeaderVisibility = async ({ page, columnName, shouldBeVisible,
|
|
|
10922
10926
|
const visibilityAssertion = shouldBeVisible ? "toBeVisible" : "toBeHidden";
|
|
10923
10927
|
await expect(page.getByRole("columnheader", { name: columnName }))[visibilityAssertion]();
|
|
10924
10928
|
};
|
|
10929
|
+
const verifyTableColumnsExistence = async ({ page, columnNames, }) => {
|
|
10930
|
+
await Promise.all(columnNames.map(columnName => expect(page.getByRole("columnheader", { name: columnName, exact: true })).toBeVisible()));
|
|
10931
|
+
};
|
|
10925
10932
|
const toggleColumnCheckboxAndVerifyVisibility = async ({ page, tableColumns, shouldBeChecked, }) => {
|
|
10926
10933
|
await page.getByTestId(COMMON_SELECTORS.columnsDropdownButton).click();
|
|
10927
10934
|
for (const columnName of tableColumns) {
|
|
@@ -10948,10 +10955,22 @@ const toggleColumnCheckboxAndVerifyVisibility = async ({ page, tableColumns, sho
|
|
|
10948
10955
|
}
|
|
10949
10956
|
};
|
|
10950
10957
|
const tableUtils = {
|
|
10958
|
+
verifyTableColumnsExistence,
|
|
10951
10959
|
assertColumnHeaderVisibility,
|
|
10952
10960
|
toggleColumnCheckboxAndVerifyVisibility,
|
|
10953
10961
|
};
|
|
10954
10962
|
|
|
10963
|
+
const verifyBreadcrumbs = async ({ page, titlesAndRoutes, }) => {
|
|
10964
|
+
await expect(page.getByTestId(COMMON_SELECTORS.breadcrumbHeader)).toHaveCount(titlesAndRoutes.length);
|
|
10965
|
+
await Promise.all(titlesAndRoutes.map(({ title, route }) => expect(page.getByTestId(COMMON_SELECTORS.breadcrumbHeader).getByRole("link", {
|
|
10966
|
+
name: title,
|
|
10967
|
+
exact: true,
|
|
10968
|
+
})).toHaveAttribute("href", route)));
|
|
10969
|
+
};
|
|
10970
|
+
const headerUtils = {
|
|
10971
|
+
verifyBreadcrumbs,
|
|
10972
|
+
};
|
|
10973
|
+
|
|
10955
10974
|
var main$2 = {exports: {}};
|
|
10956
10975
|
|
|
10957
10976
|
var name = "dotenv";
|
|
@@ -11488,5 +11507,5 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
11488
11507
|
});
|
|
11489
11508
|
};
|
|
11490
11509
|
|
|
11491
|
-
export { API_ROUTES, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailosaurUtils, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SlackPage, TAGS_SELECTORS, THIRD_PARTY_ROUTES, USER_AGENTS, WebhooksPage, clearCredentials, commands, definePlaywrightConfig, extractSubdomainFromError, generateStagingData, getGlobalUserState, hyphenize, i18nFixture, initializeCredentials, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, skipTest, stealth as stealthTest, tableUtils, updateCredentials, writeDataToFile };
|
|
11510
|
+
export { API_ROUTES, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailosaurUtils, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SlackPage, TAGS_SELECTORS, THIRD_PARTY_ROUTES, USER_AGENTS, WebhooksPage, clearCredentials, commands, definePlaywrightConfig, extractSubdomainFromError, generateStagingData, getGlobalUserState, headerUtils, hyphenize, i18nFixture, initializeCredentials, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, skipTest, stealth as stealthTest, tableUtils, updateCredentials, writeDataToFile };
|
|
11492
11511
|
//# sourceMappingURL=index.js.map
|