@shopware-ag/acceptance-test-suite 12.7.0 → 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 +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.mjs +31 -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
|
|
|
@@ -4976,6 +4982,7 @@ declare class Header implements PageObject {
|
|
|
4976
4982
|
readonly wishlistIcon: Locator;
|
|
4977
4983
|
readonly wishlistBasket: Locator;
|
|
4978
4984
|
readonly page: Page;
|
|
4985
|
+
readonly cartTotal: Locator;
|
|
4979
4986
|
constructor(page: Page);
|
|
4980
4987
|
url(): string;
|
|
4981
4988
|
}
|
|
@@ -5143,6 +5150,8 @@ declare class OrderDetail implements PageObject {
|
|
|
5143
5150
|
readonly contextMenuButton: Locator;
|
|
5144
5151
|
readonly contextMenu: Locator;
|
|
5145
5152
|
readonly contextMenuSendDocument: Locator;
|
|
5153
|
+
readonly contextMenuOpenDocument: Locator;
|
|
5154
|
+
readonly contextMenuMarkAsSent: Locator;
|
|
5146
5155
|
readonly sendDocumentModal: Locator;
|
|
5147
5156
|
readonly sendDocumentButton: Locator;
|
|
5148
5157
|
readonly itemsCardHeader: Locator;
|
|
@@ -5166,6 +5175,12 @@ declare class OrderDetail implements PageObject {
|
|
|
5166
5175
|
customFieldLabel: Locator;
|
|
5167
5176
|
customFieldSelect: Locator;
|
|
5168
5177
|
}>;
|
|
5178
|
+
getDocumentRow(index: number): {
|
|
5179
|
+
row: Locator;
|
|
5180
|
+
contextMenuButton: Locator;
|
|
5181
|
+
sentCheckmark: Locator;
|
|
5182
|
+
documentType: Locator;
|
|
5183
|
+
};
|
|
5169
5184
|
}
|
|
5170
5185
|
|
|
5171
5186
|
declare class CustomerListing implements PageObject {
|
|
@@ -6338,7 +6353,7 @@ declare function createNewAdminPageContext(browser: Browser, SalesChannelBaseCon
|
|
|
6338
6353
|
* @param AdminApiContext - The API request context for admin API calls.
|
|
6339
6354
|
* @returns The logged-in admin Page instance.
|
|
6340
6355
|
*/
|
|
6341
|
-
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>;
|
|
6342
6357
|
|
|
6343
6358
|
/**
|
|
6344
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
|
|
|
@@ -4976,6 +4982,7 @@ declare class Header implements PageObject {
|
|
|
4976
4982
|
readonly wishlistIcon: Locator;
|
|
4977
4983
|
readonly wishlistBasket: Locator;
|
|
4978
4984
|
readonly page: Page;
|
|
4985
|
+
readonly cartTotal: Locator;
|
|
4979
4986
|
constructor(page: Page);
|
|
4980
4987
|
url(): string;
|
|
4981
4988
|
}
|
|
@@ -5143,6 +5150,8 @@ declare class OrderDetail implements PageObject {
|
|
|
5143
5150
|
readonly contextMenuButton: Locator;
|
|
5144
5151
|
readonly contextMenu: Locator;
|
|
5145
5152
|
readonly contextMenuSendDocument: Locator;
|
|
5153
|
+
readonly contextMenuOpenDocument: Locator;
|
|
5154
|
+
readonly contextMenuMarkAsSent: Locator;
|
|
5146
5155
|
readonly sendDocumentModal: Locator;
|
|
5147
5156
|
readonly sendDocumentButton: Locator;
|
|
5148
5157
|
readonly itemsCardHeader: Locator;
|
|
@@ -5166,6 +5175,12 @@ declare class OrderDetail implements PageObject {
|
|
|
5166
5175
|
customFieldLabel: Locator;
|
|
5167
5176
|
customFieldSelect: Locator;
|
|
5168
5177
|
}>;
|
|
5178
|
+
getDocumentRow(index: number): {
|
|
5179
|
+
row: Locator;
|
|
5180
|
+
contextMenuButton: Locator;
|
|
5181
|
+
sentCheckmark: Locator;
|
|
5182
|
+
documentType: Locator;
|
|
5183
|
+
};
|
|
5169
5184
|
}
|
|
5170
5185
|
|
|
5171
5186
|
declare class CustomerListing implements PageObject {
|
|
@@ -6338,7 +6353,7 @@ declare function createNewAdminPageContext(browser: Browser, SalesChannelBaseCon
|
|
|
6338
6353
|
* @param AdminApiContext - The API request context for admin API calls.
|
|
6339
6354
|
* @returns The logged-in admin Page instance.
|
|
6340
6355
|
*/
|
|
6341
|
-
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>;
|
|
6342
6357
|
|
|
6343
6358
|
/**
|
|
6344
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}`;
|
|
@@ -7885,6 +7885,8 @@ class Header {
|
|
|
7885
7885
|
wishlistIcon;
|
|
7886
7886
|
wishlistBasket;
|
|
7887
7887
|
page;
|
|
7888
|
+
//cart
|
|
7889
|
+
cartTotal;
|
|
7888
7890
|
constructor(page) {
|
|
7889
7891
|
this.page = page;
|
|
7890
7892
|
this.mainNavigationLink = page.locator(".main-navigation-link-text");
|
|
@@ -7897,6 +7899,7 @@ class Header {
|
|
|
7897
7899
|
this.skipToMainContentLink = page.getByRole("link", { name: translate("storefront:header:skipToContentLink"), exact: true });
|
|
7898
7900
|
this.wishlistIcon = page.getByRole("link", { name: translate("storefront:header:wishlistIcon") });
|
|
7899
7901
|
this.wishlistBasket = page.locator(".header-wishlist-badge");
|
|
7902
|
+
this.cartTotal = page.locator(".header-cart-total");
|
|
7900
7903
|
}
|
|
7901
7904
|
url() {
|
|
7902
7905
|
throw new Error("Header does not have an own url.");
|
|
@@ -7974,9 +7977,9 @@ const test$7 = test$e.extend({
|
|
|
7974
7977
|
StorefrontAccountAddresses: async ({ StorefrontPage, InstanceMeta }, use) => {
|
|
7975
7978
|
await use(new AccountAddresses(StorefrontPage, InstanceMeta));
|
|
7976
7979
|
},
|
|
7977
|
-
/**
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
+
/**
|
|
7981
|
+
* @deprecated - Use StorefrontAccountAddressDetails instead.
|
|
7982
|
+
*/
|
|
7980
7983
|
StorefrontAccountAddressCreate: async ({ StorefrontPage }, use) => {
|
|
7981
7984
|
await use(new AccountAddressCreate(StorefrontPage));
|
|
7982
7985
|
},
|
|
@@ -8207,6 +8210,8 @@ class OrderDetail {
|
|
|
8207
8210
|
contextMenuButton;
|
|
8208
8211
|
contextMenu;
|
|
8209
8212
|
contextMenuSendDocument;
|
|
8213
|
+
contextMenuOpenDocument;
|
|
8214
|
+
contextMenuMarkAsSent;
|
|
8210
8215
|
sendDocumentModal;
|
|
8211
8216
|
sendDocumentButton;
|
|
8212
8217
|
itemsCardHeader;
|
|
@@ -8233,6 +8238,8 @@ class OrderDetail {
|
|
|
8233
8238
|
this.documentType = page.locator(".sw-data-grid__cell--documentType-name");
|
|
8234
8239
|
this.contextMenu = page.locator(".sw-context-menu");
|
|
8235
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"));
|
|
8236
8243
|
this.contextMenuButton = page.getByLabel(translate("administration:order:detail.openActionsMenu"));
|
|
8237
8244
|
this.sendDocumentModal = page.locator(".sw-order-send-document-modal");
|
|
8238
8245
|
this.sendDocumentButton = page.getByRole("button").getByText(translate("administration:order:detail.sendDocument"));
|
|
@@ -8255,6 +8262,15 @@ class OrderDetail {
|
|
|
8255
8262
|
async getCustomFieldCardLocators(customFieldSetName, customFieldTextName) {
|
|
8256
8263
|
return getCustomFieldCardLocators(this.page, customFieldSetName, customFieldTextName, this.instanceMeta);
|
|
8257
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
|
+
}
|
|
8258
8274
|
}
|
|
8259
8275
|
|
|
8260
8276
|
class CustomerListing {
|
|
@@ -11675,11 +11691,7 @@ const CheckVisibilityOfServicesBanner = test$e.extend({
|
|
|
11675
11691
|
const task = (customUser) => {
|
|
11676
11692
|
return async function CheckVisibilityOfServicesBanner2() {
|
|
11677
11693
|
const user = customUser ? customUser : await TestDataService.createUser();
|
|
11678
|
-
const adminPage = await loginToAdministration(
|
|
11679
|
-
await createNewAdminPageContext(browser, SalesChannelBaseConfig),
|
|
11680
|
-
user,
|
|
11681
|
-
TestDataService.AdminApiClient
|
|
11682
|
-
);
|
|
11694
|
+
const adminPage = await loginToAdministration(await createNewAdminPageContext(browser, SalesChannelBaseConfig), user, TestDataService.AdminApiClient);
|
|
11683
11695
|
const shopwareServicesAdvertisementBanner = adminPage.locator(".sw-settings-services-dashboard-banner__content").first();
|
|
11684
11696
|
await expect(shopwareServicesAdvertisementBanner).toBeVisible({ timeout: 1e4 });
|
|
11685
11697
|
};
|
|
@@ -11699,11 +11711,7 @@ const CheckAccessToShopwareServices = test$e.extend({
|
|
|
11699
11711
|
user = await TestDataService.getUserById(customUser.id);
|
|
11700
11712
|
user.password = customUser.password;
|
|
11701
11713
|
}
|
|
11702
|
-
const adminPage = await loginToAdministration(
|
|
11703
|
-
await createNewAdminPageContext(browser, SalesChannelBaseConfig),
|
|
11704
|
-
user,
|
|
11705
|
-
TestDataService.AdminApiClient
|
|
11706
|
-
);
|
|
11714
|
+
const adminPage = await loginToAdministration(await createNewAdminPageContext(browser, SalesChannelBaseConfig), user, TestDataService.AdminApiClient);
|
|
11707
11715
|
const shopwareServicesAdvertisementBanner = adminPage.locator(".sw-settings-services-dashboard-banner__content").first();
|
|
11708
11716
|
const shopwareServicesExploreNowButton = shopwareServicesAdvertisementBanner.getByRole("button", {
|
|
11709
11717
|
name: translate("administration:shopwareServices:buttons.exploreNow")
|