Skip to content

Commit 58153ca

Browse files
Add some fixes
1 parent 925fe39 commit 58153ca

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

src/data/demo/categories.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const art: FakerCategory = new FakerCategory({
6969
products: ['demo_5', 'demo_6', 'demo_7', 'demo_18', 'demo_19', 'demo_20'],
7070
});
7171
// Categories demo for PS version <= 1.7.2
72+
//@todo : to find for a solution in case of upgrade 1.7.2 to 1.7.8
7273
const oldWomen: FakerCategory = new FakerCategory({
7374
id: 3,
7475
name: 'Women',
@@ -77,6 +78,7 @@ const oldWomen: FakerCategory = new FakerCategory({
7778
position: 1,
7879
displayed: true,
7980
});
81+
//@todo : to find for a solution in case of upgrade 1.7.2 to 1.7.8
8082
const eveningDresses: FakerCategory = new FakerCategory({
8183
id: 10,
8284
name: 'Evening Dresses',

src/data/demo/products.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export default {
99
category: 'Men',
1010
summary: 'Regular fit, round neckline, short sleeves. Made of extra long staple pima cotton.',
1111
description: 'Symbol of lightness and delicacy, the hummingbird evokes curiosity and joy. Studio Design\' '
12-
+ 'PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese '
13-
+ 'origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional '
14-
+ 'color rendering and a color, guaranteed overtime.',
12+
+ 'PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese '
13+
+ 'origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional '
14+
+ 'color rendering and a color, guaranteed overtime.',
1515
retailPrice: 28.68,
1616
tax: 20,
1717
price: 23.90,
@@ -246,6 +246,7 @@ export default {
246246
status: true,
247247
}),
248248
// Products demo for PS version <= 1.7.2
249+
//@todo : to find for a solution in case of upgrade 1.7.2 to 1.7.8
249250
old_demo_1: new FakerProduct({
250251
id: 1,
251252
name: 'Faded Short Sleeves T-shirt',

src/versions/1.7.2/pages/BO/orders/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type {Page} from 'playwright-core';
1111
class OrdersPageVersion extends OrdersPage implements BOOrdersPageInterface {
1212
/**
1313
* @constructs
14-
* Setting up texts and selectors to use on order confirmation page
14+
* Setting up texts and selectors to use on orders page
1515
*/
1616
constructor() {
1717
super();

src/versions/develop/pages/FO/classic/cart/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class CartPage extends FOBasePage implements FoCartPageInterface {
232232
* Get product price
233233
* @param page {Page} Browser tab
234234
* @param row {number} Row number in the table
235-
* @returns {Promise<string>}
235+
* @returns {Promise<number>}
236236
*/
237237
async getProductPrice(page: Page, row: number): Promise<number> {
238238
return this.getPriceFromText(page, this.productPrice(row));
@@ -242,7 +242,7 @@ class CartPage extends FOBasePage implements FoCartPageInterface {
242242
* Get product quantity
243243
* @param page {Page} Browser tab
244244
* @param row {number} Row number in the table
245-
* @returns {Promise<string>}
245+
* @returns {Promise<number>}
246246
*/
247247
async getProductQuantity(page: Page, row: number): Promise<number> {
248248
return parseFloat(await this.getAttributeContent(page, this.productQuantity(row), 'value') ?? '');

0 commit comments

Comments
 (0)