@bigbinary/neeto-playwright-commons 1.12.6 → 1.12.7
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 +1 -2
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +2 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1877,7 +1877,7 @@ declare class EditorPage {
|
|
|
1877
1877
|
*
|
|
1878
1878
|
* text (required): The text to be filled in editor content field.
|
|
1879
1879
|
*
|
|
1880
|
-
* dynamicVariables (optional):
|
|
1880
|
+
* dynamicVariables (optional): An array of key value pairs of dynamic variables used by the product in editor content field.
|
|
1881
1881
|
*
|
|
1882
1882
|
* defaultFontSizeOption (optional): The selected default font size of editor content field. Default is "Paragraph".
|
|
1883
1883
|
*
|
package/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import stealth$1 from 'puppeteer-extra-plugin-stealth';
|
|
|
15
15
|
import Stream$4 from 'stream';
|
|
16
16
|
import require$$0$4 from 'events';
|
|
17
17
|
import { getI18nInstance, initI18n } from 'playwright-i18next-fixture';
|
|
18
|
-
import { isNotPresent, isNotEmpty, humanize, isPresent, dynamicArray } from '@bigbinary/neeto-cist';
|
|
18
|
+
import { isNotPresent, isNotEmpty, humanize, truncate, isPresent, dynamicArray } from '@bigbinary/neeto-cist';
|
|
19
19
|
import http$1 from 'http';
|
|
20
20
|
import Url from 'url';
|
|
21
21
|
import require$$0$5 from 'punycode';
|
|
@@ -24190,8 +24190,7 @@ class EditorPage {
|
|
|
24190
24190
|
await this.page
|
|
24191
24191
|
.getByTestId(NEETO_EDITOR_SELECTORS.dynamicVariableSelector(key))
|
|
24192
24192
|
.click();
|
|
24193
|
-
|
|
24194
|
-
await expect(this.contentField.getByText(formattedValue)).toBeVisible();
|
|
24193
|
+
await expect(this.contentField.getByText(truncate(value, 25))).toBeVisible();
|
|
24195
24194
|
}
|
|
24196
24195
|
};
|
|
24197
24196
|
this.buttonsAndVerifications = {
|