@shopware-ag/acceptance-test-suite 12.7.1 → 12.8.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 +18 -4
- package/dist/index.d.ts +18 -4
- package/dist/index.mjs +28 -23
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1600,6 +1600,8 @@ declare const BUNDLED_RESOURCES: {
|
|
|
1600
1600
|
};
|
|
1601
1601
|
contextMenu: {
|
|
1602
1602
|
sendDocument: string;
|
|
1603
|
+
openDocument: string;
|
|
1604
|
+
markAsSent: string;
|
|
1603
1605
|
};
|
|
1604
1606
|
tabs: {
|
|
1605
1607
|
general: string;
|
|
@@ -2607,6 +2609,8 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2607
2609
|
};
|
|
2608
2610
|
contextMenu: {
|
|
2609
2611
|
sendDocument: string;
|
|
2612
|
+
openDocument: string;
|
|
2613
|
+
markAsSent: string;
|
|
2610
2614
|
};
|
|
2611
2615
|
tabs: {
|
|
2612
2616
|
general: string;
|
|
@@ -3562,6 +3566,8 @@ declare const baseNamespaces: {
|
|
|
3562
3566
|
};
|
|
3563
3567
|
contextMenu: {
|
|
3564
3568
|
sendDocument: string;
|
|
3569
|
+
openDocument: string;
|
|
3570
|
+
markAsSent: string;
|
|
3565
3571
|
};
|
|
3566
3572
|
tabs: {
|
|
3567
3573
|
general: string;
|
|
@@ -4889,9 +4895,9 @@ declare class AccountAddressDetails extends BaseAccount {
|
|
|
4889
4895
|
readonly stateDropdown: Locator;
|
|
4890
4896
|
constructor(page: Page);
|
|
4891
4897
|
/**
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4898
|
+
* The address details page is used for both creating and editing addresses. The URL contains the address ID when editing an existing address, but not when creating a new one. Therefore, the addressId parameter is optional.
|
|
4899
|
+
* @param addressId - The ID of the address being edited. This parameter is optional because the same page object is used for creating new addresses, where no address ID is present in the URL.
|
|
4900
|
+
*/
|
|
4895
4901
|
url(addressId?: string): string;
|
|
4896
4902
|
}
|
|
4897
4903
|
|
|
@@ -5144,6 +5150,8 @@ declare class OrderDetail implements PageObject {
|
|
|
5144
5150
|
readonly contextMenuButton: Locator;
|
|
5145
5151
|
readonly contextMenu: Locator;
|
|
5146
5152
|
readonly contextMenuSendDocument: Locator;
|
|
5153
|
+
readonly contextMenuOpenDocument: Locator;
|
|
5154
|
+
readonly contextMenuMarkAsSent: Locator;
|
|
5147
5155
|
readonly sendDocumentModal: Locator;
|
|
5148
5156
|
readonly sendDocumentButton: Locator;
|
|
5149
5157
|
readonly itemsCardHeader: Locator;
|
|
@@ -5167,6 +5175,12 @@ declare class OrderDetail implements PageObject {
|
|
|
5167
5175
|
customFieldLabel: Locator;
|
|
5168
5176
|
customFieldSelect: Locator;
|
|
5169
5177
|
}>;
|
|
5178
|
+
getDocumentRow(index: number): {
|
|
5179
|
+
row: Locator;
|
|
5180
|
+
contextMenuButton: Locator;
|
|
5181
|
+
sentCheckmark: Locator;
|
|
5182
|
+
documentType: Locator;
|
|
5183
|
+
};
|
|
5170
5184
|
}
|
|
5171
5185
|
|
|
5172
5186
|
declare class CustomerListing implements PageObject {
|
|
@@ -6339,7 +6353,7 @@ declare function createNewAdminPageContext(browser: Browser, SalesChannelBaseCon
|
|
|
6339
6353
|
* @param AdminApiContext - The API request context for admin API calls.
|
|
6340
6354
|
* @returns The logged-in admin Page instance.
|
|
6341
6355
|
*/
|
|
6342
|
-
declare function loginToAdministration(adminLoginPage: Page$1, merchant: User, AdminApiContext: FixtureTypes[
|
|
6356
|
+
declare function loginToAdministration(adminLoginPage: Page$1, merchant: User, AdminApiContext: FixtureTypes["AdminApiContext"]): Promise<Page$1>;
|
|
6343
6357
|
|
|
6344
6358
|
/**
|
|
6345
6359
|
* Generic task type that accepts any parameters
|
package/dist/index.d.ts
CHANGED
|
@@ -1600,6 +1600,8 @@ declare const BUNDLED_RESOURCES: {
|
|
|
1600
1600
|
};
|
|
1601
1601
|
contextMenu: {
|
|
1602
1602
|
sendDocument: string;
|
|
1603
|
+
openDocument: string;
|
|
1604
|
+
markAsSent: string;
|
|
1603
1605
|
};
|
|
1604
1606
|
tabs: {
|
|
1605
1607
|
general: string;
|
|
@@ -2607,6 +2609,8 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2607
2609
|
};
|
|
2608
2610
|
contextMenu: {
|
|
2609
2611
|
sendDocument: string;
|
|
2612
|
+
openDocument: string;
|
|
2613
|
+
markAsSent: string;
|
|
2610
2614
|
};
|
|
2611
2615
|
tabs: {
|
|
2612
2616
|
general: string;
|
|
@@ -3562,6 +3566,8 @@ declare const baseNamespaces: {
|
|
|
3562
3566
|
};
|
|
3563
3567
|
contextMenu: {
|
|
3564
3568
|
sendDocument: string;
|
|
3569
|
+
openDocument: string;
|
|
3570
|
+
markAsSent: string;
|
|
3565
3571
|
};
|
|
3566
3572
|
tabs: {
|
|
3567
3573
|
general: string;
|
|
@@ -4889,9 +4895,9 @@ declare class AccountAddressDetails extends BaseAccount {
|
|
|
4889
4895
|
readonly stateDropdown: Locator;
|
|
4890
4896
|
constructor(page: Page);
|
|
4891
4897
|
/**
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4898
|
+
* The address details page is used for both creating and editing addresses. The URL contains the address ID when editing an existing address, but not when creating a new one. Therefore, the addressId parameter is optional.
|
|
4899
|
+
* @param addressId - The ID of the address being edited. This parameter is optional because the same page object is used for creating new addresses, where no address ID is present in the URL.
|
|
4900
|
+
*/
|
|
4895
4901
|
url(addressId?: string): string;
|
|
4896
4902
|
}
|
|
4897
4903
|
|
|
@@ -5144,6 +5150,8 @@ declare class OrderDetail implements PageObject {
|
|
|
5144
5150
|
readonly contextMenuButton: Locator;
|
|
5145
5151
|
readonly contextMenu: Locator;
|
|
5146
5152
|
readonly contextMenuSendDocument: Locator;
|
|
5153
|
+
readonly contextMenuOpenDocument: Locator;
|
|
5154
|
+
readonly contextMenuMarkAsSent: Locator;
|
|
5147
5155
|
readonly sendDocumentModal: Locator;
|
|
5148
5156
|
readonly sendDocumentButton: Locator;
|
|
5149
5157
|
readonly itemsCardHeader: Locator;
|
|
@@ -5167,6 +5175,12 @@ declare class OrderDetail implements PageObject {
|
|
|
5167
5175
|
customFieldLabel: Locator;
|
|
5168
5176
|
customFieldSelect: Locator;
|
|
5169
5177
|
}>;
|
|
5178
|
+
getDocumentRow(index: number): {
|
|
5179
|
+
row: Locator;
|
|
5180
|
+
contextMenuButton: Locator;
|
|
5181
|
+
sentCheckmark: Locator;
|
|
5182
|
+
documentType: Locator;
|
|
5183
|
+
};
|
|
5170
5184
|
}
|
|
5171
5185
|
|
|
5172
5186
|
declare class CustomerListing implements PageObject {
|
|
@@ -6339,7 +6353,7 @@ declare function createNewAdminPageContext(browser: Browser, SalesChannelBaseCon
|
|
|
6339
6353
|
* @param AdminApiContext - The API request context for admin API calls.
|
|
6340
6354
|
* @returns The logged-in admin Page instance.
|
|
6341
6355
|
*/
|
|
6342
|
-
declare function loginToAdministration(adminLoginPage: Page$1, merchant: User, AdminApiContext: FixtureTypes[
|
|
6356
|
+
declare function loginToAdministration(adminLoginPage: Page$1, merchant: User, AdminApiContext: FixtureTypes["AdminApiContext"]): Promise<Page$1>;
|
|
6343
6357
|
|
|
6344
6358
|
/**
|
|
6345
6359
|
* Generic task type that accepts any parameters
|
package/dist/index.mjs
CHANGED
|
@@ -969,7 +969,9 @@ const detail$i = {
|
|
|
969
969
|
openActionsMenu: "Open actions menu"
|
|
970
970
|
};
|
|
971
971
|
const contextMenu$1 = {
|
|
972
|
-
sendDocument: "Send document"
|
|
972
|
+
sendDocument: "Send document",
|
|
973
|
+
openDocument: "Open document",
|
|
974
|
+
markAsSent: "Mark as sent"
|
|
973
975
|
};
|
|
974
976
|
const tabs$a = {
|
|
975
977
|
general: "General",
|
|
@@ -2209,7 +2211,9 @@ const detail$5 = {
|
|
|
2209
2211
|
openActionsMenu: "Aktionsmenü öffnen"
|
|
2210
2212
|
};
|
|
2211
2213
|
const contextMenu = {
|
|
2212
|
-
sendDocument: "Dokument senden"
|
|
2214
|
+
sendDocument: "Dokument senden",
|
|
2215
|
+
openDocument: "Dokument öffnen",
|
|
2216
|
+
markAsSent: "Als gesendet markieren"
|
|
2213
2217
|
};
|
|
2214
2218
|
const tabs$4 = {
|
|
2215
2219
|
general: "Allgemein",
|
|
@@ -3776,11 +3780,7 @@ const test$b = test$e.extend({
|
|
|
3776
3780
|
data: adminUser
|
|
3777
3781
|
});
|
|
3778
3782
|
expect(response.ok()).toBeTruthy();
|
|
3779
|
-
const page = await loginToAdministration(
|
|
3780
|
-
await createNewAdminPageContext(browser, SalesChannelBaseConfig),
|
|
3781
|
-
adminUser,
|
|
3782
|
-
AdminApiContext
|
|
3783
|
-
);
|
|
3783
|
+
const page = await loginToAdministration(await createNewAdminPageContext(browser, SalesChannelBaseConfig), adminUser, AdminApiContext);
|
|
3784
3784
|
LanguageHelper.setForContext(page.context(), languageHelper);
|
|
3785
3785
|
setCurrentContext(page.context());
|
|
3786
3786
|
await use(page);
|
|
@@ -7725,9 +7725,9 @@ class AccountAddressDetails extends BaseAccount {
|
|
|
7725
7725
|
this.saveAddressButton = page.locator(".address-form-submit");
|
|
7726
7726
|
}
|
|
7727
7727
|
/**
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7728
|
+
* The address details page is used for both creating and editing addresses. The URL contains the address ID when editing an existing address, but not when creating a new one. Therefore, the addressId parameter is optional.
|
|
7729
|
+
* @param addressId - The ID of the address being edited. This parameter is optional because the same page object is used for creating new addresses, where no address ID is present in the URL.
|
|
7730
|
+
*/
|
|
7731
7731
|
url(addressId = "") {
|
|
7732
7732
|
if (addressId) {
|
|
7733
7733
|
return `account/address/${addressId}`;
|
|
@@ -7977,9 +7977,9 @@ const test$7 = test$e.extend({
|
|
|
7977
7977
|
StorefrontAccountAddresses: async ({ StorefrontPage, InstanceMeta }, use) => {
|
|
7978
7978
|
await use(new AccountAddresses(StorefrontPage, InstanceMeta));
|
|
7979
7979
|
},
|
|
7980
|
-
/**
|
|
7981
|
-
|
|
7982
|
-
|
|
7980
|
+
/**
|
|
7981
|
+
* @deprecated - Use StorefrontAccountAddressDetails instead.
|
|
7982
|
+
*/
|
|
7983
7983
|
StorefrontAccountAddressCreate: async ({ StorefrontPage }, use) => {
|
|
7984
7984
|
await use(new AccountAddressCreate(StorefrontPage));
|
|
7985
7985
|
},
|
|
@@ -8210,6 +8210,8 @@ class OrderDetail {
|
|
|
8210
8210
|
contextMenuButton;
|
|
8211
8211
|
contextMenu;
|
|
8212
8212
|
contextMenuSendDocument;
|
|
8213
|
+
contextMenuOpenDocument;
|
|
8214
|
+
contextMenuMarkAsSent;
|
|
8213
8215
|
sendDocumentModal;
|
|
8214
8216
|
sendDocumentButton;
|
|
8215
8217
|
itemsCardHeader;
|
|
@@ -8236,6 +8238,8 @@ class OrderDetail {
|
|
|
8236
8238
|
this.documentType = page.locator(".sw-data-grid__cell--documentType-name");
|
|
8237
8239
|
this.contextMenu = page.locator(".sw-context-menu");
|
|
8238
8240
|
this.contextMenuSendDocument = this.contextMenu.getByText(translate("administration:order:contextMenu.sendDocument"));
|
|
8241
|
+
this.contextMenuOpenDocument = this.contextMenu.getByText(translate("administration:order:contextMenu.openDocument"));
|
|
8242
|
+
this.contextMenuMarkAsSent = this.contextMenu.getByText(translate("administration:order:contextMenu.markAsSent"));
|
|
8239
8243
|
this.contextMenuButton = page.getByLabel(translate("administration:order:detail.openActionsMenu"));
|
|
8240
8244
|
this.sendDocumentModal = page.locator(".sw-order-send-document-modal");
|
|
8241
8245
|
this.sendDocumentButton = page.getByRole("button").getByText(translate("administration:order:detail.sendDocument"));
|
|
@@ -8258,6 +8262,15 @@ class OrderDetail {
|
|
|
8258
8262
|
async getCustomFieldCardLocators(customFieldSetName, customFieldTextName) {
|
|
8259
8263
|
return getCustomFieldCardLocators(this.page, customFieldSetName, customFieldTextName, this.instanceMeta);
|
|
8260
8264
|
}
|
|
8265
|
+
getDocumentRow(index) {
|
|
8266
|
+
const documentRow = this.page.locator(".sw-data-grid__body .sw-data-grid__row").nth(index);
|
|
8267
|
+
return {
|
|
8268
|
+
row: documentRow,
|
|
8269
|
+
contextMenuButton: documentRow.getByLabel(translate("administration:order:detail.openActionsMenu")),
|
|
8270
|
+
sentCheckmark: documentRow.locator(".icon--regular-checkmark-xs"),
|
|
8271
|
+
documentType: documentRow.locator(".sw-data-grid__cell--documentType-name")
|
|
8272
|
+
};
|
|
8273
|
+
}
|
|
8261
8274
|
}
|
|
8262
8275
|
|
|
8263
8276
|
class CustomerListing {
|
|
@@ -11678,11 +11691,7 @@ const CheckVisibilityOfServicesBanner = test$e.extend({
|
|
|
11678
11691
|
const task = (customUser) => {
|
|
11679
11692
|
return async function CheckVisibilityOfServicesBanner2() {
|
|
11680
11693
|
const user = customUser ? customUser : await TestDataService.createUser();
|
|
11681
|
-
const adminPage = await loginToAdministration(
|
|
11682
|
-
await createNewAdminPageContext(browser, SalesChannelBaseConfig),
|
|
11683
|
-
user,
|
|
11684
|
-
TestDataService.AdminApiClient
|
|
11685
|
-
);
|
|
11694
|
+
const adminPage = await loginToAdministration(await createNewAdminPageContext(browser, SalesChannelBaseConfig), user, TestDataService.AdminApiClient);
|
|
11686
11695
|
const shopwareServicesAdvertisementBanner = adminPage.locator(".sw-settings-services-dashboard-banner__content").first();
|
|
11687
11696
|
await expect(shopwareServicesAdvertisementBanner).toBeVisible({ timeout: 1e4 });
|
|
11688
11697
|
};
|
|
@@ -11702,11 +11711,7 @@ const CheckAccessToShopwareServices = test$e.extend({
|
|
|
11702
11711
|
user = await TestDataService.getUserById(customUser.id);
|
|
11703
11712
|
user.password = customUser.password;
|
|
11704
11713
|
}
|
|
11705
|
-
const adminPage = await loginToAdministration(
|
|
11706
|
-
await createNewAdminPageContext(browser, SalesChannelBaseConfig),
|
|
11707
|
-
user,
|
|
11708
|
-
TestDataService.AdminApiClient
|
|
11709
|
-
);
|
|
11714
|
+
const adminPage = await loginToAdministration(await createNewAdminPageContext(browser, SalesChannelBaseConfig), user, TestDataService.AdminApiClient);
|
|
11710
11715
|
const shopwareServicesAdvertisementBanner = adminPage.locator(".sw-settings-services-dashboard-banner__content").first();
|
|
11711
11716
|
const shopwareServicesExploreNowButton = shopwareServicesAdvertisementBanner.getByRole("button", {
|
|
11712
11717
|
name: translate("administration:shopwareServices:buttons.exploreNow")
|