@shopware-ag/acceptance-test-suite 5.5.0 → 6.0.0
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/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +24 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -934,6 +934,16 @@ declare class Home implements PageObject {
|
|
|
934
934
|
readonly productListItems: Locator;
|
|
935
935
|
readonly languagesDropdown: Locator;
|
|
936
936
|
readonly currenciesDropdown: Locator;
|
|
937
|
+
readonly consentOnlyTechnicallyRequiredButton: Locator;
|
|
938
|
+
readonly consentConfigureButton: Locator;
|
|
939
|
+
readonly consentAcceptAllCookiesButton: Locator;
|
|
940
|
+
readonly consentCookiePreferences: Locator;
|
|
941
|
+
readonly consentCookiePermissionContent: Locator;
|
|
942
|
+
readonly consentDialog: Locator;
|
|
943
|
+
readonly consentDialogTechnicallyRequiredCheckbox: Locator;
|
|
944
|
+
readonly consentDialogAcceptAllCookiesButton: Locator;
|
|
945
|
+
readonly consentDialogSaveButton: Locator;
|
|
946
|
+
readonly consentCookieBannerContainer: Locator;
|
|
937
947
|
constructor(page: Page);
|
|
938
948
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
939
949
|
url(): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -934,6 +934,16 @@ declare class Home implements PageObject {
|
|
|
934
934
|
readonly productListItems: Locator;
|
|
935
935
|
readonly languagesDropdown: Locator;
|
|
936
936
|
readonly currenciesDropdown: Locator;
|
|
937
|
+
readonly consentOnlyTechnicallyRequiredButton: Locator;
|
|
938
|
+
readonly consentConfigureButton: Locator;
|
|
939
|
+
readonly consentAcceptAllCookiesButton: Locator;
|
|
940
|
+
readonly consentCookiePreferences: Locator;
|
|
941
|
+
readonly consentCookiePermissionContent: Locator;
|
|
942
|
+
readonly consentDialog: Locator;
|
|
943
|
+
readonly consentDialogTechnicallyRequiredCheckbox: Locator;
|
|
944
|
+
readonly consentDialogAcceptAllCookiesButton: Locator;
|
|
945
|
+
readonly consentDialogSaveButton: Locator;
|
|
946
|
+
readonly consentCookieBannerContainer: Locator;
|
|
937
947
|
constructor(page: Page);
|
|
938
948
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
939
949
|
url(): string;
|
package/dist/index.mjs
CHANGED
|
@@ -2765,10 +2765,30 @@ class Home {
|
|
|
2765
2765
|
__publicField$G(this, "productListItems");
|
|
2766
2766
|
__publicField$G(this, "languagesDropdown");
|
|
2767
2767
|
__publicField$G(this, "currenciesDropdown");
|
|
2768
|
+
__publicField$G(this, "consentOnlyTechnicallyRequiredButton");
|
|
2769
|
+
__publicField$G(this, "consentConfigureButton");
|
|
2770
|
+
__publicField$G(this, "consentAcceptAllCookiesButton");
|
|
2771
|
+
__publicField$G(this, "consentCookiePreferences");
|
|
2772
|
+
__publicField$G(this, "consentCookiePermissionContent");
|
|
2773
|
+
__publicField$G(this, "consentDialog");
|
|
2774
|
+
__publicField$G(this, "consentDialogTechnicallyRequiredCheckbox");
|
|
2775
|
+
__publicField$G(this, "consentDialogAcceptAllCookiesButton");
|
|
2776
|
+
__publicField$G(this, "consentDialogSaveButton");
|
|
2777
|
+
__publicField$G(this, "consentCookieBannerContainer");
|
|
2768
2778
|
this.productImages = page.locator(".product-image-link");
|
|
2769
2779
|
this.productListItems = page.getByRole("listitem");
|
|
2770
2780
|
this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
|
|
2771
2781
|
this.currenciesDropdown = page.getByLabel("Shop settings").locator(".currencies-menu");
|
|
2782
|
+
this.consentCookieBannerContainer = page.locator(".cookie-permission-container");
|
|
2783
|
+
this.consentOnlyTechnicallyRequiredButton = page.getByRole("button", { name: "Only technically required" });
|
|
2784
|
+
this.consentConfigureButton = page.getByRole("button", { name: "Configure" });
|
|
2785
|
+
this.consentAcceptAllCookiesButton = page.getByRole("button", { name: "Accept all cookies" });
|
|
2786
|
+
this.consentCookiePreferences = page.getByLabel("Cookie preferences");
|
|
2787
|
+
this.consentCookiePermissionContent = page.locator(".cookie-permission-content");
|
|
2788
|
+
this.consentDialog = page.getByRole("dialog").filter({ hasText: "Cookie preferences" });
|
|
2789
|
+
this.consentDialogTechnicallyRequiredCheckbox = this.consentDialog.getByRole("checkbox", { name: "Technically required" });
|
|
2790
|
+
this.consentDialogSaveButton = this.consentDialog.getByRole("button", { name: "Save" });
|
|
2791
|
+
this.consentDialogAcceptAllCookiesButton = this.consentDialog.getByRole("button", { name: "Accept all cookies" });
|
|
2772
2792
|
}
|
|
2773
2793
|
async getListingItemByProductId(productId) {
|
|
2774
2794
|
const listingItem = this.page.getByRole("listitem").filter({ has: this.page.locator(`[value="${productId}"]`) });
|
|
@@ -3501,7 +3521,7 @@ class ProductDetail {
|
|
|
3501
3521
|
this.uploadMediaButton = page.getByRole("button", { name: "Upload file" });
|
|
3502
3522
|
this.coverImage = page.locator(".sw-product-media-form__cover-image");
|
|
3503
3523
|
this.productImage = page.locator(".sw-media-preview-v2__item");
|
|
3504
|
-
this.variantsTabLink = page.getByRole("
|
|
3524
|
+
this.variantsTabLink = page.getByRole("tab", { name: "Variants" });
|
|
3505
3525
|
this.generateVariantsButton = page.getByRole("button", { name: "Generate variants" });
|
|
3506
3526
|
this.variantsModal = page.getByRole("dialog", { name: "Generate variants" });
|
|
3507
3527
|
this.variantsModalHeadline = this.variantsModal.getByRole("heading", { name: "Generate variants" });
|
|
@@ -3516,7 +3536,7 @@ class ProductDetail {
|
|
|
3516
3536
|
this.propertyOptionSizeSmall = this.propertyOptionGrid.getByLabel("Small");
|
|
3517
3537
|
this.propertyOptionSizeMedium = this.propertyOptionGrid.getByLabel("Medium");
|
|
3518
3538
|
this.propertyOptionSizeLarge = this.propertyOptionGrid.getByLabel("Large");
|
|
3519
|
-
this.specificationsTabLink = page.getByRole("
|
|
3539
|
+
this.specificationsTabLink = page.getByRole("tab", { name: "Specifications" });
|
|
3520
3540
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
3521
3541
|
}
|
|
3522
3542
|
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
@@ -4052,7 +4072,7 @@ class LandingPageCreate {
|
|
|
4052
4072
|
this.salesChannelSelectionList = page.locator(".sw-select").filter({ hasText: "Sales Channels" }).locator(".sw-select-selection-list");
|
|
4053
4073
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
4054
4074
|
this.seoUrlInput = page.getByLabel("SEO URL");
|
|
4055
|
-
this.layoutTab = page.getByRole("
|
|
4075
|
+
this.layoutTab = page.getByRole("tab", { name: "Layout" });
|
|
4056
4076
|
const layoutCardPreview = page.locator(".sw-category-layout-card__preview");
|
|
4057
4077
|
this.layoutEmptyState = layoutCardPreview.locator(".is--empty");
|
|
4058
4078
|
this.assignLayoutButton = page.getByRole("button", { name: "Assign layout" });
|
|
@@ -4106,7 +4126,7 @@ class LandingPageDetail {
|
|
|
4106
4126
|
this.salesChannelSelectionList = page.locator(".sw-select").filter({ hasText: "Sales Channels" }).locator(".sw-select-selection-list");
|
|
4107
4127
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
4108
4128
|
this.seoUrlInput = page.getByLabel("SEO URL");
|
|
4109
|
-
this.layoutTab = page.getByRole("
|
|
4129
|
+
this.layoutTab = page.getByRole("tab", { name: "Layout" });
|
|
4110
4130
|
this.changeLayoutButton = page.getByRole("button", { name: "Change layout" });
|
|
4111
4131
|
this.editInDesignerButton = page.getByRole("button", { name: "Edit in designer" });
|
|
4112
4132
|
const layoutAssignmentCard = page.locator(".sw-category-layout-card");
|