@shopware-ag/acceptance-test-suite 12.21.0 → 12.21.1
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +8 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6065,6 +6065,7 @@ declare class CustomerBulkEdit implements PageObject {
|
|
|
6065
6065
|
readonly customFieldCheckbox: Locator;
|
|
6066
6066
|
readonly customFieldInput: Locator;
|
|
6067
6067
|
readonly customFieldArrowRightButton: Locator;
|
|
6068
|
+
readonly customFieldSet: (customFieldSetName: string) => Locator;
|
|
6068
6069
|
/**
|
|
6069
6070
|
* Confirmation modal
|
|
6070
6071
|
*/
|
|
@@ -6074,10 +6075,10 @@ declare class CustomerBulkEdit implements PageObject {
|
|
|
6074
6075
|
readonly confirmModalSuccessHeader: Locator;
|
|
6075
6076
|
readonly confirmModalSuccessCloseButton: Locator;
|
|
6076
6077
|
readonly page: Page;
|
|
6077
|
-
|
|
6078
|
+
readonly instanceMeta?: HelperFixtureTypes["InstanceMeta"];
|
|
6079
|
+
constructor(page: Page, instanceMeta?: HelperFixtureTypes["InstanceMeta"]);
|
|
6078
6080
|
getPageHeadline(customerCount: number): Promise<Locator>;
|
|
6079
6081
|
getCustomFieldInputByName(customFieldName: string): Promise<Locator>;
|
|
6080
|
-
getCustomFieldLinkByName(customFieldSetName: string): Promise<Locator>;
|
|
6081
6082
|
url(): string;
|
|
6082
6083
|
}
|
|
6083
6084
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6065,6 +6065,7 @@ declare class CustomerBulkEdit implements PageObject {
|
|
|
6065
6065
|
readonly customFieldCheckbox: Locator;
|
|
6066
6066
|
readonly customFieldInput: Locator;
|
|
6067
6067
|
readonly customFieldArrowRightButton: Locator;
|
|
6068
|
+
readonly customFieldSet: (customFieldSetName: string) => Locator;
|
|
6068
6069
|
/**
|
|
6069
6070
|
* Confirmation modal
|
|
6070
6071
|
*/
|
|
@@ -6074,10 +6075,10 @@ declare class CustomerBulkEdit implements PageObject {
|
|
|
6074
6075
|
readonly confirmModalSuccessHeader: Locator;
|
|
6075
6076
|
readonly confirmModalSuccessCloseButton: Locator;
|
|
6076
6077
|
readonly page: Page;
|
|
6077
|
-
|
|
6078
|
+
readonly instanceMeta?: HelperFixtureTypes["InstanceMeta"];
|
|
6079
|
+
constructor(page: Page, instanceMeta?: HelperFixtureTypes["InstanceMeta"]);
|
|
6078
6080
|
getPageHeadline(customerCount: number): Promise<Locator>;
|
|
6079
6081
|
getCustomFieldInputByName(customFieldName: string): Promise<Locator>;
|
|
6080
|
-
getCustomFieldLinkByName(customFieldSetName: string): Promise<Locator>;
|
|
6081
6082
|
url(): string;
|
|
6082
6083
|
}
|
|
6083
6084
|
|
package/dist/index.mjs
CHANGED
|
@@ -10513,6 +10513,7 @@ class CustomerBulkEdit {
|
|
|
10513
10513
|
customFieldCheckbox;
|
|
10514
10514
|
customFieldInput;
|
|
10515
10515
|
customFieldArrowRightButton;
|
|
10516
|
+
customFieldSet;
|
|
10516
10517
|
/**
|
|
10517
10518
|
* Confirmation modal
|
|
10518
10519
|
*/
|
|
@@ -10522,8 +10523,10 @@ class CustomerBulkEdit {
|
|
|
10522
10523
|
confirmModalSuccessHeader;
|
|
10523
10524
|
confirmModalSuccessCloseButton;
|
|
10524
10525
|
page;
|
|
10525
|
-
|
|
10526
|
+
instanceMeta;
|
|
10527
|
+
constructor(page, instanceMeta) {
|
|
10526
10528
|
this.page = page;
|
|
10529
|
+
this.instanceMeta = instanceMeta;
|
|
10527
10530
|
this.applyChangesButton = page.getByRole("button", { name: translate("administration:customer:bulkEdit.applyChanges") });
|
|
10528
10531
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
10529
10532
|
this.changeCustomerGroupCheckbox = page.getByRole("checkbox", { name: translate("administration:customer:bulkEdit.changes.customerGroup") });
|
|
@@ -10543,6 +10546,7 @@ class CustomerBulkEdit {
|
|
|
10543
10546
|
this.customFieldArrowRightButton = customFields.locator(".sw-tabs__arrow--right");
|
|
10544
10547
|
this.customFieldCheckbox = customFields.getByRole("checkbox");
|
|
10545
10548
|
this.customFieldInput = customFields.getByRole("textbox");
|
|
10549
|
+
this.customFieldSet = (customFieldSetName) => this.instanceMeta?.features["V6_8_0_0"] ? customFields.locator(".mt-tabs__item").getByText(customFieldSetName, { exact: true }) : this.page.locator("a").filter({ hasText: customFieldSetName });
|
|
10546
10550
|
this.confirmModal = page.locator(".sw-bulk-edit-save-modal");
|
|
10547
10551
|
this.confirmModalApplyChangesButton = this.confirmModal.getByRole("button", { name: translate("administration:customer:bulkEdit.applyChanges") });
|
|
10548
10552
|
this.confirmModalLoadingSpinner = this.confirmModal.locator(".sw-bulk-edit-save-modal__loading-icon");
|
|
@@ -10556,11 +10560,6 @@ class CustomerBulkEdit {
|
|
|
10556
10560
|
async getCustomFieldInputByName(customFieldName) {
|
|
10557
10561
|
return this.page.getByRole("textbox", { name: customFieldName });
|
|
10558
10562
|
}
|
|
10559
|
-
async getCustomFieldLinkByName(customFieldSetName) {
|
|
10560
|
-
return this.page.locator("a").filter({
|
|
10561
|
-
hasText: `${customFieldSetName}`
|
|
10562
|
-
});
|
|
10563
|
-
}
|
|
10564
10563
|
url() {
|
|
10565
10564
|
return "#/sw/bulk/edit/customer";
|
|
10566
10565
|
}
|
|
@@ -11441,8 +11440,8 @@ const test$6 = test$e.extend({
|
|
|
11441
11440
|
AdminProductBulkEdit: async ({ AdminPage }, use) => {
|
|
11442
11441
|
await use(new ProductBulkEdit(AdminPage));
|
|
11443
11442
|
},
|
|
11444
|
-
AdminCustomerBulkEdit: async ({ AdminPage }, use) => {
|
|
11445
|
-
await use(new CustomerBulkEdit(AdminPage));
|
|
11443
|
+
AdminCustomerBulkEdit: async ({ AdminPage, InstanceMeta }, use) => {
|
|
11444
|
+
await use(new CustomerBulkEdit(AdminPage, InstanceMeta));
|
|
11446
11445
|
},
|
|
11447
11446
|
AdminSettingsListing: async ({ AdminPage }, use) => {
|
|
11448
11447
|
await use(new SettingsListing(AdminPage));
|
|
@@ -12299,7 +12298,7 @@ const BulkEditCustomers = test$e.extend({
|
|
|
12299
12298
|
}
|
|
12300
12299
|
}
|
|
12301
12300
|
if (customFieldData) {
|
|
12302
|
-
const customFieldSet =
|
|
12301
|
+
const customFieldSet = AdminCustomerBulkEdit.customFieldSet(customFieldData.customFieldSetName);
|
|
12303
12302
|
while (!await customFieldSet.isVisible()) {
|
|
12304
12303
|
await AdminCustomerBulkEdit.customFieldArrowRightButton.click();
|
|
12305
12304
|
}
|