@shopware-ag/acceptance-test-suite 12.1.7 → 12.2.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.
Files changed (2) hide show
  1. package/dist/index.mjs +12 -8
  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}`, {});
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.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",