@bigbinary/neeto-playwright-commons 1.25.0 → 1.25.1
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 +11 -12
- package/index.cjs.js.map +1 -1
- package/index.js +11 -12
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4830,9 +4830,9 @@ const NEETO_EDITOR_SELECTORS = {
|
|
|
4830
4830
|
todoListOption: optionSelector("todoList"),
|
|
4831
4831
|
editorMenuWrapper: "neeto-editor-fixed-menu-wrapper",
|
|
4832
4832
|
dataEmojiType: (type) => `[data-emoji="${type}"]`,
|
|
4833
|
-
//Use data-
|
|
4833
|
+
//Use data-testid once https://github.com/neetozone/neeto-editor/issues/1651 is resolved
|
|
4834
4834
|
calloutContent: ".callout-content",
|
|
4835
|
-
//Use data-
|
|
4835
|
+
//Use data-testid once https://github.com/neetozone/neeto-editor/issues/1648 is resolved
|
|
4836
4836
|
calloutTypeOption: ".neeto-editor-callout-dropdown__type-option",
|
|
4837
4837
|
editorMediaUploaderTab: "neeto-editor-media-uploader-local-tab",
|
|
4838
4838
|
dynamicVariableSelector: (variable) => `dynamic-variables-list-item-${joinHyphenCase(variable)}`,
|
|
@@ -113922,7 +113922,7 @@ class HelpAndProfilePage {
|
|
|
113922
113922
|
const replayAppLink = this.page.getByTestId(COMMON_SELECTORS.appLink("Replay"));
|
|
113923
113923
|
const searchInput = this.page.getByTestId(COMMON_SELECTORS.productSwitcherSearchInput);
|
|
113924
113924
|
await searchInput.fill(faker.word.words(3));
|
|
113925
|
-
//TODO: Use data-
|
|
113925
|
+
//TODO: Use data-testid label when this https://github.com/bigbinary/neeto-molecules/issues/2114 is resolved
|
|
113926
113926
|
await expect(this.page.getByText(this.t("neetoMolecules.productSwitcher.noApps"))).toBeVisible();
|
|
113927
113927
|
await searchInput.fill(searchQueryPartial);
|
|
113928
113928
|
await Promise.all([
|
|
@@ -113950,7 +113950,7 @@ class HelpAndProfilePage {
|
|
|
113950
113950
|
const replayAppLink = this.page.getByTestId(COMMON_SELECTORS.appLink("Replay"));
|
|
113951
113951
|
const searchInput = this.page.getByTestId(COMMON_SELECTORS.productSwitcherSearchInput);
|
|
113952
113952
|
await searchInput.fill(faker.word.words(3));
|
|
113953
|
-
//TODO: Use data-
|
|
113953
|
+
//TODO: Use data-testid label when this https://github.com/bigbinary/neeto-molecules/issues/2114 is resolved
|
|
113954
113954
|
await expect(this.page.getByText(this.t("neetoMolecules.productSwitcher.noApps"))).toBeVisible();
|
|
113955
113955
|
await searchInput.fill(searchQueryPartial);
|
|
113956
113956
|
await Promise.all([
|
|
@@ -116764,7 +116764,7 @@ class ZapierPage extends IntegrationBase {
|
|
|
116764
116764
|
await signInPage.waitForLoadState();
|
|
116765
116765
|
await expect(signInPage.getByRole("heading", { name: ZAPIER_WEB_TEXTS.loading })).toBeHidden({ timeout: 10000 });
|
|
116766
116766
|
// The zapier connect page have two custom fm-prettytext boxes
|
|
116767
|
-
// (not an input/textarea) without aria-label or data-
|
|
116767
|
+
// (not an input/textarea) without aria-label or data-testid
|
|
116768
116768
|
const prettyTextBox = signInPage.locator(ZAPIER_SELECTORS.fmPrettytext);
|
|
116769
116769
|
// eslint-disable-next-line playwright/no-nth-methods
|
|
116770
116770
|
const subdomainBox = prettyTextBox.nth(0);
|
|
@@ -117054,8 +117054,8 @@ class EditorPage {
|
|
|
117054
117054
|
.all();
|
|
117055
117055
|
(await this.moreMenuSelector.isVisible()) && fixedMenuButtons.pop();
|
|
117056
117056
|
return Promise.all(fixedMenuButtons.map(async (button) => {
|
|
117057
|
-
const
|
|
117058
|
-
return this.cleanString(
|
|
117057
|
+
const dataTestid = await button.getAttribute("data-testid");
|
|
117058
|
+
return this.cleanString(dataTestid);
|
|
117059
117059
|
}));
|
|
117060
117060
|
};
|
|
117061
117061
|
this.moreMenuOptions = async () => {
|
|
@@ -117063,8 +117063,8 @@ class EditorPage {
|
|
|
117063
117063
|
const dropdownContainer = this.page.getByTestId(COMMON_SELECTORS.dropdownContainer);
|
|
117064
117064
|
const moreMenuButtons = await dropdownContainer.getByRole("button").all();
|
|
117065
117065
|
const moreMenuButtonLocators = Promise.all(moreMenuButtons.map(async (button) => {
|
|
117066
|
-
const
|
|
117067
|
-
return this.cleanString(
|
|
117066
|
+
const dataTestid = await button.getAttribute("data-testid");
|
|
117067
|
+
return this.cleanString(dataTestid);
|
|
117068
117068
|
}));
|
|
117069
117069
|
await this.moreMenuSelector.click();
|
|
117070
117070
|
await expect(dropdownContainer).toBeHidden();
|
|
@@ -117079,8 +117079,8 @@ class EditorPage {
|
|
|
117079
117079
|
.getByRole("button")
|
|
117080
117080
|
.all();
|
|
117081
117081
|
const headingLevels = (await Promise.all(headingButtons.map(async (button) => {
|
|
117082
|
-
const
|
|
117083
|
-
const headingLevel =
|
|
117082
|
+
const dataTestid = await button.getAttribute("data-testid");
|
|
117083
|
+
const headingLevel = dataTestid === null || dataTestid === void 0 ? void 0 : dataTestid.split("-").pop();
|
|
117084
117084
|
return /^h[1-5]$/.test(headingLevel || "") ? headingLevel : null;
|
|
117085
117085
|
}))).filter(Boolean);
|
|
117086
117086
|
const fontSizeDropdown = this.editorWrapper.getByTestId(NEETO_EDITOR_SELECTORS.fontSize);
|
|
@@ -124102,7 +124102,6 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
124102
124102
|
...globalOverrides,
|
|
124103
124103
|
use: {
|
|
124104
124104
|
baseURL: process.env.BASE_URL,
|
|
124105
|
-
testIdAttribute: "data-cy",
|
|
124106
124105
|
trace: "on",
|
|
124107
124106
|
screenshot: "only-on-failure",
|
|
124108
124107
|
navigationTimeout: 35000,
|