@shopware-ag/acceptance-test-suite 12.0.1 → 12.1.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.mjs +14 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7667,13 +7667,18 @@ const test$7 = test$e.extend({
|
|
|
7667
7667
|
|
|
7668
7668
|
async function getCustomFieldCardLocators(page, customFieldSetName, customFieldName, instanceMeta) {
|
|
7669
7669
|
let customFieldCard;
|
|
7670
|
+
let customFieldLabel;
|
|
7670
7671
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
7671
7672
|
customFieldCard = page.locator(".sw-card").filter({ hasText: translate("administration:customField:general.customFields") });
|
|
7672
7673
|
} else {
|
|
7673
7674
|
customFieldCard = page.locator(".mt-card").filter({ hasText: translate("administration:customField:general.customFields") });
|
|
7674
7675
|
}
|
|
7675
7676
|
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
7676
|
-
|
|
7677
|
+
if (satisfies(instanceMeta.version, "<6.7.4.1")) {
|
|
7678
|
+
customFieldLabel = customFieldCard.locator(".sw-custom-field-set-renderer").locator(".sw-field__label").getByText(customFieldName);
|
|
7679
|
+
} else {
|
|
7680
|
+
customFieldLabel = customFieldCard.locator(".sw-custom-field-set-renderer").locator(".mt-field__label").getByText(customFieldName);
|
|
7681
|
+
}
|
|
7677
7682
|
const customFieldSelect = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
7678
7683
|
return {
|
|
7679
7684
|
customFieldCard,
|
|
@@ -7793,7 +7798,7 @@ class ProductDetail {
|
|
|
7793
7798
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
7794
7799
|
this.releaseDateInput = page.locator(".sw-product-detail-base__labelling-card").locator(".form-control");
|
|
7795
7800
|
} else {
|
|
7796
|
-
this.releaseDateInput = page.locator(".
|
|
7801
|
+
this.releaseDateInput = page.locator(".dp__input");
|
|
7797
7802
|
}
|
|
7798
7803
|
this.uploadMediaButton = page.getByRole("button", { name: translate("administration:product:buttons.uploadFile") });
|
|
7799
7804
|
this.coverImage = page.locator(".sw-product-media-form__cover-image");
|
|
@@ -9200,7 +9205,11 @@ class RuleDetail extends RuleCreate {
|
|
|
9200
9205
|
this.conditionCartLineItemTaxationValue = page.locator(".sw-condition__condition-type-cartLineItemTaxation").locator(".sw-select-selection-list__item");
|
|
9201
9206
|
this.conditionTimeRangeValueFirst = page.locator(".sw-condition-time-range").getByRole("textbox").first();
|
|
9202
9207
|
this.conditionTimeRangeValueSecond = page.locator(".sw-condition-time-range").getByRole("textbox").last();
|
|
9203
|
-
|
|
9208
|
+
if (satisfies(instanceMeta.version, "<6.7.4.1")) {
|
|
9209
|
+
this.conditionOrderCreatedByAdminValue = page.locator(".sw-condition__condition-type-orderCreatedByAdmin").locator(".sw-select__selection");
|
|
9210
|
+
} else {
|
|
9211
|
+
this.conditionOrderCreatedByAdminValue = page.locator(".sw-condition__condition-type-orderCreatedByAdmin").locator(".mt-select-selection-list__input");
|
|
9212
|
+
}
|
|
9204
9213
|
this.conditionFilterModal = page.locator(".sw-modal__header").getByText("Filter");
|
|
9205
9214
|
this.conditionFilterModalCloseButtonX = page.locator(".sw-modal__header").getByRole("button");
|
|
9206
9215
|
this.conditionCartLineItemInStockOperator = page.locator(".sw-condition__condition-type-cartLineItemStock").locator(".sw-single-select__selection-text");
|
|
@@ -11010,8 +11019,10 @@ const BulkEditProducts = test$e.extend({
|
|
|
11010
11019
|
}
|
|
11011
11020
|
if (changes["releaseDate"] != null) {
|
|
11012
11021
|
await AdminProductBulkEdit.changeReleaseDateCheckbox.click();
|
|
11022
|
+
await AdminProductBulkEdit.releaseDateInput.click();
|
|
11013
11023
|
await AdminProductBulkEdit.releaseDateInput.fill(changes["releaseDate"].value);
|
|
11014
11024
|
await AdminProductBulkEdit.releaseDateInput.press("Enter");
|
|
11025
|
+
expect(await AdminProductBulkEdit.releaseDateInput.inputValue()).toBe(changes["releaseDate"].value);
|
|
11015
11026
|
}
|
|
11016
11027
|
if (changes["stock"] != null) {
|
|
11017
11028
|
await AdminProductBulkEdit.changeStockCheckbox.click();
|