Skip to content

Commit 604b5d5

Browse files
committed
Added support for ps_emailalerts
1 parent 2ed16ca commit 604b5d5

File tree

48 files changed

+1969
-1777
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1969
-1777
lines changed

src/data/faker/product.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ export default class FakerProduct {
134134
public deliveryTime: string;
135135

136136
/**
137-
* Constructor for class FakerProduct
138-
* @param productToCreate {Object} Could be used to force the value of some members
139-
* @todo Replace taxRule & tax by FakerTax object
140-
* @todo Rename price to priceTaxIncluded
141-
* @todo Check if retailPrice & finalPrice can be removed
142-
*/
137+
* Constructor for class FakerProduct
138+
* @param productToCreate {Object} Could be used to force the value of some members
139+
* @todo Replace taxRule & tax by FakerTax object
140+
* @todo Rename price to priceTaxIncluded
141+
* @todo Check if retailPrice & finalPrice can be removed
142+
*/
143143
constructor(productToCreate: ProductCreator = {}) {
144144
/** @type {number} ID of the product */
145145
this.id = productToCreate.id || 0;

src/data/types/product.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ type ProductFiles = {
8787
file: string,
8888
}
8989

90+
type ProductImageInformation = {
91+
id: number,
92+
isCover: boolean,
93+
position: number,
94+
caption: {
95+
en: string,
96+
fr: string
97+
},
98+
};
99+
90100
type ProductCombinationOptions = {
91101
reference: string
92102
impactOnPriceTExc: number
@@ -198,16 +208,6 @@ type ProductImageUrls = {
198208
thumbImage: string
199209
};
200210

201-
type ProductImageInformation = {
202-
id: number,
203-
isCover: boolean,
204-
position: number,
205-
caption: {
206-
en: string,
207-
fr: string
208-
},
209-
};
210-
211211
type ProductPackItem = {
212212
reference: string
213213
quantity: number
@@ -266,8 +266,8 @@ export type {
266266
ProductDiscount,
267267
ProductFilterMinMax,
268268
ProductHeaderSummary,
269-
ProductImageUrls,
270269
ProductImageInformation,
270+
ProductImageUrls,
271271
ProductInformations,
272272
ProductOrderConfirmation,
273273
ProductPackItem,

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ export {default as FakerTitle} from '@data/faker/title';
180180
export {default as FakerWebservice} from '@data/faker/webservice';
181181
export {default as FakerZone} from '@data/faker/zone';
182182

183+
// Export common
184+
export {default as opsBOCatalogProduct} from '@ops/BO/catalog/product';
185+
183186
// Export Pages
184187
export * as CommonPage from '@pages/commonPage';
185188
// Export Pages BO
@@ -204,7 +207,7 @@ export {default as boProductsCreateTabDetailsPage} from '@pages/BO/catalog/produ
204207
export {default as boProductsCreateTabOptionsPage} from '@pages/BO/catalog/products/create/tabOptions';
205208
export {default as boProductsCreateTabPackPage} from '@pages/BO/catalog/products/create/tabPack';
206209
export {default as boProductsCreateTabPricingPage} from '@pages/BO/catalog/products/create/tabPricing';
207-
export {default as boProductsCreateTabSEOPage} from '@pages/BO/catalog/products/create/tabSeo';
210+
export {default as boProductsCreateTabSeoPage} from '@pages/BO/catalog/products/create/tabSeo';
208211
export {default as boProductsCreateTabShippingPage} from '@pages/BO/catalog/products/create/tabShipping';
209212
export {default as boProductsCreateTabStocksPage} from '@pages/BO/catalog/products/create/tabStocks';
210213
export {default as boProductsCreateTabVirtualProductPage} from '@pages/BO/catalog/products/create/tabVirtualProduct';

src/interfaces/BO/catalog/products/create/tabDescription.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import {BOBasePagePageInterface} from '@interfaces/BO';
2-
3-
import type {Page} from '@playwright/test';
4-
51
import type FakerProduct from '@data/faker/product';
62
import type {ProductImageInformation} from '@data/types/product';
3+
import {BOBasePagePageInterface} from '@interfaces/BO';
4+
import type {Page} from '@playwright/test';
75

86
export interface BOProductsCreateTabDescriptionPageInterface extends BOBasePagePageInterface {
97
addNewCategory(page: Page, categories: string[]): Promise<void>;

src/interfaces/BO/catalog/products/create/tabDetails.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import {BOBasePagePageInterface} from '@interfaces/BO';
2-
3-
import type {Page} from '@playwright/test';
4-
51
import type FakerProduct from '@data/faker/product';
62
import type {ProductFeatures} from '@data/types/product';
3+
import {BOBasePagePageInterface} from '@interfaces/BO';
4+
import type {Page} from '@playwright/test';
75

86
export interface BOProductsCreateTabDetailsPageInterface extends BOBasePagePageInterface {
97
addNewCustomizations(page: Page, productData: FakerProduct): Promise<void>;

src/interfaces/BO/catalog/products/create/tabOptions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {BOBasePagePageInterface} from '@interfaces/BO';
2-
32
import type {Page} from '@playwright/test';
43

54
export interface BOProductsCreateTabOptionsPageInterface extends BOBasePagePageInterface {

src/interfaces/BO/catalog/products/create/tabPack.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import {BOBasePagePageInterface} from '@interfaces/BO';
2-
3-
import type {Page} from '@playwright/test';
4-
51
import type {
62
ProductPackInformation,
73
ProductPackItem,
84
ProductPackOptions,
95
ProductStockMovement,
106
} from '@data/types/product';
7+
import {BOBasePagePageInterface} from '@interfaces/BO';
8+
import type {Page} from '@playwright/test';
119

1210
export interface BOProductsCreateTabPackPageInterface extends BOBasePagePageInterface {
1311
addProductToPack(page: Page, product: string, quantity: number): Promise<void>;

src/interfaces/BO/catalog/products/create/tabPricing.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import {BOBasePagePageInterface} from '@interfaces/BO';
2-
3-
import type {Page} from '@playwright/test';
4-
51
import FakerProduct from '@data/faker/product';
62
import type {ProductSpecificPrice} from '@data/types/product';
3+
import {BOBasePagePageInterface} from '@interfaces/BO';
4+
import type {Page} from '@playwright/test';
75

86
export interface BOProductsCreateTabPricingPageInterface extends BOBasePagePageInterface {
97
addEcoTax(page: Page, ecoTax: number): Promise<void>

src/interfaces/BO/catalog/products/create/tabSeo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {BOBasePagePageInterface} from '@interfaces/BO';
2-
32
import type {Page} from '@playwright/test';
43

54
export interface BOProductsCreateTabSeoPageInterface extends BOBasePagePageInterface {

src/interfaces/BO/catalog/products/create/tabShipping.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
import type FakerProduct from '@data/faker/product';
12
import {BOBasePagePageInterface} from '@interfaces/BO';
2-
33
import type {Page} from '@playwright/test';
44

5-
import type FakerProduct from '@data/faker/product';
6-
75
export interface BOProductsCreateTabShippingPageInterface extends BOBasePagePageInterface {
86
clickOnEditDeliveryTimeLink(page: Page): Promise<Page>;
97
getValue(page: Page, inputName: string, languageId?: string): Promise<string>;

0 commit comments

Comments
 (0)