@shopware-ag/acceptance-test-suite 11.30.0 → 11.31.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
@@ -2390,6 +2390,53 @@ declare class MediaListing implements PageObject {
2390
2390
  url(): string;
2391
2391
  }
2392
2392
 
2393
+ declare class LayoutListing implements PageObject {
2394
+ readonly createNewLayoutButton: Locator;
2395
+ readonly viewChangeButton: Locator;
2396
+ readonly listingGrid: Locator;
2397
+ readonly page: Page;
2398
+ readonly pagination: Locator;
2399
+ constructor(page: Page);
2400
+ url(): string;
2401
+ }
2402
+
2403
+ declare class LayoutCreate implements PageObject {
2404
+ readonly shopPageButton: Locator;
2405
+ readonly landingPageButton: Locator;
2406
+ readonly listingPageButton: Locator;
2407
+ readonly productPageButton: Locator;
2408
+ readonly cancelButton: Locator;
2409
+ readonly saveButton: Locator;
2410
+ readonly fullWidthButton: Locator;
2411
+ readonly sidebarButton: Locator;
2412
+ readonly backButton: Locator;
2413
+ readonly layoutNameInput: Locator;
2414
+ readonly createLayoutButton: Locator;
2415
+ readonly page: Page;
2416
+ constructor(page: Page);
2417
+ url(): string;
2418
+ }
2419
+
2420
+ declare class ListingPageLayoutDetail implements PageObject {
2421
+ readonly addSectionButton: Locator;
2422
+ readonly sectionSelectionField: Locator;
2423
+ readonly fullWidthSection: Locator;
2424
+ readonly sidebarSection: Locator;
2425
+ readonly sectionEmptyState: Locator;
2426
+ readonly saveButton: Locator;
2427
+ readonly loadingSpinner: Locator;
2428
+ readonly loaderButton: Locator;
2429
+ readonly productListingBlock: Locator;
2430
+ readonly sidebarTitle: Locator;
2431
+ readonly settingsButton: Locator;
2432
+ readonly blocksButton: Locator;
2433
+ readonly navigatorButton: Locator;
2434
+ readonly layoutAssignmentButton: Locator;
2435
+ readonly page: Page;
2436
+ constructor(page: Page);
2437
+ url(layoutId: string): string;
2438
+ }
2439
+
2393
2440
  interface AdministrationPageTypes {
2394
2441
  AdminProductDetail: ProductDetail$1;
2395
2442
  AdminOrderDetail: OrderDetail;
@@ -2435,6 +2482,9 @@ interface AdministrationPageTypes {
2435
2482
  AdminThemesListing: ThemesListing;
2436
2483
  AdminThemesDetail: ThemesDetail;
2437
2484
  AdminMediaListing: MediaListing;
2485
+ AdminLayoutListing: LayoutListing;
2486
+ AdminListingPageLayoutDetail: ListingPageLayoutDetail;
2487
+ AdminLayoutCreate: LayoutCreate;
2438
2488
  }
2439
2489
  declare const AdminPageObjects: {
2440
2490
  ProductDetail: typeof ProductDetail$1;
@@ -2481,6 +2531,9 @@ declare const AdminPageObjects: {
2481
2531
  ThemesListing: typeof ThemesListing;
2482
2532
  ThemesDetail: typeof ThemesDetail;
2483
2533
  MediaListing: typeof MediaListing;
2534
+ LayoutListing: typeof LayoutListing;
2535
+ ListingPageLayoutDetail: typeof ListingPageLayoutDetail;
2536
+ LayoutCreate: typeof LayoutCreate;
2484
2537
  };
2485
2538
 
2486
2539
  interface DataFixtureTypes {
package/dist/index.d.ts CHANGED
@@ -2390,6 +2390,53 @@ declare class MediaListing implements PageObject {
2390
2390
  url(): string;
2391
2391
  }
2392
2392
 
2393
+ declare class LayoutListing implements PageObject {
2394
+ readonly createNewLayoutButton: Locator;
2395
+ readonly viewChangeButton: Locator;
2396
+ readonly listingGrid: Locator;
2397
+ readonly page: Page;
2398
+ readonly pagination: Locator;
2399
+ constructor(page: Page);
2400
+ url(): string;
2401
+ }
2402
+
2403
+ declare class LayoutCreate implements PageObject {
2404
+ readonly shopPageButton: Locator;
2405
+ readonly landingPageButton: Locator;
2406
+ readonly listingPageButton: Locator;
2407
+ readonly productPageButton: Locator;
2408
+ readonly cancelButton: Locator;
2409
+ readonly saveButton: Locator;
2410
+ readonly fullWidthButton: Locator;
2411
+ readonly sidebarButton: Locator;
2412
+ readonly backButton: Locator;
2413
+ readonly layoutNameInput: Locator;
2414
+ readonly createLayoutButton: Locator;
2415
+ readonly page: Page;
2416
+ constructor(page: Page);
2417
+ url(): string;
2418
+ }
2419
+
2420
+ declare class ListingPageLayoutDetail implements PageObject {
2421
+ readonly addSectionButton: Locator;
2422
+ readonly sectionSelectionField: Locator;
2423
+ readonly fullWidthSection: Locator;
2424
+ readonly sidebarSection: Locator;
2425
+ readonly sectionEmptyState: Locator;
2426
+ readonly saveButton: Locator;
2427
+ readonly loadingSpinner: Locator;
2428
+ readonly loaderButton: Locator;
2429
+ readonly productListingBlock: Locator;
2430
+ readonly sidebarTitle: Locator;
2431
+ readonly settingsButton: Locator;
2432
+ readonly blocksButton: Locator;
2433
+ readonly navigatorButton: Locator;
2434
+ readonly layoutAssignmentButton: Locator;
2435
+ readonly page: Page;
2436
+ constructor(page: Page);
2437
+ url(layoutId: string): string;
2438
+ }
2439
+
2393
2440
  interface AdministrationPageTypes {
2394
2441
  AdminProductDetail: ProductDetail$1;
2395
2442
  AdminOrderDetail: OrderDetail;
@@ -2435,6 +2482,9 @@ interface AdministrationPageTypes {
2435
2482
  AdminThemesListing: ThemesListing;
2436
2483
  AdminThemesDetail: ThemesDetail;
2437
2484
  AdminMediaListing: MediaListing;
2485
+ AdminLayoutListing: LayoutListing;
2486
+ AdminListingPageLayoutDetail: ListingPageLayoutDetail;
2487
+ AdminLayoutCreate: LayoutCreate;
2438
2488
  }
2439
2489
  declare const AdminPageObjects: {
2440
2490
  ProductDetail: typeof ProductDetail$1;
@@ -2481,6 +2531,9 @@ declare const AdminPageObjects: {
2481
2531
  ThemesListing: typeof ThemesListing;
2482
2532
  ThemesDetail: typeof ThemesDetail;
2483
2533
  MediaListing: typeof MediaListing;
2534
+ LayoutListing: typeof LayoutListing;
2535
+ ListingPageLayoutDetail: typeof ListingPageLayoutDetail;
2536
+ LayoutCreate: typeof LayoutCreate;
2484
2537
  };
2485
2538
 
2486
2539
  interface DataFixtureTypes {
package/dist/index.mjs CHANGED
@@ -6969,6 +6969,100 @@ class MediaListing {
6969
6969
  }
6970
6970
  }
6971
6971
 
6972
+ class LayoutListing {
6973
+ createNewLayoutButton;
6974
+ viewChangeButton;
6975
+ listingGrid;
6976
+ page;
6977
+ pagination;
6978
+ constructor(page) {
6979
+ this.page = page;
6980
+ this.createNewLayoutButton = page.getByRole("button", { name: "Create new layout" });
6981
+ this.viewChangeButton = page.locator(".sw-cms-list__actions-mode");
6982
+ this.listingGrid = page.locator(".sw-cms-list__list-grid");
6983
+ this.pagination = page.locator(".sw-pagination__list");
6984
+ }
6985
+ url() {
6986
+ return `#/sw/cms/index`;
6987
+ }
6988
+ }
6989
+
6990
+ class LayoutCreate {
6991
+ //layout types
6992
+ shopPageButton;
6993
+ landingPageButton;
6994
+ listingPageButton;
6995
+ productPageButton;
6996
+ cancelButton;
6997
+ saveButton;
6998
+ //section types
6999
+ fullWidthButton;
7000
+ sidebarButton;
7001
+ backButton;
7002
+ //label
7003
+ layoutNameInput;
7004
+ createLayoutButton;
7005
+ page;
7006
+ constructor(page) {
7007
+ this.page = page;
7008
+ this.shopPageButton = page.getByRole("button", { name: "Shop page" });
7009
+ this.landingPageButton = page.getByRole("button", { name: "Landing page" });
7010
+ this.listingPageButton = page.getByRole("button", { name: "Listing page" });
7011
+ this.productPageButton = page.getByRole("button", { name: "Product page" });
7012
+ this.cancelButton = page.getByRole("link", { name: "Cancel" });
7013
+ this.saveButton = page.getByRole("button", { name: "Save" });
7014
+ this.fullWidthButton = page.getByRole("button", { name: "Full width" });
7015
+ this.sidebarButton = page.getByRole("button", { name: "Sidebar" });
7016
+ this.backButton = page.getByRole("button", { name: "Back" });
7017
+ this.layoutNameInput = page.getByRole("textbox", { name: "Layout name" });
7018
+ this.createLayoutButton = page.getByRole("button", { name: "Create layout" });
7019
+ }
7020
+ url() {
7021
+ return `#/sw/cms/create`;
7022
+ }
7023
+ }
7024
+
7025
+ class ListingPageLayoutDetail {
7026
+ //General
7027
+ addSectionButton;
7028
+ sectionSelectionField;
7029
+ fullWidthSection;
7030
+ sidebarSection;
7031
+ sectionEmptyState;
7032
+ saveButton;
7033
+ loadingSpinner;
7034
+ loaderButton;
7035
+ //Blocks
7036
+ productListingBlock;
7037
+ sidebarTitle;
7038
+ //Sidebar
7039
+ settingsButton;
7040
+ blocksButton;
7041
+ navigatorButton;
7042
+ layoutAssignmentButton;
7043
+ page;
7044
+ constructor(page) {
7045
+ this.page = page;
7046
+ this.addSectionButton = page.locator(".sw-cms-stage-add-section__button");
7047
+ this.sectionSelectionField = page.locator(".sw-cms-stage-section-selection");
7048
+ this.fullWidthSection = page.locator(".sw-cms-stage-section-selection__default");
7049
+ this.sidebarSection = page.locator(".sw-cms-stage-section-selection__sidebar");
7050
+ this.sectionEmptyState = page.locator(".sw-cms-section__empty-stage");
7051
+ this.saveButton = page.getByRole("button", { name: "Save" });
7052
+ this.loadingSpinner = page.locator(".sw-loader");
7053
+ this.loaderButton = page.locator(".mt-button__loader");
7054
+ this.productListingBlock = page.locator(".sw-cms-block-product-listing");
7055
+ this.sidebarTitle = page.locator(".sw-sidebar-item__title");
7056
+ this.settingsButton = page.locator('button[title="Settings"]');
7057
+ this.blocksButton = page.locator('button[title="Blocks"]');
7058
+ this.navigatorButton = page.locator('button[title="Navigator"]');
7059
+ this.layoutAssignmentButton = page.locator('button[title="Layout assignment"]');
7060
+ }
7061
+ url(layoutId) {
7062
+ return `#/sw/cms/detail/${layoutId}`;
7063
+ }
7064
+ }
7065
+
6972
7066
  const AdminPageObjects = {
6973
7067
  ProductDetail,
6974
7068
  OrderDetail,
@@ -7013,7 +7107,10 @@ const AdminPageObjects = {
7013
7107
  YourProfile,
7014
7108
  ThemesListing,
7015
7109
  ThemesDetail,
7016
- MediaListing
7110
+ MediaListing,
7111
+ LayoutListing,
7112
+ ListingPageLayoutDetail,
7113
+ LayoutCreate
7017
7114
  };
7018
7115
  const test$6 = test$e.extend({
7019
7116
  AdminProductDetail: async ({ AdminPage, InstanceMeta }, use) => {
@@ -7147,6 +7244,15 @@ const test$6 = test$e.extend({
7147
7244
  },
7148
7245
  AdminMediaListing: async ({ AdminPage }, use) => {
7149
7246
  await use(new MediaListing(AdminPage));
7247
+ },
7248
+ AdminLayoutListing: async ({ AdminPage }, use) => {
7249
+ await use(new LayoutListing(AdminPage));
7250
+ },
7251
+ AdminListingPageLayoutDetail: async ({ AdminPage }, use) => {
7252
+ await use(new ListingPageLayoutDetail(AdminPage));
7253
+ },
7254
+ AdminLayoutCreate: async ({ AdminPage }, use) => {
7255
+ await use(new LayoutCreate(AdminPage));
7150
7256
  }
7151
7257
  });
7152
7258
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.30.0",
3
+ "version": "11.31.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",