@shopware-ag/acceptance-test-suite 1.3.1 → 1.4.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
@@ -121,6 +121,7 @@ interface StoreBaseConfig {
121
121
  enGBLocaleId: string;
122
122
  enGBLanguageId: string;
123
123
  eurCurrencyId: string;
124
+ defaultCurrencyId: string;
124
125
  invoicePaymentMethodId: string;
125
126
  defaultShippingMethod: string;
126
127
  taxId: string;
@@ -556,6 +557,8 @@ declare const getOrderTransactionId: (orderId: string, adminApiContext: AdminApi
556
557
  declare const getMediaId: (fileName: string, adminApiContext: AdminApiContext) => Promise<string>;
557
558
  declare function extractIdFromUrl(url: string): string | null;
558
559
 
560
+ declare const isSaaSInstance: (adminApiContext: AdminApiContext) => Promise<boolean>;
561
+
559
562
  declare function createRandomImage(width?: number, height?: number): Image;
560
563
 
561
564
  declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & FixtureTypes & {
@@ -594,4 +597,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
594
597
  ValidateAccessibility: (pageName: string, assertViolations?: boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<void>;
595
598
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & HelperFixtureTypes & FixtureTypes>;
596
599
 
597
- export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, test };
600
+ export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, test };
package/dist/index.d.ts CHANGED
@@ -121,6 +121,7 @@ interface StoreBaseConfig {
121
121
  enGBLocaleId: string;
122
122
  enGBLanguageId: string;
123
123
  eurCurrencyId: string;
124
+ defaultCurrencyId: string;
124
125
  invoicePaymentMethodId: string;
125
126
  defaultShippingMethod: string;
126
127
  taxId: string;
@@ -556,6 +557,8 @@ declare const getOrderTransactionId: (orderId: string, adminApiContext: AdminApi
556
557
  declare const getMediaId: (fileName: string, adminApiContext: AdminApiContext) => Promise<string>;
557
558
  declare function extractIdFromUrl(url: string): string | null;
558
559
 
560
+ declare const isSaaSInstance: (adminApiContext: AdminApiContext) => Promise<boolean>;
561
+
559
562
  declare function createRandomImage(width?: number, height?: number): Image;
560
563
 
561
564
  declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & FixtureTypes & {
@@ -594,4 +597,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
594
597
  ValidateAccessibility: (pageName: string, assertViolations?: boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<void>;
595
598
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & HelperFixtureTypes & FixtureTypes>;
596
599
 
597
- export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, test };
600
+ export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, test };
package/dist/index.mjs CHANGED
@@ -218,6 +218,7 @@ const test$a = test$c.extend({
218
218
  enGBLanguageId: lang.id,
219
219
  storefrontTypeId: "8a243080f92e4c719546314b577cf82b",
220
220
  eurCurrencyId: currency.id,
221
+ defaultCurrencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
221
222
  invoicePaymentMethodId: await requests.invoicePaymentMethodId,
222
223
  defaultShippingMethod: await requests.defaultShippingMethod,
223
224
  taxId: await requests.getTaxId,
@@ -646,7 +647,7 @@ const test$8 = test$c.extend({
646
647
  });
647
648
  expect(response.ok()).toBeTruthy();
648
649
  await page.goto("#/login");
649
- await page.getByLabel("Username").fill(adminUser.username);
650
+ await page.getByLabel(/Username|Email address/).fill(adminUser.username);
650
651
  await page.getByLabel("Password").fill(adminUser.password);
651
652
  await page.getByRole("button", { name: "Log in" }).click();
652
653
  await expect(page.locator("css=.sw-admin-menu__header-logo").first()).toBeVisible({
@@ -1601,6 +1602,12 @@ const ProductData = test$c.extend({
1601
1602
  gross: 10,
1602
1603
  linked: false,
1603
1604
  net: 8.4
1605
+ },
1606
+ {
1607
+ currencyId: SalesChannelBaseConfig.defaultCurrencyId,
1608
+ gross: 10,
1609
+ linked: false,
1610
+ net: 8.4
1604
1611
  }
1605
1612
  ],
1606
1613
  purchasePrices: [
@@ -1609,6 +1616,12 @@ const ProductData = test$c.extend({
1609
1616
  gross: 8,
1610
1617
  linked: false,
1611
1618
  net: 6.7
1619
+ },
1620
+ {
1621
+ currencyId: SalesChannelBaseConfig.defaultCurrencyId,
1622
+ gross: 8,
1623
+ linked: false,
1624
+ net: 6.7
1612
1625
  }
1613
1626
  ],
1614
1627
  visibilities: [
@@ -2425,6 +2438,11 @@ const test$1 = mergeTests(
2425
2438
  ValidateAccessibility
2426
2439
  );
2427
2440
 
2441
+ const isSaaSInstance = async (adminApiContext) => {
2442
+ const instanceFeatures = await adminApiContext.get("./instance/features");
2443
+ return instanceFeatures.ok();
2444
+ };
2445
+
2428
2446
  const test = mergeTests(
2429
2447
  test$6,
2430
2448
  test$a,
@@ -2438,4 +2456,4 @@ const test = mergeTests(
2438
2456
  test$1
2439
2457
  );
2440
2458
 
2441
- export { AdminPageObjects, StorefrontPageObjects, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, test };
2459
+ export { AdminPageObjects, StorefrontPageObjects, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, test };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",