@bigbinary/neeto-playwright-commons 4.8.12 → 4.8.13
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.d.ts +1 -0
- package/index.js +8 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -8080,6 +8080,7 @@ declare const NEETO_EDITOR_SELECTORS: {
|
|
|
8080
8080
|
paragraphOption: string;
|
|
8081
8081
|
calloutOption: string;
|
|
8082
8082
|
attachmentPreview: string;
|
|
8083
|
+
attachmentActionsButton: string;
|
|
8083
8084
|
imageUploadLinkButton: string;
|
|
8084
8085
|
errorText: string;
|
|
8085
8086
|
content: string;
|
package/index.js
CHANGED
|
@@ -1523,6 +1523,7 @@ const NEETO_EDITOR_SELECTORS = {
|
|
|
1523
1523
|
paragraphOption: fixedMenuSelector("font-size-option-body2"),
|
|
1524
1524
|
calloutOption: fixedMenuSelector("callout-option"),
|
|
1525
1525
|
attachmentPreview: "ne-attachments-wrapper",
|
|
1526
|
+
attachmentActionsButton: "neeto-editor-attachment-actions",
|
|
1526
1527
|
imageUploadLinkButton: "neeto-editor-media-uploader-link-tab",
|
|
1527
1528
|
errorText: "neeto-editor-error-text",
|
|
1528
1529
|
content: "editor-content",
|
|
@@ -18466,9 +18467,12 @@ class OrganizationPage {
|
|
|
18466
18467
|
const countrySelector = this.page.getByTestId(COMMON_SELECTORS.customSelectContainer("country"));
|
|
18467
18468
|
await countrySelector.click();
|
|
18468
18469
|
await countrySelector.pressSequentially(country);
|
|
18470
|
+
// TODO: Remove the country-select-option fallback once all products use the neeto-atoms version with per-option testids.
|
|
18469
18471
|
await this.page
|
|
18472
|
+
.getByTestId(COMMON_SELECTORS.selectOption(country))
|
|
18473
|
+
.or(this.page
|
|
18470
18474
|
.getByTestId(COMMON_SELECTORS.selectOption("country"))
|
|
18471
|
-
.filter({ hasText: new RegExp(`^${country}$`) })
|
|
18475
|
+
.filter({ hasText: new RegExp(`^${country}$`) }))
|
|
18472
18476
|
.click();
|
|
18473
18477
|
await expect(countrySelector).toContainText(country);
|
|
18474
18478
|
};
|
|
@@ -120934,8 +120938,10 @@ class EditorPage {
|
|
|
120934
120938
|
await fileUploader.setFiles(imagePath);
|
|
120935
120939
|
await expect(this.attachmentPreview).toBeVisible();
|
|
120936
120940
|
if (shouldRemoveAttachment) {
|
|
120941
|
+
// TODO: Remove the dropdownIcon fallback once all products use the v2 neeto-editor.
|
|
120937
120942
|
await this.attachmentPreview
|
|
120938
|
-
.getByTestId(
|
|
120943
|
+
.getByTestId(NEETO_EDITOR_SELECTORS.attachmentActionsButton)
|
|
120944
|
+
.or(this.attachmentPreview.getByTestId(COMMON_SELECTORS.dropdownIcon))
|
|
120939
120945
|
.click();
|
|
120940
120946
|
await this.page
|
|
120941
120947
|
.getByTestId(NEETO_EDITOR_SELECTORS.attachmentPreviewDeleteButton)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-playwright-commons",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.13",
|
|
4
4
|
"description": "A package encapsulating common playwright code across neeto projects.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
|
|
6
6
|
"license": "apache-2.0",
|