Skip to content

Commit 925fe39

Browse files
Fix lint errors
1 parent 668899b commit 925fe39

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed

src/data/demo/categories.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ 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-
const old_women: FakerCategory = new FakerCategory({
72+
const oldWomen: FakerCategory = new FakerCategory({
7373
id: 3,
7474
name: 'Women',
7575
description: 'You will find here all woman fashion collections. This category includes all the basics of your '
7676
+ 'wardrobe and much more: shoes, accessories, printed t-shirts, feminine dresses, women\'s jeans!\'',
7777
position: 1,
7878
displayed: true,
7979
});
80-
const evening_dresses: FakerCategory = new FakerCategory({
80+
const eveningDresses: FakerCategory = new FakerCategory({
8181
id: 10,
8282
name: 'Evening Dresses',
83-
description: ' Browse our different dresses to choose the perfect dress for an unforgettable evening!',
83+
description: 'Browse our different dresses to choose the perfect dress for an unforgettable evening!',
8484
position: 2,
8585
displayed: true,
8686
});
@@ -106,6 +106,6 @@ export default {
106106
stationery,
107107
homeAccessories,
108108
art,
109-
old_women,
110-
evening_dresses,
109+
oldWomen,
110+
eveningDresses,
111111
};

src/data/demo/products.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export default {
249249
old_demo_1: new FakerProduct({
250250
id: 1,
251251
name: 'Faded Short Sleeves T-shirt',
252-
description : 'Fashion has been creating well-designed collections since 2010.',
252+
description: 'Fashion has been creating well-designed collections since 2010.',
253253
finalPrice: 19.81,
254254
reference: 'demo_1',
255255
category: 'T-shirts',

src/versions/1.7.2/pages/BO/catalog/products/create/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {type Page} from '@playwright/test';
99
* @extends CreateProduct
1010
*/
1111
class BOCreateProductVersion extends CreateProduct implements BOProductsCreatePageInterface {
12-
1312
private readonly confirmationModalContinueButton: string;
1413

1514
/**

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import type {Page} from 'playwright-core';
99
* @extends OrdersPage
1010
*/
1111
class OrdersPageVersion extends OrdersPage implements BOOrdersPageInterface {
12-
1312
/**
1413
* @constructs
1514
* Setting up texts and selectors to use on order confirmation page

src/versions/1.7.2/pages/BO/orders/view/viewOrderBasePage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Import pages
22
import type {BOViewOrderBasePageInterface} from '@interfaces/BO/orders/view/viewOrderBasePage';
33
import {ViewOrderBasePage} from '@versions/1.7.6/pages/BO/orders/view/viewOrderBasePage';
4-
import type {Page} from 'playwright-core';
54

65
/**
76
* View orders page, contains functions that can be used in the page

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class CartPage extends FOBasePage implements FoCartPageInterface {
225225
* @returns {Promise<string>}
226226
*/
227227
async getProductName(page: Page, row: number): Promise<string> {
228-
return await this.getTextContent(page, this.productName(row));
228+
return this.getTextContent(page, this.productName(row));
229229
}
230230

231231
/**
@@ -235,7 +235,7 @@ class CartPage extends FOBasePage implements FoCartPageInterface {
235235
* @returns {Promise<string>}
236236
*/
237237
async getProductPrice(page: Page, row: number): Promise<number> {
238-
return await this.getPriceFromText(page, this.productPrice(row));
238+
return this.getPriceFromText(page, this.productPrice(row));
239239
}
240240

241241
/**

0 commit comments

Comments
 (0)