@shopware-ag/acceptance-test-suite 12.7.1 → 12.8.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 +21 -4
- package/dist/index.d.ts +21 -4
- package/dist/index.mjs +35 -26
- 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;
|
|
@@ -2114,6 +2116,7 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2114
2116
|
skipToContentLink: string;
|
|
2115
2117
|
searchInputAriaLabel: string;
|
|
2116
2118
|
wishlistIcon: string;
|
|
2119
|
+
shoppingCart: string;
|
|
2117
2120
|
};
|
|
2118
2121
|
readonly "storefront/home": {
|
|
2119
2122
|
account: {
|
|
@@ -2607,6 +2610,8 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2607
2610
|
};
|
|
2608
2611
|
contextMenu: {
|
|
2609
2612
|
sendDocument: string;
|
|
2613
|
+
openDocument: string;
|
|
2614
|
+
markAsSent: string;
|
|
2610
2615
|
};
|
|
2611
2616
|
tabs: {
|
|
2612
2617
|
general: string;
|
|
@@ -3093,6 +3098,7 @@ declare const BUNDLED_RESOURCES: {
|
|
|
3093
3098
|
skipToContentLink: string;
|
|
3094
3099
|
searchInputAriaLabel: string;
|
|
3095
3100
|
wishlistIcon: string;
|
|
3101
|
+
shoppingCart: string;
|
|
3096
3102
|
};
|
|
3097
3103
|
readonly "storefront/home": {
|
|
3098
3104
|
account: {
|
|
@@ -3562,6 +3568,8 @@ declare const baseNamespaces: {
|
|
|
3562
3568
|
};
|
|
3563
3569
|
contextMenu: {
|
|
3564
3570
|
sendDocument: string;
|
|
3571
|
+
openDocument: string;
|
|
3572
|
+
markAsSent: string;
|
|
3565
3573
|
};
|
|
3566
3574
|
tabs: {
|
|
3567
3575
|
general: string;
|
|
@@ -4078,6 +4086,7 @@ declare const baseNamespaces: {
|
|
|
4078
4086
|
skipToContentLink: string;
|
|
4079
4087
|
searchInputAriaLabel: string;
|
|
4080
4088
|
wishlistIcon: string;
|
|
4089
|
+
shoppingCart: string;
|
|
4081
4090
|
};
|
|
4082
4091
|
readonly home: {
|
|
4083
4092
|
account: {
|
|
@@ -4889,9 +4898,9 @@ declare class AccountAddressDetails extends BaseAccount {
|
|
|
4889
4898
|
readonly stateDropdown: Locator;
|
|
4890
4899
|
constructor(page: Page);
|
|
4891
4900
|
/**
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4901
|
+
* 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.
|
|
4902
|
+
* @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.
|
|
4903
|
+
*/
|
|
4895
4904
|
url(addressId?: string): string;
|
|
4896
4905
|
}
|
|
4897
4906
|
|
|
@@ -5144,6 +5153,8 @@ declare class OrderDetail implements PageObject {
|
|
|
5144
5153
|
readonly contextMenuButton: Locator;
|
|
5145
5154
|
readonly contextMenu: Locator;
|
|
5146
5155
|
readonly contextMenuSendDocument: Locator;
|
|
5156
|
+
readonly contextMenuOpenDocument: Locator;
|
|
5157
|
+
readonly contextMenuMarkAsSent: Locator;
|
|
5147
5158
|
readonly sendDocumentModal: Locator;
|
|
5148
5159
|
readonly sendDocumentButton: Locator;
|
|
5149
5160
|
readonly itemsCardHeader: Locator;
|
|
@@ -5167,6 +5178,12 @@ declare class OrderDetail implements PageObject {
|
|
|
5167
5178
|
customFieldLabel: Locator;
|
|
5168
5179
|
customFieldSelect: Locator;
|
|
5169
5180
|
}>;
|
|
5181
|
+
getDocumentRow(index: number): {
|
|
5182
|
+
row: Locator;
|
|
5183
|
+
contextMenuButton: Locator;
|
|
5184
|
+
sentCheckmark: Locator;
|
|
5185
|
+
documentType: Locator;
|
|
5186
|
+
};
|
|
5170
5187
|
}
|
|
5171
5188
|
|
|
5172
5189
|
declare class CustomerListing implements PageObject {
|
|
@@ -6339,7 +6356,7 @@ declare function createNewAdminPageContext(browser: Browser, SalesChannelBaseCon
|
|
|
6339
6356
|
* @param AdminApiContext - The API request context for admin API calls.
|
|
6340
6357
|
* @returns The logged-in admin Page instance.
|
|
6341
6358
|
*/
|
|
6342
|
-
declare function loginToAdministration(adminLoginPage: Page$1, merchant: User, AdminApiContext: FixtureTypes[
|
|
6359
|
+
declare function loginToAdministration(adminLoginPage: Page$1, merchant: User, AdminApiContext: FixtureTypes["AdminApiContext"]): Promise<Page$1>;
|
|
6343
6360
|
|
|
6344
6361
|
/**
|
|
6345
6362
|
* 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;
|
|
@@ -2114,6 +2116,7 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2114
2116
|
skipToContentLink: string;
|
|
2115
2117
|
searchInputAriaLabel: string;
|
|
2116
2118
|
wishlistIcon: string;
|
|
2119
|
+
shoppingCart: string;
|
|
2117
2120
|
};
|
|
2118
2121
|
readonly "storefront/home": {
|
|
2119
2122
|
account: {
|
|
@@ -2607,6 +2610,8 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2607
2610
|
};
|
|
2608
2611
|
contextMenu: {
|
|
2609
2612
|
sendDocument: string;
|
|
2613
|
+
openDocument: string;
|
|
2614
|
+
markAsSent: string;
|
|
2610
2615
|
};
|
|
2611
2616
|
tabs: {
|
|
2612
2617
|
general: string;
|
|
@@ -3093,6 +3098,7 @@ declare const BUNDLED_RESOURCES: {
|
|
|
3093
3098
|
skipToContentLink: string;
|
|
3094
3099
|
searchInputAriaLabel: string;
|
|
3095
3100
|
wishlistIcon: string;
|
|
3101
|
+
shoppingCart: string;
|
|
3096
3102
|
};
|
|
3097
3103
|
readonly "storefront/home": {
|
|
3098
3104
|
account: {
|
|
@@ -3562,6 +3568,8 @@ declare const baseNamespaces: {
|
|
|
3562
3568
|
};
|
|
3563
3569
|
contextMenu: {
|
|
3564
3570
|
sendDocument: string;
|
|
3571
|
+
openDocument: string;
|
|
3572
|
+
markAsSent: string;
|
|
3565
3573
|
};
|
|
3566
3574
|
tabs: {
|
|
3567
3575
|
general: string;
|
|
@@ -4078,6 +4086,7 @@ declare const baseNamespaces: {
|
|
|
4078
4086
|
skipToContentLink: string;
|
|
4079
4087
|
searchInputAriaLabel: string;
|
|
4080
4088
|
wishlistIcon: string;
|
|
4089
|
+
shoppingCart: string;
|
|
4081
4090
|
};
|
|
4082
4091
|
readonly home: {
|
|
4083
4092
|
account: {
|
|
@@ -4889,9 +4898,9 @@ declare class AccountAddressDetails extends BaseAccount {
|
|
|
4889
4898
|
readonly stateDropdown: Locator;
|
|
4890
4899
|
constructor(page: Page);
|
|
4891
4900
|
/**
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4901
|
+
* 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.
|
|
4902
|
+
* @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.
|
|
4903
|
+
*/
|
|
4895
4904
|
url(addressId?: string): string;
|
|
4896
4905
|
}
|
|
4897
4906
|
|
|
@@ -5144,6 +5153,8 @@ declare class OrderDetail implements PageObject {
|
|
|
5144
5153
|
readonly contextMenuButton: Locator;
|
|
5145
5154
|
readonly contextMenu: Locator;
|
|
5146
5155
|
readonly contextMenuSendDocument: Locator;
|
|
5156
|
+
readonly contextMenuOpenDocument: Locator;
|
|
5157
|
+
readonly contextMenuMarkAsSent: Locator;
|
|
5147
5158
|
readonly sendDocumentModal: Locator;
|
|
5148
5159
|
readonly sendDocumentButton: Locator;
|
|
5149
5160
|
readonly itemsCardHeader: Locator;
|
|
@@ -5167,6 +5178,12 @@ declare class OrderDetail implements PageObject {
|
|
|
5167
5178
|
customFieldLabel: Locator;
|
|
5168
5179
|
customFieldSelect: Locator;
|
|
5169
5180
|
}>;
|
|
5181
|
+
getDocumentRow(index: number): {
|
|
5182
|
+
row: Locator;
|
|
5183
|
+
contextMenuButton: Locator;
|
|
5184
|
+
sentCheckmark: Locator;
|
|
5185
|
+
documentType: Locator;
|
|
5186
|
+
};
|
|
5170
5187
|
}
|
|
5171
5188
|
|
|
5172
5189
|
declare class CustomerListing implements PageObject {
|
|
@@ -6339,7 +6356,7 @@ declare function createNewAdminPageContext(browser: Browser, SalesChannelBaseCon
|
|
|
6339
6356
|
* @param AdminApiContext - The API request context for admin API calls.
|
|
6340
6357
|
* @returns The logged-in admin Page instance.
|
|
6341
6358
|
*/
|
|
6342
|
-
declare function loginToAdministration(adminLoginPage: Page$1, merchant: User, AdminApiContext: FixtureTypes[
|
|
6359
|
+
declare function loginToAdministration(adminLoginPage: Page$1, merchant: User, AdminApiContext: FixtureTypes["AdminApiContext"]): Promise<Page$1>;
|
|
6343
6360
|
|
|
6344
6361
|
/**
|
|
6345
6362
|
* 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",
|
|
@@ -1597,13 +1599,15 @@ const languageDropdown$1 = "Change language";
|
|
|
1597
1599
|
const skipToContentLink$1 = "Skip to main content";
|
|
1598
1600
|
const searchInputAriaLabel$1 = "Enter search term...";
|
|
1599
1601
|
const wishlistIcon$1 = "Wishlist";
|
|
1602
|
+
const shoppingCart$1 = "Shopping cart";
|
|
1600
1603
|
const storefrontHeader = {
|
|
1601
1604
|
topBarNav: topBarNav$1,
|
|
1602
1605
|
currencyDropdown: currencyDropdown$1,
|
|
1603
1606
|
languageDropdown: languageDropdown$1,
|
|
1604
1607
|
skipToContentLink: skipToContentLink$1,
|
|
1605
1608
|
searchInputAriaLabel: searchInputAriaLabel$1,
|
|
1606
|
-
wishlistIcon: wishlistIcon$1
|
|
1609
|
+
wishlistIcon: wishlistIcon$1,
|
|
1610
|
+
shoppingCart: shoppingCart$1
|
|
1607
1611
|
};
|
|
1608
1612
|
|
|
1609
1613
|
const account$1 = {
|
|
@@ -2209,7 +2213,9 @@ const detail$5 = {
|
|
|
2209
2213
|
openActionsMenu: "Aktionsmenü öffnen"
|
|
2210
2214
|
};
|
|
2211
2215
|
const contextMenu = {
|
|
2212
|
-
sendDocument: "Dokument senden"
|
|
2216
|
+
sendDocument: "Dokument senden",
|
|
2217
|
+
openDocument: "Dokument öffnen",
|
|
2218
|
+
markAsSent: "Als gesendet markieren"
|
|
2213
2219
|
};
|
|
2214
2220
|
const tabs$4 = {
|
|
2215
2221
|
general: "Allgemein",
|
|
@@ -2791,13 +2797,15 @@ const languageDropdown = "Sprache ändern";
|
|
|
2791
2797
|
const skipToContentLink = "Zum Hauptinhalt springen";
|
|
2792
2798
|
const searchInputAriaLabel = "Suchbegriff eingeben ...";
|
|
2793
2799
|
const wishlistIcon = "Merkzettel";
|
|
2800
|
+
const shoppingCart = "Warenkorb";
|
|
2794
2801
|
const deStorefrontHeader = {
|
|
2795
2802
|
topBarNav: topBarNav,
|
|
2796
2803
|
currencyDropdown: currencyDropdown,
|
|
2797
2804
|
languageDropdown: languageDropdown,
|
|
2798
2805
|
skipToContentLink: skipToContentLink,
|
|
2799
2806
|
searchInputAriaLabel: searchInputAriaLabel,
|
|
2800
|
-
wishlistIcon: wishlistIcon
|
|
2807
|
+
wishlistIcon: wishlistIcon,
|
|
2808
|
+
shoppingCart: shoppingCart
|
|
2801
2809
|
};
|
|
2802
2810
|
|
|
2803
2811
|
const account = {
|
|
@@ -3776,11 +3784,7 @@ const test$b = test$e.extend({
|
|
|
3776
3784
|
data: adminUser
|
|
3777
3785
|
});
|
|
3778
3786
|
expect(response.ok()).toBeTruthy();
|
|
3779
|
-
const page = await loginToAdministration(
|
|
3780
|
-
await createNewAdminPageContext(browser, SalesChannelBaseConfig),
|
|
3781
|
-
adminUser,
|
|
3782
|
-
AdminApiContext
|
|
3783
|
-
);
|
|
3787
|
+
const page = await loginToAdministration(await createNewAdminPageContext(browser, SalesChannelBaseConfig), adminUser, AdminApiContext);
|
|
3784
3788
|
LanguageHelper.setForContext(page.context(), languageHelper);
|
|
3785
3789
|
setCurrentContext(page.context());
|
|
3786
3790
|
await use(page);
|
|
@@ -7725,9 +7729,9 @@ class AccountAddressDetails extends BaseAccount {
|
|
|
7725
7729
|
this.saveAddressButton = page.locator(".address-form-submit");
|
|
7726
7730
|
}
|
|
7727
7731
|
/**
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7732
|
+
* 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.
|
|
7733
|
+
* @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.
|
|
7734
|
+
*/
|
|
7731
7735
|
url(addressId = "") {
|
|
7732
7736
|
if (addressId) {
|
|
7733
7737
|
return `account/address/${addressId}`;
|
|
@@ -7899,7 +7903,7 @@ class Header {
|
|
|
7899
7903
|
this.skipToMainContentLink = page.getByRole("link", { name: translate("storefront:header:skipToContentLink"), exact: true });
|
|
7900
7904
|
this.wishlistIcon = page.getByRole("link", { name: translate("storefront:header:wishlistIcon") });
|
|
7901
7905
|
this.wishlistBasket = page.locator(".header-wishlist-badge");
|
|
7902
|
-
this.cartTotal = page.
|
|
7906
|
+
this.cartTotal = page.getByRole("link", { name: translate("storefront:header:shoppingCart") });
|
|
7903
7907
|
}
|
|
7904
7908
|
url() {
|
|
7905
7909
|
throw new Error("Header does not have an own url.");
|
|
@@ -7977,9 +7981,9 @@ const test$7 = test$e.extend({
|
|
|
7977
7981
|
StorefrontAccountAddresses: async ({ StorefrontPage, InstanceMeta }, use) => {
|
|
7978
7982
|
await use(new AccountAddresses(StorefrontPage, InstanceMeta));
|
|
7979
7983
|
},
|
|
7980
|
-
/**
|
|
7981
|
-
|
|
7982
|
-
|
|
7984
|
+
/**
|
|
7985
|
+
* @deprecated - Use StorefrontAccountAddressDetails instead.
|
|
7986
|
+
*/
|
|
7983
7987
|
StorefrontAccountAddressCreate: async ({ StorefrontPage }, use) => {
|
|
7984
7988
|
await use(new AccountAddressCreate(StorefrontPage));
|
|
7985
7989
|
},
|
|
@@ -8210,6 +8214,8 @@ class OrderDetail {
|
|
|
8210
8214
|
contextMenuButton;
|
|
8211
8215
|
contextMenu;
|
|
8212
8216
|
contextMenuSendDocument;
|
|
8217
|
+
contextMenuOpenDocument;
|
|
8218
|
+
contextMenuMarkAsSent;
|
|
8213
8219
|
sendDocumentModal;
|
|
8214
8220
|
sendDocumentButton;
|
|
8215
8221
|
itemsCardHeader;
|
|
@@ -8236,6 +8242,8 @@ class OrderDetail {
|
|
|
8236
8242
|
this.documentType = page.locator(".sw-data-grid__cell--documentType-name");
|
|
8237
8243
|
this.contextMenu = page.locator(".sw-context-menu");
|
|
8238
8244
|
this.contextMenuSendDocument = this.contextMenu.getByText(translate("administration:order:contextMenu.sendDocument"));
|
|
8245
|
+
this.contextMenuOpenDocument = this.contextMenu.getByText(translate("administration:order:contextMenu.openDocument"));
|
|
8246
|
+
this.contextMenuMarkAsSent = this.contextMenu.getByText(translate("administration:order:contextMenu.markAsSent"));
|
|
8239
8247
|
this.contextMenuButton = page.getByLabel(translate("administration:order:detail.openActionsMenu"));
|
|
8240
8248
|
this.sendDocumentModal = page.locator(".sw-order-send-document-modal");
|
|
8241
8249
|
this.sendDocumentButton = page.getByRole("button").getByText(translate("administration:order:detail.sendDocument"));
|
|
@@ -8258,6 +8266,15 @@ class OrderDetail {
|
|
|
8258
8266
|
async getCustomFieldCardLocators(customFieldSetName, customFieldTextName) {
|
|
8259
8267
|
return getCustomFieldCardLocators(this.page, customFieldSetName, customFieldTextName, this.instanceMeta);
|
|
8260
8268
|
}
|
|
8269
|
+
getDocumentRow(index) {
|
|
8270
|
+
const documentRow = this.page.locator(".sw-data-grid__body .sw-data-grid__row").nth(index);
|
|
8271
|
+
return {
|
|
8272
|
+
row: documentRow,
|
|
8273
|
+
contextMenuButton: documentRow.getByLabel(translate("administration:order:detail.openActionsMenu")),
|
|
8274
|
+
sentCheckmark: documentRow.locator(".icon--regular-checkmark-xs"),
|
|
8275
|
+
documentType: documentRow.locator(".sw-data-grid__cell--documentType-name")
|
|
8276
|
+
};
|
|
8277
|
+
}
|
|
8261
8278
|
}
|
|
8262
8279
|
|
|
8263
8280
|
class CustomerListing {
|
|
@@ -11678,11 +11695,7 @@ const CheckVisibilityOfServicesBanner = test$e.extend({
|
|
|
11678
11695
|
const task = (customUser) => {
|
|
11679
11696
|
return async function CheckVisibilityOfServicesBanner2() {
|
|
11680
11697
|
const user = customUser ? customUser : await TestDataService.createUser();
|
|
11681
|
-
const adminPage = await loginToAdministration(
|
|
11682
|
-
await createNewAdminPageContext(browser, SalesChannelBaseConfig),
|
|
11683
|
-
user,
|
|
11684
|
-
TestDataService.AdminApiClient
|
|
11685
|
-
);
|
|
11698
|
+
const adminPage = await loginToAdministration(await createNewAdminPageContext(browser, SalesChannelBaseConfig), user, TestDataService.AdminApiClient);
|
|
11686
11699
|
const shopwareServicesAdvertisementBanner = adminPage.locator(".sw-settings-services-dashboard-banner__content").first();
|
|
11687
11700
|
await expect(shopwareServicesAdvertisementBanner).toBeVisible({ timeout: 1e4 });
|
|
11688
11701
|
};
|
|
@@ -11702,11 +11715,7 @@ const CheckAccessToShopwareServices = test$e.extend({
|
|
|
11702
11715
|
user = await TestDataService.getUserById(customUser.id);
|
|
11703
11716
|
user.password = customUser.password;
|
|
11704
11717
|
}
|
|
11705
|
-
const adminPage = await loginToAdministration(
|
|
11706
|
-
await createNewAdminPageContext(browser, SalesChannelBaseConfig),
|
|
11707
|
-
user,
|
|
11708
|
-
TestDataService.AdminApiClient
|
|
11709
|
-
);
|
|
11718
|
+
const adminPage = await loginToAdministration(await createNewAdminPageContext(browser, SalesChannelBaseConfig), user, TestDataService.AdminApiClient);
|
|
11710
11719
|
const shopwareServicesAdvertisementBanner = adminPage.locator(".sw-settings-services-dashboard-banner__content").first();
|
|
11711
11720
|
const shopwareServicesExploreNowButton = shopwareServicesAdvertisementBanner.getByRole("button", {
|
|
11712
11721
|
name: translate("administration:shopwareServices:buttons.exploreNow")
|