@shopware-ag/acceptance-test-suite 12.1.7 → 12.2.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +19 -11
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -5445,14 +5445,18 @@ class TestDataService {
5445
5445
  deleteOperations[`delete-${record.resource}`].payload.push(record.payload);
5446
5446
  }
5447
5447
  });
5448
- const priorityDeleteOperationsResponse = await this.AdminApiClient.post("_action/sync", {
5449
- data: priorityDeleteOperations
5450
- });
5451
- expect(priorityDeleteOperationsResponse.ok()).toBeTruthy();
5452
- const restoreSystemConfigResponse = await this.AdminApiClient.post(`_action/system-config?_response=detail&salesChannelId=${this.defaultSalesChannel.id}`, {
5453
- data: this.restoreSystemConfig
5454
- });
5455
- expect(restoreSystemConfigResponse.ok()).toBeTruthy();
5448
+ if (Object.keys(priorityDeleteOperations).length > 0) {
5449
+ const priorityDeleteOperationsResponse = await this.AdminApiClient.post("_action/sync", {
5450
+ data: priorityDeleteOperations
5451
+ });
5452
+ expect(priorityDeleteOperationsResponse.ok()).toBeTruthy();
5453
+ }
5454
+ if (Object.keys(this.restoreSystemConfig).length > 0) {
5455
+ const restoreSystemConfigResponse = await this.AdminApiClient.post(`_action/system-config?_response=detail&salesChannelId=${this.defaultSalesChannel.id}`, {
5456
+ data: this.restoreSystemConfig
5457
+ });
5458
+ expect(restoreSystemConfigResponse.ok()).toBeTruthy();
5459
+ }
5456
5460
  if (deleteUserIds.length > 0) {
5457
5461
  for (const userId of deleteUserIds) {
5458
5462
  await this.AdminApiClient.delete(`user/${userId}`, {});
@@ -11720,7 +11724,9 @@ const ProceedFromProductToCheckout = test$e.extend({
11720
11724
  ProceedFromProductToCheckout: async ({ ShopCustomer, StorefrontProductDetail, StorefrontCheckoutConfirm }, use) => {
11721
11725
  const task = () => {
11722
11726
  return async function ProceedFromProductToCheckout2() {
11723
- await StorefrontProductDetail.offCanvasCartGoToCheckoutButton.click();
11727
+ await StorefrontProductDetail.offCanvasCartGoToCheckoutButton.scrollIntoViewIfNeeded();
11728
+ await ShopCustomer.presses(StorefrontProductDetail.offCanvasCartGoToCheckoutButton);
11729
+ await StorefrontCheckoutConfirm.page.waitForURL("**/checkout/confirm", { waitUntil: "commit" });
11724
11730
  await ShopCustomer.expects(StorefrontCheckoutConfirm.headline).toBeVisible();
11725
11731
  };
11726
11732
  };
@@ -11736,7 +11742,8 @@ const ProceedFromCartToCheckout = test$e.extend({
11736
11742
  }, use) => {
11737
11743
  const task = () => {
11738
11744
  return async function ProceedFromCartToCheckout2() {
11739
- await StorefrontCheckoutCart.goToCheckoutButton.click();
11745
+ await ShopCustomer.presses(StorefrontCheckoutCart.goToCheckoutButton);
11746
+ await StorefrontCheckoutConfirm.page.waitForURL("**/checkout/confirm", { waitUntil: "commit" });
11740
11747
  await ShopCustomer.expects(StorefrontCheckoutConfirm.headline).toBeVisible();
11741
11748
  };
11742
11749
  };
@@ -11865,7 +11872,8 @@ const SubmitOrder = test$e.extend({
11865
11872
  SubmitOrder: async ({ ShopCustomer, StorefrontCheckoutConfirm, StorefrontCheckoutFinish }, use) => {
11866
11873
  const task = () => {
11867
11874
  return async function SubmitOrder2() {
11868
- await StorefrontCheckoutConfirm.submitOrderButton.click();
11875
+ await ShopCustomer.presses(StorefrontCheckoutConfirm.submitOrderButton);
11876
+ await StorefrontCheckoutFinish.page.waitForURL("**/checkout/finish**", { waitUntil: "commit" });
11869
11877
  await ShopCustomer.expects(StorefrontCheckoutFinish.headline).toBeVisible();
11870
11878
  };
11871
11879
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "12.1.7",
3
+ "version": "12.2.1",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",