@bigbinary/neeto-playwright-commons 1.17.7 → 1.17.8
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 -11
- package/index.cjs.js.map +1 -1
- package/index.d.ts +15 -4
- package/index.js +12 -11
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -798,7 +798,8 @@ const TABLE_SELECTORS = {
|
|
|
798
798
|
|
|
799
799
|
const THEMES_SELECTORS = {
|
|
800
800
|
colorPickerDropdownContainer: (colorHex) => `${colorHex}-dropdown-container`,
|
|
801
|
-
|
|
801
|
+
baseThemeStyle: (styleType) => `theme-style-${neetoCist.hyphenate(styleType)}`,
|
|
802
|
+
introPageThemeStyle: (styleType) => `intro-page-theme-style-${neetoCist.hyphenate(styleType)}`,
|
|
802
803
|
};
|
|
803
804
|
|
|
804
805
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -12284,19 +12285,19 @@ const hexToRGBA = (hex) => {
|
|
|
12284
12285
|
class ColorPickerUtils {
|
|
12285
12286
|
constructor(page) {
|
|
12286
12287
|
this.page = page;
|
|
12287
|
-
this.pickColor = async (
|
|
12288
|
+
this.pickColor = async (themeLocator, color) => {
|
|
12288
12289
|
const colorPickerInput = this.page
|
|
12289
12290
|
.getByTestId(EMBED_SELECTORS.colorpickerEditableInput)
|
|
12290
12291
|
.getByTestId(EMBED_SELECTORS.colorpickerEditableInputTextbox);
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
.
|
|
12294
|
-
.
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12292
|
+
const colorPickerButton = themeLocator.getByTestId(EMBED_SELECTORS.colorPickerTarget);
|
|
12293
|
+
await test$1.expect(async () => {
|
|
12294
|
+
await colorPickerButton.click();
|
|
12295
|
+
await test$1.expect(colorPickerInput).toBeVisible();
|
|
12296
|
+
await colorPickerInput.fill(color.replace("#", ""));
|
|
12297
|
+
await test$1.expect(this.page.getByTestId(THEMES_SELECTORS.colorPickerDropdownContainer(color))).toBeVisible();
|
|
12298
|
+
await colorPickerInput.press("Escape");
|
|
12299
|
+
await test$1.expect(colorPickerInput).toBeHidden();
|
|
12300
|
+
}).toPass({ timeout: 40000 });
|
|
12300
12301
|
};
|
|
12301
12302
|
this.hexToRGBA = (hex) => {
|
|
12302
12303
|
let r = 0, g = 0, b = 0, a = 1;
|