@bigbinary/neeto-playwright-commons 1.26.18 → 1.26.19
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 +19 -1
- package/index.cjs.js.map +1 -1
- package/index.d.ts +13 -47
- package/index.js +19 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -4747,6 +4747,7 @@ const COMMON_SELECTORS = {
|
|
|
4747
4747
|
columnsDropdownContainer: "customize-columns-dropdown-container",
|
|
4748
4748
|
columnsDropdownButton: "columns-dropdown-button",
|
|
4749
4749
|
breadcrumbHeader: "header-breadcrumb",
|
|
4750
|
+
breadcrumb: (title) => `${neetoCist.hyphenate(title)}-breadcrumb`,
|
|
4750
4751
|
header: "neeto-molecules-header",
|
|
4751
4752
|
sidebarSubLink: (label) => `${neetoCist.hyphenate(label)}-sub-link`,
|
|
4752
4753
|
sidebarGoBackButton: (label) => `${neetoCist.hyphenate(label)}-go-back-button`,
|
|
@@ -5958,7 +5959,15 @@ class CustomCommands {
|
|
|
5958
5959
|
this.verifyBreadcrumbs = async (titlesAndRoutes) => {
|
|
5959
5960
|
const breadcrumbHeader = this.page.getByTestId(COMMON_SELECTORS.breadcrumbHeader);
|
|
5960
5961
|
await test.expect(breadcrumbHeader).toHaveCount(titlesAndRoutes.length);
|
|
5961
|
-
await Promise.all(titlesAndRoutes.map(({ title, route }) =>
|
|
5962
|
+
await Promise.all(titlesAndRoutes.map(async ({ title, route }) => {
|
|
5963
|
+
const isRoutePresent = neetoCist.isPresent(route);
|
|
5964
|
+
const breadcrumb = isRoutePresent
|
|
5965
|
+
? breadcrumbHeader.getByRole("link", { name: title, exact: true })
|
|
5966
|
+
: breadcrumbHeader.getByTestId(COMMON_SELECTORS.breadcrumb(title));
|
|
5967
|
+
return isRoutePresent
|
|
5968
|
+
? await test.expect(breadcrumb).toHaveAttribute("href", route)
|
|
5969
|
+
: await test.expect(breadcrumb).toBeVisible();
|
|
5970
|
+
}));
|
|
5962
5971
|
};
|
|
5963
5972
|
this.uploadFileViaDispatchV2 = async ({ droppableZone = this.page.getByTestId(COMMON_SELECTORS.fileUploadBody), dispatchEvent = "drop", timeout = 45000, file, }) => {
|
|
5964
5973
|
const serializedFile = await serializeFileForBrowser(file);
|
|
@@ -117159,6 +117168,9 @@ class ZapierPage extends IntegrationBase {
|
|
|
117159
117168
|
});
|
|
117160
117169
|
await this.zapierWebPage.close();
|
|
117161
117170
|
};
|
|
117171
|
+
/**
|
|
117172
|
+
* @deprecated This method is deprecated. Use reconnectAccount instead.
|
|
117173
|
+
*/
|
|
117162
117174
|
this.reconnectAccountAndPublish = async (zapierApiKey, appName) => {
|
|
117163
117175
|
var _a;
|
|
117164
117176
|
await this.zapierWebPage.goto(THIRD_PARTY_ROUTES.zapier.zapEditor(process.env.ZAP_ID));
|
|
@@ -117241,6 +117253,9 @@ class ZapierPage extends IntegrationBase {
|
|
|
117241
117253
|
.waitFor();
|
|
117242
117254
|
await test.expect(this.zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.publishingZapHeading)).toBeHidden({ timeout: 15000 });
|
|
117243
117255
|
};
|
|
117256
|
+
/**
|
|
117257
|
+
* @deprecated This method is deprecated. You do not need to call this method if reconnectAccount is used.
|
|
117258
|
+
*/
|
|
117244
117259
|
this.deleteAllConnections = async (zapierAppLink) => {
|
|
117245
117260
|
await this.zapierWebPage.goto(zapierAppLink);
|
|
117246
117261
|
await this.zapierWebPage.waitForLoadState();
|
|
@@ -119927,6 +119942,9 @@ const verifyBreadcrumbs = async ({ page, titlesAndRoutes, }) => {
|
|
|
119927
119942
|
exact: true,
|
|
119928
119943
|
})).toHaveAttribute("href", route)));
|
|
119929
119944
|
};
|
|
119945
|
+
/**
|
|
119946
|
+
* @deprecated This is deprecated. Use neetoPlaywrightUtilities.verifyBreadcrumbs instead.
|
|
119947
|
+
*/
|
|
119930
119948
|
const headerUtils = {
|
|
119931
119949
|
verifyBreadcrumbs,
|
|
119932
119950
|
};
|