@shopware-ag/acceptance-test-suite 11.20.1 → 11.22.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/README.md +2 -852
- package/dist/index.d.mts +86 -4
- package/dist/index.d.ts +86 -4
- package/dist/index.mjs +1330 -1116
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import * as playwright_core from 'playwright-core';
|
|
|
3
3
|
import { APIRequestContext, APIResponse, Page, BrowserContext, Locator } from 'playwright-core';
|
|
4
4
|
export { APIRequestContext, APIResponse, BrowserContext, Locator, Page, Request } from 'playwright-core';
|
|
5
5
|
import * as _playwright_test from '@playwright/test';
|
|
6
|
+
import { Page as Page$1, Locator as Locator$1 } from '@playwright/test';
|
|
6
7
|
export { expect, mergeTests } from '@playwright/test';
|
|
7
8
|
import { components } from '@shopware/api-client/admin-api-types';
|
|
8
9
|
import { Image } from 'image-js';
|
|
@@ -351,6 +352,8 @@ type Promotion = Omit<components['schemas']['Promotion'], 'discounts'> & {
|
|
|
351
352
|
considerAdvancedRules: boolean;
|
|
352
353
|
}
|
|
353
354
|
];
|
|
355
|
+
active: boolean;
|
|
356
|
+
code: string;
|
|
354
357
|
};
|
|
355
358
|
type PromotionDiscount = components['schemas']['PromotionDiscount'] & {
|
|
356
359
|
id: string;
|
|
@@ -1121,9 +1124,9 @@ declare class TestDataService {
|
|
|
1121
1124
|
} & Partial<OrderLineItem>;
|
|
1122
1125
|
getBasicPromotionLineItemStruct(lineItem: SimpleLineItem): {
|
|
1123
1126
|
promotionId: string;
|
|
1124
|
-
referencedId: string
|
|
1127
|
+
referencedId: string;
|
|
1125
1128
|
payload: {
|
|
1126
|
-
code: string
|
|
1129
|
+
code: string;
|
|
1127
1130
|
};
|
|
1128
1131
|
identifier: string | undefined;
|
|
1129
1132
|
type: string;
|
|
@@ -2095,6 +2098,7 @@ declare class FirstRunWizard implements PageObject {
|
|
|
2095
2098
|
}
|
|
2096
2099
|
|
|
2097
2100
|
declare class FlowBuilderCreate implements PageObject {
|
|
2101
|
+
readonly contentView: Locator;
|
|
2098
2102
|
readonly saveButton: Locator;
|
|
2099
2103
|
readonly header: Locator;
|
|
2100
2104
|
readonly smartBarHeader: Locator;
|
|
@@ -2140,6 +2144,8 @@ declare class FlowBuilderCreate implements PageObject {
|
|
|
2140
2144
|
}
|
|
2141
2145
|
|
|
2142
2146
|
declare class FlowBuilderListing implements PageObject {
|
|
2147
|
+
readonly page: Page;
|
|
2148
|
+
readonly contentView: Locator;
|
|
2143
2149
|
readonly createFlowButton: Locator;
|
|
2144
2150
|
readonly firstFlowName: Locator;
|
|
2145
2151
|
readonly firstFlowContextButton: Locator;
|
|
@@ -2154,9 +2160,11 @@ declare class FlowBuilderListing implements PageObject {
|
|
|
2154
2160
|
readonly successAlert: Locator;
|
|
2155
2161
|
readonly successAlertMessage: Locator;
|
|
2156
2162
|
readonly searchBar: Locator;
|
|
2157
|
-
readonly
|
|
2163
|
+
readonly pagination: Locator;
|
|
2164
|
+
readonly testFlowNameCells: Locator;
|
|
2165
|
+
readonly flowTemplatesTab: Locator;
|
|
2158
2166
|
constructor(page: Page);
|
|
2159
|
-
url(): string;
|
|
2167
|
+
url(tabName?: string): string;
|
|
2160
2168
|
getLineItemByFlowName(flowName: string): Promise<Record<string, Locator>>;
|
|
2161
2169
|
}
|
|
2162
2170
|
|
|
@@ -2180,6 +2188,8 @@ declare class FlowBuilderDetail extends FlowBuilderCreate implements PageObject
|
|
|
2180
2188
|
readonly alertMessage: Locator;
|
|
2181
2189
|
readonly successMessage: Locator;
|
|
2182
2190
|
readonly actionContentTag: Locator;
|
|
2191
|
+
readonly skeletonLoader: Locator;
|
|
2192
|
+
readonly messageClose: Locator;
|
|
2183
2193
|
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2184
2194
|
url(flowId: string, tabName?: string): string;
|
|
2185
2195
|
getTooltipText(toolTipArea: Locator): Promise<string>;
|
|
@@ -2659,6 +2669,72 @@ declare class DocumentDetail implements PageObject {
|
|
|
2659
2669
|
url(documentId: string): string;
|
|
2660
2670
|
}
|
|
2661
2671
|
|
|
2672
|
+
declare class PromotionsListing implements PageObject {
|
|
2673
|
+
private readonly instanceMeta;
|
|
2674
|
+
readonly page: Page;
|
|
2675
|
+
readonly smartBar: Locator;
|
|
2676
|
+
readonly smartBarHeader: Locator;
|
|
2677
|
+
readonly languageSelect: Locator;
|
|
2678
|
+
readonly smartBarAddPromotionButton: Locator;
|
|
2679
|
+
readonly emptyState: Locator;
|
|
2680
|
+
readonly emptyStateAddPromotionButton: Locator;
|
|
2681
|
+
readonly promotionsTable: Locator;
|
|
2682
|
+
readonly sidebarRefreshButton: Locator;
|
|
2683
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2684
|
+
/**
|
|
2685
|
+
* Returns the url to the listing page.
|
|
2686
|
+
*
|
|
2687
|
+
* @param searchTerms - Includes search terms for filtering of the promotions list.
|
|
2688
|
+
*/
|
|
2689
|
+
url(searchTerms?: string[]): string;
|
|
2690
|
+
/**
|
|
2691
|
+
* Returns the table row containing the promotion with the given promotion name.
|
|
2692
|
+
*
|
|
2693
|
+
* @param promotionName - Promotion name you are looking for.
|
|
2694
|
+
*/
|
|
2695
|
+
getPromotionRow(promotionName: string): Promise<Record<string, Locator>>;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
declare class PromotionCreate implements PageObject {
|
|
2699
|
+
readonly page: Page$1;
|
|
2700
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2701
|
+
readonly smartBar: Locator$1;
|
|
2702
|
+
readonly smartBarHeader: Locator$1;
|
|
2703
|
+
readonly languageSelect: Locator$1;
|
|
2704
|
+
readonly saveButton: Locator$1;
|
|
2705
|
+
readonly cancelButton: Locator$1;
|
|
2706
|
+
readonly generalCard: Locator$1;
|
|
2707
|
+
readonly nameInput: Locator$1;
|
|
2708
|
+
readonly priorityInput: Locator$1;
|
|
2709
|
+
constructor(page: Page$1, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2710
|
+
/**
|
|
2711
|
+
* Returns the url to the creation page.
|
|
2712
|
+
*/
|
|
2713
|
+
url(): string;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
declare class PromotionDetail extends PromotionCreate {
|
|
2717
|
+
readonly page: Page$1;
|
|
2718
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2719
|
+
readonly tabGeneralLink: Locator$1;
|
|
2720
|
+
readonly tabConditionsLink: Locator$1;
|
|
2721
|
+
readonly tabDiscountsLink: Locator$1;
|
|
2722
|
+
readonly promotionCodesCard: Locator$1;
|
|
2723
|
+
readonly promotionCodesHeading: Locator$1;
|
|
2724
|
+
readonly promotionCodesSelection: Locator$1;
|
|
2725
|
+
readonly preConditionsCard: Locator$1;
|
|
2726
|
+
readonly addDiscountButton: Locator$1;
|
|
2727
|
+
readonly discountCards: Locator$1;
|
|
2728
|
+
constructor(page: Page$1, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2729
|
+
/**
|
|
2730
|
+
* Returns the url to the detail page.
|
|
2731
|
+
*
|
|
2732
|
+
* @param promotionId - Id of the promotion to show the details of.
|
|
2733
|
+
* @param tab - The tab to open. Defaults to 'general'. Other options are 'conditions' and 'discounts'.
|
|
2734
|
+
*/
|
|
2735
|
+
url(promotionId?: string, tab?: 'general' | 'conditions' | 'discounts'): string;
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2662
2738
|
interface AdministrationPageTypes {
|
|
2663
2739
|
AdminProductDetail: ProductDetail;
|
|
2664
2740
|
AdminOrderDetail: OrderDetail;
|
|
@@ -2696,6 +2772,9 @@ interface AdministrationPageTypes {
|
|
|
2696
2772
|
AdminSettingsListing: SettingsListing;
|
|
2697
2773
|
AdminDocumentListing: DocumentListing;
|
|
2698
2774
|
AdminDocumentDetail: DocumentDetail;
|
|
2775
|
+
AdminPromotionsListing: PromotionsListing;
|
|
2776
|
+
AdminPromotionCreate: PromotionCreate;
|
|
2777
|
+
AdminPromotionDetail: PromotionDetail;
|
|
2699
2778
|
}
|
|
2700
2779
|
declare const AdminPageObjects: {
|
|
2701
2780
|
ProductDetail: typeof ProductDetail;
|
|
@@ -2734,6 +2813,9 @@ declare const AdminPageObjects: {
|
|
|
2734
2813
|
SettingsListing: typeof SettingsListing;
|
|
2735
2814
|
DocumentListing: typeof DocumentListing;
|
|
2736
2815
|
DocumentDetail: typeof DocumentDetail;
|
|
2816
|
+
PromotionsListing: typeof PromotionsListing;
|
|
2817
|
+
PromotionCreate: typeof PromotionCreate;
|
|
2818
|
+
PromotionDetail: typeof PromotionDetail;
|
|
2737
2819
|
};
|
|
2738
2820
|
|
|
2739
2821
|
interface DataFixtureTypes {
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as playwright_core from 'playwright-core';
|
|
|
3
3
|
import { APIRequestContext, APIResponse, Page, BrowserContext, Locator } from 'playwright-core';
|
|
4
4
|
export { APIRequestContext, APIResponse, BrowserContext, Locator, Page, Request } from 'playwright-core';
|
|
5
5
|
import * as _playwright_test from '@playwright/test';
|
|
6
|
+
import { Page as Page$1, Locator as Locator$1 } from '@playwright/test';
|
|
6
7
|
export { expect, mergeTests } from '@playwright/test';
|
|
7
8
|
import { components } from '@shopware/api-client/admin-api-types';
|
|
8
9
|
import { Image } from 'image-js';
|
|
@@ -351,6 +352,8 @@ type Promotion = Omit<components['schemas']['Promotion'], 'discounts'> & {
|
|
|
351
352
|
considerAdvancedRules: boolean;
|
|
352
353
|
}
|
|
353
354
|
];
|
|
355
|
+
active: boolean;
|
|
356
|
+
code: string;
|
|
354
357
|
};
|
|
355
358
|
type PromotionDiscount = components['schemas']['PromotionDiscount'] & {
|
|
356
359
|
id: string;
|
|
@@ -1121,9 +1124,9 @@ declare class TestDataService {
|
|
|
1121
1124
|
} & Partial<OrderLineItem>;
|
|
1122
1125
|
getBasicPromotionLineItemStruct(lineItem: SimpleLineItem): {
|
|
1123
1126
|
promotionId: string;
|
|
1124
|
-
referencedId: string
|
|
1127
|
+
referencedId: string;
|
|
1125
1128
|
payload: {
|
|
1126
|
-
code: string
|
|
1129
|
+
code: string;
|
|
1127
1130
|
};
|
|
1128
1131
|
identifier: string | undefined;
|
|
1129
1132
|
type: string;
|
|
@@ -2095,6 +2098,7 @@ declare class FirstRunWizard implements PageObject {
|
|
|
2095
2098
|
}
|
|
2096
2099
|
|
|
2097
2100
|
declare class FlowBuilderCreate implements PageObject {
|
|
2101
|
+
readonly contentView: Locator;
|
|
2098
2102
|
readonly saveButton: Locator;
|
|
2099
2103
|
readonly header: Locator;
|
|
2100
2104
|
readonly smartBarHeader: Locator;
|
|
@@ -2140,6 +2144,8 @@ declare class FlowBuilderCreate implements PageObject {
|
|
|
2140
2144
|
}
|
|
2141
2145
|
|
|
2142
2146
|
declare class FlowBuilderListing implements PageObject {
|
|
2147
|
+
readonly page: Page;
|
|
2148
|
+
readonly contentView: Locator;
|
|
2143
2149
|
readonly createFlowButton: Locator;
|
|
2144
2150
|
readonly firstFlowName: Locator;
|
|
2145
2151
|
readonly firstFlowContextButton: Locator;
|
|
@@ -2154,9 +2160,11 @@ declare class FlowBuilderListing implements PageObject {
|
|
|
2154
2160
|
readonly successAlert: Locator;
|
|
2155
2161
|
readonly successAlertMessage: Locator;
|
|
2156
2162
|
readonly searchBar: Locator;
|
|
2157
|
-
readonly
|
|
2163
|
+
readonly pagination: Locator;
|
|
2164
|
+
readonly testFlowNameCells: Locator;
|
|
2165
|
+
readonly flowTemplatesTab: Locator;
|
|
2158
2166
|
constructor(page: Page);
|
|
2159
|
-
url(): string;
|
|
2167
|
+
url(tabName?: string): string;
|
|
2160
2168
|
getLineItemByFlowName(flowName: string): Promise<Record<string, Locator>>;
|
|
2161
2169
|
}
|
|
2162
2170
|
|
|
@@ -2180,6 +2188,8 @@ declare class FlowBuilderDetail extends FlowBuilderCreate implements PageObject
|
|
|
2180
2188
|
readonly alertMessage: Locator;
|
|
2181
2189
|
readonly successMessage: Locator;
|
|
2182
2190
|
readonly actionContentTag: Locator;
|
|
2191
|
+
readonly skeletonLoader: Locator;
|
|
2192
|
+
readonly messageClose: Locator;
|
|
2183
2193
|
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2184
2194
|
url(flowId: string, tabName?: string): string;
|
|
2185
2195
|
getTooltipText(toolTipArea: Locator): Promise<string>;
|
|
@@ -2659,6 +2669,72 @@ declare class DocumentDetail implements PageObject {
|
|
|
2659
2669
|
url(documentId: string): string;
|
|
2660
2670
|
}
|
|
2661
2671
|
|
|
2672
|
+
declare class PromotionsListing implements PageObject {
|
|
2673
|
+
private readonly instanceMeta;
|
|
2674
|
+
readonly page: Page;
|
|
2675
|
+
readonly smartBar: Locator;
|
|
2676
|
+
readonly smartBarHeader: Locator;
|
|
2677
|
+
readonly languageSelect: Locator;
|
|
2678
|
+
readonly smartBarAddPromotionButton: Locator;
|
|
2679
|
+
readonly emptyState: Locator;
|
|
2680
|
+
readonly emptyStateAddPromotionButton: Locator;
|
|
2681
|
+
readonly promotionsTable: Locator;
|
|
2682
|
+
readonly sidebarRefreshButton: Locator;
|
|
2683
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2684
|
+
/**
|
|
2685
|
+
* Returns the url to the listing page.
|
|
2686
|
+
*
|
|
2687
|
+
* @param searchTerms - Includes search terms for filtering of the promotions list.
|
|
2688
|
+
*/
|
|
2689
|
+
url(searchTerms?: string[]): string;
|
|
2690
|
+
/**
|
|
2691
|
+
* Returns the table row containing the promotion with the given promotion name.
|
|
2692
|
+
*
|
|
2693
|
+
* @param promotionName - Promotion name you are looking for.
|
|
2694
|
+
*/
|
|
2695
|
+
getPromotionRow(promotionName: string): Promise<Record<string, Locator>>;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
declare class PromotionCreate implements PageObject {
|
|
2699
|
+
readonly page: Page$1;
|
|
2700
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2701
|
+
readonly smartBar: Locator$1;
|
|
2702
|
+
readonly smartBarHeader: Locator$1;
|
|
2703
|
+
readonly languageSelect: Locator$1;
|
|
2704
|
+
readonly saveButton: Locator$1;
|
|
2705
|
+
readonly cancelButton: Locator$1;
|
|
2706
|
+
readonly generalCard: Locator$1;
|
|
2707
|
+
readonly nameInput: Locator$1;
|
|
2708
|
+
readonly priorityInput: Locator$1;
|
|
2709
|
+
constructor(page: Page$1, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2710
|
+
/**
|
|
2711
|
+
* Returns the url to the creation page.
|
|
2712
|
+
*/
|
|
2713
|
+
url(): string;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
declare class PromotionDetail extends PromotionCreate {
|
|
2717
|
+
readonly page: Page$1;
|
|
2718
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2719
|
+
readonly tabGeneralLink: Locator$1;
|
|
2720
|
+
readonly tabConditionsLink: Locator$1;
|
|
2721
|
+
readonly tabDiscountsLink: Locator$1;
|
|
2722
|
+
readonly promotionCodesCard: Locator$1;
|
|
2723
|
+
readonly promotionCodesHeading: Locator$1;
|
|
2724
|
+
readonly promotionCodesSelection: Locator$1;
|
|
2725
|
+
readonly preConditionsCard: Locator$1;
|
|
2726
|
+
readonly addDiscountButton: Locator$1;
|
|
2727
|
+
readonly discountCards: Locator$1;
|
|
2728
|
+
constructor(page: Page$1, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2729
|
+
/**
|
|
2730
|
+
* Returns the url to the detail page.
|
|
2731
|
+
*
|
|
2732
|
+
* @param promotionId - Id of the promotion to show the details of.
|
|
2733
|
+
* @param tab - The tab to open. Defaults to 'general'. Other options are 'conditions' and 'discounts'.
|
|
2734
|
+
*/
|
|
2735
|
+
url(promotionId?: string, tab?: 'general' | 'conditions' | 'discounts'): string;
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2662
2738
|
interface AdministrationPageTypes {
|
|
2663
2739
|
AdminProductDetail: ProductDetail;
|
|
2664
2740
|
AdminOrderDetail: OrderDetail;
|
|
@@ -2696,6 +2772,9 @@ interface AdministrationPageTypes {
|
|
|
2696
2772
|
AdminSettingsListing: SettingsListing;
|
|
2697
2773
|
AdminDocumentListing: DocumentListing;
|
|
2698
2774
|
AdminDocumentDetail: DocumentDetail;
|
|
2775
|
+
AdminPromotionsListing: PromotionsListing;
|
|
2776
|
+
AdminPromotionCreate: PromotionCreate;
|
|
2777
|
+
AdminPromotionDetail: PromotionDetail;
|
|
2699
2778
|
}
|
|
2700
2779
|
declare const AdminPageObjects: {
|
|
2701
2780
|
ProductDetail: typeof ProductDetail;
|
|
@@ -2734,6 +2813,9 @@ declare const AdminPageObjects: {
|
|
|
2734
2813
|
SettingsListing: typeof SettingsListing;
|
|
2735
2814
|
DocumentListing: typeof DocumentListing;
|
|
2736
2815
|
DocumentDetail: typeof DocumentDetail;
|
|
2816
|
+
PromotionsListing: typeof PromotionsListing;
|
|
2817
|
+
PromotionCreate: typeof PromotionCreate;
|
|
2818
|
+
PromotionDetail: typeof PromotionDetail;
|
|
2737
2819
|
};
|
|
2738
2820
|
|
|
2739
2821
|
interface DataFixtureTypes {
|