@shopware-ag/acceptance-test-suite 12.1.6 → 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.
package/dist/index.d.mts CHANGED
@@ -5063,6 +5063,8 @@ declare class RuleDetail extends RuleCreate implements PageObject {
5063
5063
  readonly conditionFilterModalCloseButtonX: Locator;
5064
5064
  readonly conditionORContainer: Locator;
5065
5065
  readonly adminMenuAvatar: Locator;
5066
+ readonly conditionDateRangeUseTimeOperator: Locator | undefined;
5067
+ readonly conditionDateRangeTimezoneOperator: Locator | undefined;
5066
5068
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
5067
5069
  getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
5068
5070
  url(ruleId?: string, tabName?: string): string;
package/dist/index.d.ts CHANGED
@@ -5063,6 +5063,8 @@ declare class RuleDetail extends RuleCreate implements PageObject {
5063
5063
  readonly conditionFilterModalCloseButtonX: Locator;
5064
5064
  readonly conditionORContainer: Locator;
5065
5065
  readonly adminMenuAvatar: Locator;
5066
+ readonly conditionDateRangeUseTimeOperator: Locator | undefined;
5067
+ readonly conditionDateRangeTimezoneOperator: Locator | undefined;
5066
5068
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
5067
5069
  getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
5068
5070
  url(ruleId?: string, tabName?: string): string;
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}`, {});
@@ -9307,6 +9311,8 @@ class RuleDetail extends RuleCreate {
9307
9311
  conditionFilterModalCloseButtonX;
9308
9312
  conditionORContainer;
9309
9313
  adminMenuAvatar;
9314
+ conditionDateRangeUseTimeOperator;
9315
+ conditionDateRangeTimezoneOperator;
9310
9316
  constructor(page, instanceMeta) {
9311
9317
  super(page, instanceMeta);
9312
9318
  this.contentView = page.locator(".sw-desktop__content");
@@ -9367,6 +9373,10 @@ class RuleDetail extends RuleCreate {
9367
9373
  this.conditionLineItemGoodsTotalValue = page.locator(".sw-condition-line-item-goods-total").getByRole("textbox");
9368
9374
  this.conditionLineItemGoodsTotalFilter = page.locator(".sw-condition-line-item-goods-total__filter").getByRole("button");
9369
9375
  this.conditionDateRangeOperator = page.locator(".sw-condition-date-range").locator(".sw-single-select__selection-text");
9376
+ if (satisfies(instanceMeta.version, ">=6.7.6")) {
9377
+ this.conditionDateRangeUseTimeOperator = page.locator(".sw-condition-date-range__use-time").locator(".sw-single-select__selection-text");
9378
+ this.conditionDateRangeTimezoneOperator = page.locator(".sw-condition-date-range__timezone").locator(".sw-single-select__selection-text");
9379
+ }
9370
9380
  if (satisfies(instanceMeta.version, "<6.7.3")) {
9371
9381
  this.conditionDateRangeDateFieldFirst = page.locator(".sw-condition-date-range").locator(".flatpickr-input").first();
9372
9382
  this.conditionDateRangeDateFieldSecond = page.locator(".sw-condition-date-range").locator(".flatpickr-input").last();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "12.1.6",
3
+ "version": "12.2.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",