@shopware-ag/acceptance-test-suite 10.0.1 → 10.1.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 CHANGED
@@ -364,6 +364,19 @@ type CustomField = Omit<components['schemas']['CustomField'], 'config'> & {
364
364
  };
365
365
  };
366
366
  };
367
+ declare enum RuleType {
368
+ shippingAvailability = "shippingMethodAvailabilityRule",
369
+ taxAvailability = "taxProviderAvailabilityRule",
370
+ paymentAvailability = "paymentMethodAvailabilityRule",
371
+ promotionOrder = "promotionOrderRule",
372
+ promotionCustomer = "promotionCustomerRule",
373
+ promotionCart = "promotionCartRule"
374
+ }
375
+ interface RuleAssignmentEntity {
376
+ id: string;
377
+ name: string;
378
+ ruleType: RuleType;
379
+ }
367
380
 
368
381
  interface SalesChannelRecord {
369
382
  salesChannelId: string;
@@ -1640,6 +1653,28 @@ declare class ShippingListing implements PageObject {
1640
1653
  url(): string;
1641
1654
  }
1642
1655
 
1656
+ declare class ShippingDetail implements PageObject {
1657
+ readonly page: Page;
1658
+ readonly header: Locator;
1659
+ readonly nameField: Locator;
1660
+ readonly availabilityRuleField: Locator;
1661
+ readonly availabilityRuleListItem: Locator;
1662
+ constructor(page: Page);
1663
+ url(shippingId: string): string;
1664
+ getRuleSelectionCheckmark(ruleName: string): Locator;
1665
+ }
1666
+
1667
+ declare class PaymentDetail implements PageObject {
1668
+ readonly page: Page;
1669
+ readonly header: Locator;
1670
+ readonly nameField: Locator;
1671
+ readonly availabilityRuleField: Locator;
1672
+ readonly availabilityRuleListItem: Locator;
1673
+ constructor(page: Page);
1674
+ url(paymentId: string): string;
1675
+ getRuleSelectionCheckmark(ruleName: string): Locator;
1676
+ }
1677
+
1643
1678
  declare class LandingPageCreate implements PageObject {
1644
1679
  readonly page: Page;
1645
1680
  /**
@@ -1740,17 +1775,6 @@ declare class Categories implements PageObject {
1740
1775
  url(): string;
1741
1776
  }
1742
1777
 
1743
- declare class RuleDetail implements PageObject {
1744
- readonly page: Page;
1745
- readonly nameInput: Locator;
1746
- readonly priorityInput: Locator;
1747
- readonly conditionTypeSelectionInput: Locator;
1748
- readonly conditionValueSelectionInput: Locator;
1749
- readonly filtersResultPopoverSelectionList: Locator;
1750
- constructor(page: Page);
1751
- url(ruleId: string, tabName?: string): string;
1752
- }
1753
-
1754
1778
  declare class CustomFieldListing implements PageObject {
1755
1779
  readonly page: Page;
1756
1780
  readonly addNewSetButton: Locator;
@@ -1822,6 +1846,36 @@ declare class RuleCreate implements PageObject {
1822
1846
  url(): string;
1823
1847
  }
1824
1848
 
1849
+ declare class RuleDetail extends RuleCreate implements PageObject {
1850
+ readonly page: Page;
1851
+ readonly shippingMethodAvailabilityRulesCard: Locator;
1852
+ readonly shippingMethodAvailabilityRulesCardLink: Locator;
1853
+ readonly shippingMethodAvailabilityRulesCardTable: Locator;
1854
+ readonly shippingMethodAvailabilityRulesCardEmptyState: Locator;
1855
+ readonly shippingMethodAvailabilityRulesCardSearchField: Locator;
1856
+ readonly taxProviderRulesCard: Locator;
1857
+ readonly taxProviderRulesCardEmptyState: Locator;
1858
+ readonly paymentMethodsAvailabilityRulesCard: Locator;
1859
+ readonly paymentMethodsAvailabilityRulesCardEmptyState: Locator;
1860
+ readonly paymentMethodsAvailabilityRulesCardLink: Locator;
1861
+ readonly promotionOrderRulesCard: Locator;
1862
+ readonly promotionOrderRulesCardEmptyState: Locator;
1863
+ readonly promotionCustomerRulesCard: Locator;
1864
+ readonly promotionCustomerRulesCardEmptyState: Locator;
1865
+ readonly promotionCartRulesCard: Locator;
1866
+ readonly promotionCartRulesCardEmptyState: Locator;
1867
+ constructor(page: Page);
1868
+ getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
1869
+ url(ruleId?: string, tabName?: string): string;
1870
+ }
1871
+
1872
+ declare class RuleListing implements PageObject {
1873
+ readonly page: Page;
1874
+ readonly createRuleButton: Locator;
1875
+ constructor(page: Page);
1876
+ url(): string;
1877
+ }
1878
+
1825
1879
  declare class ManufacturerCreate implements PageObject {
1826
1880
  readonly page: Page;
1827
1881
  readonly saveButton: Locator;
@@ -1979,15 +2033,18 @@ interface AdministrationPageTypes {
1979
2033
  AdminDataSharing: DataSharing;
1980
2034
  AdminDashboard: Dashboard;
1981
2035
  AdminShippingListing: ShippingListing;
2036
+ AdminShippingDetail: ShippingDetail;
2037
+ AdminPaymentDetail: PaymentDetail;
1982
2038
  AdminCategories: Categories;
1983
2039
  AdminCategoryDetail: CategoryDetail;
1984
2040
  AdminLandingPageCreate: LandingPageCreate;
1985
2041
  AdminLandingPageDetail: LandingPageDetail;
1986
- AdminRuleDetail: RuleDetail;
1987
- AdminRuleCreate: RuleCreate;
1988
2042
  AdminCustomFieldListing: CustomFieldListing;
1989
2043
  AdminCustomFieldCreate: CustomFieldCreate;
1990
2044
  AdminCustomFieldDetail: CustomFieldDetail;
2045
+ AdminRuleDetail: RuleDetail;
2046
+ AdminRuleCreate: RuleCreate;
2047
+ AdminRuleListing: RuleListing;
1991
2048
  AdminManufacturerCreate: ManufacturerCreate;
1992
2049
  AdminManufacturerListing: ManufacturerListing;
1993
2050
  AdminManufacturerDetail: ManufacturerDetail;
@@ -2010,15 +2067,18 @@ declare const AdminPageObjects: {
2010
2067
  Dashboard: typeof Dashboard;
2011
2068
  DataSharing: typeof DataSharing;
2012
2069
  ShippingListing: typeof ShippingListing;
2070
+ ShippingDetail: typeof ShippingDetail;
2071
+ PaymentDetail: typeof PaymentDetail;
2013
2072
  Categories: typeof Categories;
2014
2073
  CategoryDetail: typeof CategoryDetail;
2015
2074
  LandingPageCreate: typeof LandingPageCreate;
2016
2075
  LandingPageDetail: typeof LandingPageDetail;
2017
- RuleDetail: typeof RuleDetail;
2018
- RuleCreate: typeof RuleCreate;
2019
2076
  CustomFieldListing: typeof CustomFieldListing;
2020
2077
  CustomFieldCreate: typeof CustomFieldCreate;
2021
2078
  CustomFieldDetail: typeof CustomFieldDetail;
2079
+ RuleCreate: typeof RuleCreate;
2080
+ RuleDetail: typeof RuleDetail;
2081
+ RuleListing: typeof RuleListing;
2022
2082
  ManufacturerCreate: typeof ManufacturerCreate;
2023
2083
  ManufacturerDetail: typeof ManufacturerDetail;
2024
2084
  ManufacturerListing: typeof ManufacturerListing;
@@ -2121,6 +2181,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
2121
2181
  BulkEditProducts: Task;
2122
2182
  } & {
2123
2183
  BulkEditCustomers: Task;
2184
+ } & {
2185
+ AssignEntitiesToRule: Task;
2124
2186
  } & {
2125
2187
  Login: Task;
2126
2188
  } & {
@@ -2161,4 +2223,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
2161
2223
  ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
2162
2224
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
2163
2225
 
2164
- export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type CustomField, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Language$1 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type SalesChannel, type SalesChannelAnalytics, type SalesChannelDomain, type SalesChannelRecord, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
2226
+ export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type CustomField, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Language$1 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type RuleAssignmentEntity, RuleType, type SalesChannel, type SalesChannelAnalytics, type SalesChannelDomain, type SalesChannelRecord, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
package/dist/index.d.ts CHANGED
@@ -364,6 +364,19 @@ type CustomField = Omit<components['schemas']['CustomField'], 'config'> & {
364
364
  };
365
365
  };
366
366
  };
367
+ declare enum RuleType {
368
+ shippingAvailability = "shippingMethodAvailabilityRule",
369
+ taxAvailability = "taxProviderAvailabilityRule",
370
+ paymentAvailability = "paymentMethodAvailabilityRule",
371
+ promotionOrder = "promotionOrderRule",
372
+ promotionCustomer = "promotionCustomerRule",
373
+ promotionCart = "promotionCartRule"
374
+ }
375
+ interface RuleAssignmentEntity {
376
+ id: string;
377
+ name: string;
378
+ ruleType: RuleType;
379
+ }
367
380
 
368
381
  interface SalesChannelRecord {
369
382
  salesChannelId: string;
@@ -1640,6 +1653,28 @@ declare class ShippingListing implements PageObject {
1640
1653
  url(): string;
1641
1654
  }
1642
1655
 
1656
+ declare class ShippingDetail implements PageObject {
1657
+ readonly page: Page;
1658
+ readonly header: Locator;
1659
+ readonly nameField: Locator;
1660
+ readonly availabilityRuleField: Locator;
1661
+ readonly availabilityRuleListItem: Locator;
1662
+ constructor(page: Page);
1663
+ url(shippingId: string): string;
1664
+ getRuleSelectionCheckmark(ruleName: string): Locator;
1665
+ }
1666
+
1667
+ declare class PaymentDetail implements PageObject {
1668
+ readonly page: Page;
1669
+ readonly header: Locator;
1670
+ readonly nameField: Locator;
1671
+ readonly availabilityRuleField: Locator;
1672
+ readonly availabilityRuleListItem: Locator;
1673
+ constructor(page: Page);
1674
+ url(paymentId: string): string;
1675
+ getRuleSelectionCheckmark(ruleName: string): Locator;
1676
+ }
1677
+
1643
1678
  declare class LandingPageCreate implements PageObject {
1644
1679
  readonly page: Page;
1645
1680
  /**
@@ -1740,17 +1775,6 @@ declare class Categories implements PageObject {
1740
1775
  url(): string;
1741
1776
  }
1742
1777
 
1743
- declare class RuleDetail implements PageObject {
1744
- readonly page: Page;
1745
- readonly nameInput: Locator;
1746
- readonly priorityInput: Locator;
1747
- readonly conditionTypeSelectionInput: Locator;
1748
- readonly conditionValueSelectionInput: Locator;
1749
- readonly filtersResultPopoverSelectionList: Locator;
1750
- constructor(page: Page);
1751
- url(ruleId: string, tabName?: string): string;
1752
- }
1753
-
1754
1778
  declare class CustomFieldListing implements PageObject {
1755
1779
  readonly page: Page;
1756
1780
  readonly addNewSetButton: Locator;
@@ -1822,6 +1846,36 @@ declare class RuleCreate implements PageObject {
1822
1846
  url(): string;
1823
1847
  }
1824
1848
 
1849
+ declare class RuleDetail extends RuleCreate implements PageObject {
1850
+ readonly page: Page;
1851
+ readonly shippingMethodAvailabilityRulesCard: Locator;
1852
+ readonly shippingMethodAvailabilityRulesCardLink: Locator;
1853
+ readonly shippingMethodAvailabilityRulesCardTable: Locator;
1854
+ readonly shippingMethodAvailabilityRulesCardEmptyState: Locator;
1855
+ readonly shippingMethodAvailabilityRulesCardSearchField: Locator;
1856
+ readonly taxProviderRulesCard: Locator;
1857
+ readonly taxProviderRulesCardEmptyState: Locator;
1858
+ readonly paymentMethodsAvailabilityRulesCard: Locator;
1859
+ readonly paymentMethodsAvailabilityRulesCardEmptyState: Locator;
1860
+ readonly paymentMethodsAvailabilityRulesCardLink: Locator;
1861
+ readonly promotionOrderRulesCard: Locator;
1862
+ readonly promotionOrderRulesCardEmptyState: Locator;
1863
+ readonly promotionCustomerRulesCard: Locator;
1864
+ readonly promotionCustomerRulesCardEmptyState: Locator;
1865
+ readonly promotionCartRulesCard: Locator;
1866
+ readonly promotionCartRulesCardEmptyState: Locator;
1867
+ constructor(page: Page);
1868
+ getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
1869
+ url(ruleId?: string, tabName?: string): string;
1870
+ }
1871
+
1872
+ declare class RuleListing implements PageObject {
1873
+ readonly page: Page;
1874
+ readonly createRuleButton: Locator;
1875
+ constructor(page: Page);
1876
+ url(): string;
1877
+ }
1878
+
1825
1879
  declare class ManufacturerCreate implements PageObject {
1826
1880
  readonly page: Page;
1827
1881
  readonly saveButton: Locator;
@@ -1979,15 +2033,18 @@ interface AdministrationPageTypes {
1979
2033
  AdminDataSharing: DataSharing;
1980
2034
  AdminDashboard: Dashboard;
1981
2035
  AdminShippingListing: ShippingListing;
2036
+ AdminShippingDetail: ShippingDetail;
2037
+ AdminPaymentDetail: PaymentDetail;
1982
2038
  AdminCategories: Categories;
1983
2039
  AdminCategoryDetail: CategoryDetail;
1984
2040
  AdminLandingPageCreate: LandingPageCreate;
1985
2041
  AdminLandingPageDetail: LandingPageDetail;
1986
- AdminRuleDetail: RuleDetail;
1987
- AdminRuleCreate: RuleCreate;
1988
2042
  AdminCustomFieldListing: CustomFieldListing;
1989
2043
  AdminCustomFieldCreate: CustomFieldCreate;
1990
2044
  AdminCustomFieldDetail: CustomFieldDetail;
2045
+ AdminRuleDetail: RuleDetail;
2046
+ AdminRuleCreate: RuleCreate;
2047
+ AdminRuleListing: RuleListing;
1991
2048
  AdminManufacturerCreate: ManufacturerCreate;
1992
2049
  AdminManufacturerListing: ManufacturerListing;
1993
2050
  AdminManufacturerDetail: ManufacturerDetail;
@@ -2010,15 +2067,18 @@ declare const AdminPageObjects: {
2010
2067
  Dashboard: typeof Dashboard;
2011
2068
  DataSharing: typeof DataSharing;
2012
2069
  ShippingListing: typeof ShippingListing;
2070
+ ShippingDetail: typeof ShippingDetail;
2071
+ PaymentDetail: typeof PaymentDetail;
2013
2072
  Categories: typeof Categories;
2014
2073
  CategoryDetail: typeof CategoryDetail;
2015
2074
  LandingPageCreate: typeof LandingPageCreate;
2016
2075
  LandingPageDetail: typeof LandingPageDetail;
2017
- RuleDetail: typeof RuleDetail;
2018
- RuleCreate: typeof RuleCreate;
2019
2076
  CustomFieldListing: typeof CustomFieldListing;
2020
2077
  CustomFieldCreate: typeof CustomFieldCreate;
2021
2078
  CustomFieldDetail: typeof CustomFieldDetail;
2079
+ RuleCreate: typeof RuleCreate;
2080
+ RuleDetail: typeof RuleDetail;
2081
+ RuleListing: typeof RuleListing;
2022
2082
  ManufacturerCreate: typeof ManufacturerCreate;
2023
2083
  ManufacturerDetail: typeof ManufacturerDetail;
2024
2084
  ManufacturerListing: typeof ManufacturerListing;
@@ -2121,6 +2181,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
2121
2181
  BulkEditProducts: Task;
2122
2182
  } & {
2123
2183
  BulkEditCustomers: Task;
2184
+ } & {
2185
+ AssignEntitiesToRule: Task;
2124
2186
  } & {
2125
2187
  Login: Task;
2126
2188
  } & {
@@ -2161,4 +2223,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
2161
2223
  ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
2162
2224
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
2163
2225
 
2164
- export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type CustomField, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Language$1 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type SalesChannel, type SalesChannelAnalytics, type SalesChannelDomain, type SalesChannelRecord, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
2226
+ export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type CustomField, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Language$1 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type RuleAssignmentEntity, RuleType, type SalesChannel, type SalesChannelAnalytics, type SalesChannelDomain, type SalesChannelRecord, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };