@shopware-ag/acceptance-test-suite 11.20.1 → 11.21.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 +77 -2
- package/dist/index.d.ts +77 -2
- package/dist/index.mjs +1314 -1114
- 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;
|
|
@@ -2659,6 +2662,72 @@ declare class DocumentDetail implements PageObject {
|
|
|
2659
2662
|
url(documentId: string): string;
|
|
2660
2663
|
}
|
|
2661
2664
|
|
|
2665
|
+
declare class PromotionsListing implements PageObject {
|
|
2666
|
+
private readonly instanceMeta;
|
|
2667
|
+
readonly page: Page;
|
|
2668
|
+
readonly smartBar: Locator;
|
|
2669
|
+
readonly smartBarHeader: Locator;
|
|
2670
|
+
readonly languageSelect: Locator;
|
|
2671
|
+
readonly smartBarAddPromotionButton: Locator;
|
|
2672
|
+
readonly emptyState: Locator;
|
|
2673
|
+
readonly emptyStateAddPromotionButton: Locator;
|
|
2674
|
+
readonly promotionsTable: Locator;
|
|
2675
|
+
readonly sidebarRefreshButton: Locator;
|
|
2676
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2677
|
+
/**
|
|
2678
|
+
* Returns the url to the listing page.
|
|
2679
|
+
*
|
|
2680
|
+
* @param searchTerms - Includes search terms for filtering of the promotions list.
|
|
2681
|
+
*/
|
|
2682
|
+
url(searchTerms?: string[]): string;
|
|
2683
|
+
/**
|
|
2684
|
+
* Returns the table row containing the promotion with the given promotion name.
|
|
2685
|
+
*
|
|
2686
|
+
* @param promotionName - Promotion name you are looking for.
|
|
2687
|
+
*/
|
|
2688
|
+
getPromotionRow(promotionName: string): Promise<Record<string, Locator>>;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
declare class PromotionCreate implements PageObject {
|
|
2692
|
+
readonly page: Page$1;
|
|
2693
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2694
|
+
readonly smartBar: Locator$1;
|
|
2695
|
+
readonly smartBarHeader: Locator$1;
|
|
2696
|
+
readonly languageSelect: Locator$1;
|
|
2697
|
+
readonly saveButton: Locator$1;
|
|
2698
|
+
readonly cancelButton: Locator$1;
|
|
2699
|
+
readonly generalCard: Locator$1;
|
|
2700
|
+
readonly nameInput: Locator$1;
|
|
2701
|
+
readonly priorityInput: Locator$1;
|
|
2702
|
+
constructor(page: Page$1, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2703
|
+
/**
|
|
2704
|
+
* Returns the url to the creation page.
|
|
2705
|
+
*/
|
|
2706
|
+
url(): string;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
declare class PromotionDetail extends PromotionCreate {
|
|
2710
|
+
readonly page: Page$1;
|
|
2711
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2712
|
+
readonly tabGeneralLink: Locator$1;
|
|
2713
|
+
readonly tabConditionsLink: Locator$1;
|
|
2714
|
+
readonly tabDiscountsLink: Locator$1;
|
|
2715
|
+
readonly promotionCodesCard: Locator$1;
|
|
2716
|
+
readonly promotionCodesHeading: Locator$1;
|
|
2717
|
+
readonly promotionCodesSelection: Locator$1;
|
|
2718
|
+
readonly preConditionsCard: Locator$1;
|
|
2719
|
+
readonly addDiscountButton: Locator$1;
|
|
2720
|
+
readonly discountCards: Locator$1;
|
|
2721
|
+
constructor(page: Page$1, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2722
|
+
/**
|
|
2723
|
+
* Returns the url to the detail page.
|
|
2724
|
+
*
|
|
2725
|
+
* @param promotionId - Id of the promotion to show the details of.
|
|
2726
|
+
* @param tab - The tab to open. Defaults to 'general'. Other options are 'conditions' and 'discounts'.
|
|
2727
|
+
*/
|
|
2728
|
+
url(promotionId?: string, tab?: 'general' | 'conditions' | 'discounts'): string;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2662
2731
|
interface AdministrationPageTypes {
|
|
2663
2732
|
AdminProductDetail: ProductDetail;
|
|
2664
2733
|
AdminOrderDetail: OrderDetail;
|
|
@@ -2696,6 +2765,9 @@ interface AdministrationPageTypes {
|
|
|
2696
2765
|
AdminSettingsListing: SettingsListing;
|
|
2697
2766
|
AdminDocumentListing: DocumentListing;
|
|
2698
2767
|
AdminDocumentDetail: DocumentDetail;
|
|
2768
|
+
AdminPromotionsListing: PromotionsListing;
|
|
2769
|
+
AdminPromotionCreate: PromotionCreate;
|
|
2770
|
+
AdminPromotionDetail: PromotionDetail;
|
|
2699
2771
|
}
|
|
2700
2772
|
declare const AdminPageObjects: {
|
|
2701
2773
|
ProductDetail: typeof ProductDetail;
|
|
@@ -2734,6 +2806,9 @@ declare const AdminPageObjects: {
|
|
|
2734
2806
|
SettingsListing: typeof SettingsListing;
|
|
2735
2807
|
DocumentListing: typeof DocumentListing;
|
|
2736
2808
|
DocumentDetail: typeof DocumentDetail;
|
|
2809
|
+
PromotionsListing: typeof PromotionsListing;
|
|
2810
|
+
PromotionCreate: typeof PromotionCreate;
|
|
2811
|
+
PromotionDetail: typeof PromotionDetail;
|
|
2737
2812
|
};
|
|
2738
2813
|
|
|
2739
2814
|
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;
|
|
@@ -2659,6 +2662,72 @@ declare class DocumentDetail implements PageObject {
|
|
|
2659
2662
|
url(documentId: string): string;
|
|
2660
2663
|
}
|
|
2661
2664
|
|
|
2665
|
+
declare class PromotionsListing implements PageObject {
|
|
2666
|
+
private readonly instanceMeta;
|
|
2667
|
+
readonly page: Page;
|
|
2668
|
+
readonly smartBar: Locator;
|
|
2669
|
+
readonly smartBarHeader: Locator;
|
|
2670
|
+
readonly languageSelect: Locator;
|
|
2671
|
+
readonly smartBarAddPromotionButton: Locator;
|
|
2672
|
+
readonly emptyState: Locator;
|
|
2673
|
+
readonly emptyStateAddPromotionButton: Locator;
|
|
2674
|
+
readonly promotionsTable: Locator;
|
|
2675
|
+
readonly sidebarRefreshButton: Locator;
|
|
2676
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2677
|
+
/**
|
|
2678
|
+
* Returns the url to the listing page.
|
|
2679
|
+
*
|
|
2680
|
+
* @param searchTerms - Includes search terms for filtering of the promotions list.
|
|
2681
|
+
*/
|
|
2682
|
+
url(searchTerms?: string[]): string;
|
|
2683
|
+
/**
|
|
2684
|
+
* Returns the table row containing the promotion with the given promotion name.
|
|
2685
|
+
*
|
|
2686
|
+
* @param promotionName - Promotion name you are looking for.
|
|
2687
|
+
*/
|
|
2688
|
+
getPromotionRow(promotionName: string): Promise<Record<string, Locator>>;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
declare class PromotionCreate implements PageObject {
|
|
2692
|
+
readonly page: Page$1;
|
|
2693
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2694
|
+
readonly smartBar: Locator$1;
|
|
2695
|
+
readonly smartBarHeader: Locator$1;
|
|
2696
|
+
readonly languageSelect: Locator$1;
|
|
2697
|
+
readonly saveButton: Locator$1;
|
|
2698
|
+
readonly cancelButton: Locator$1;
|
|
2699
|
+
readonly generalCard: Locator$1;
|
|
2700
|
+
readonly nameInput: Locator$1;
|
|
2701
|
+
readonly priorityInput: Locator$1;
|
|
2702
|
+
constructor(page: Page$1, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2703
|
+
/**
|
|
2704
|
+
* Returns the url to the creation page.
|
|
2705
|
+
*/
|
|
2706
|
+
url(): string;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
declare class PromotionDetail extends PromotionCreate {
|
|
2710
|
+
readonly page: Page$1;
|
|
2711
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2712
|
+
readonly tabGeneralLink: Locator$1;
|
|
2713
|
+
readonly tabConditionsLink: Locator$1;
|
|
2714
|
+
readonly tabDiscountsLink: Locator$1;
|
|
2715
|
+
readonly promotionCodesCard: Locator$1;
|
|
2716
|
+
readonly promotionCodesHeading: Locator$1;
|
|
2717
|
+
readonly promotionCodesSelection: Locator$1;
|
|
2718
|
+
readonly preConditionsCard: Locator$1;
|
|
2719
|
+
readonly addDiscountButton: Locator$1;
|
|
2720
|
+
readonly discountCards: Locator$1;
|
|
2721
|
+
constructor(page: Page$1, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2722
|
+
/**
|
|
2723
|
+
* Returns the url to the detail page.
|
|
2724
|
+
*
|
|
2725
|
+
* @param promotionId - Id of the promotion to show the details of.
|
|
2726
|
+
* @param tab - The tab to open. Defaults to 'general'. Other options are 'conditions' and 'discounts'.
|
|
2727
|
+
*/
|
|
2728
|
+
url(promotionId?: string, tab?: 'general' | 'conditions' | 'discounts'): string;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2662
2731
|
interface AdministrationPageTypes {
|
|
2663
2732
|
AdminProductDetail: ProductDetail;
|
|
2664
2733
|
AdminOrderDetail: OrderDetail;
|
|
@@ -2696,6 +2765,9 @@ interface AdministrationPageTypes {
|
|
|
2696
2765
|
AdminSettingsListing: SettingsListing;
|
|
2697
2766
|
AdminDocumentListing: DocumentListing;
|
|
2698
2767
|
AdminDocumentDetail: DocumentDetail;
|
|
2768
|
+
AdminPromotionsListing: PromotionsListing;
|
|
2769
|
+
AdminPromotionCreate: PromotionCreate;
|
|
2770
|
+
AdminPromotionDetail: PromotionDetail;
|
|
2699
2771
|
}
|
|
2700
2772
|
declare const AdminPageObjects: {
|
|
2701
2773
|
ProductDetail: typeof ProductDetail;
|
|
@@ -2734,6 +2806,9 @@ declare const AdminPageObjects: {
|
|
|
2734
2806
|
SettingsListing: typeof SettingsListing;
|
|
2735
2807
|
DocumentListing: typeof DocumentListing;
|
|
2736
2808
|
DocumentDetail: typeof DocumentDetail;
|
|
2809
|
+
PromotionsListing: typeof PromotionsListing;
|
|
2810
|
+
PromotionCreate: typeof PromotionCreate;
|
|
2811
|
+
PromotionDetail: typeof PromotionDetail;
|
|
2737
2812
|
};
|
|
2738
2813
|
|
|
2739
2814
|
interface DataFixtureTypes {
|