Skip to content

Commit

Permalink
Change extend class
Browse files Browse the repository at this point in the history
  • Loading branch information
nesrineabdmouleh committed May 23, 2024
1 parent 61d8bee commit ae8d91d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/BO/orders/view/productsBlock.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {BOBasePagePageInterface} from '@interfaces/BO';
import {BOViewOrderBasePageInterface} from '@interfaces/BO/orders/view/viewOrderBasePage';

import type {Frame, Page} from '@playwright/test';

import type {ProductDiscount} from '@data/types/product';

export interface BOProductBlockPageInterface extends BOBasePagePageInterface {
export interface BOProductBlockPageInterface extends BOViewOrderBasePageInterface {
addDiscount(page: Page, discountData: ProductDiscount): Promise<string>;
addPartialRefundProduct(page: Page, productRow: number, quantity: number, amount: number, shipping: number): Promise<string>
addProductToCart(page: Page, quantity: number, createNewInvoice: boolean): Promise<string | null>;
Expand Down
6 changes: 3 additions & 3 deletions src/versions/develop/pages/BO/orders/view/productsBlock.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {BOProductBlockPageInterface} from '@interfaces/BO/orders/view/productsBlock';
import BOBasePage from '@pages/BO/BOBasePage';
import ViewOrdersBasePage from '@pages/BO/orders/view/viewOrderBasePage';

import type {ProductDiscount} from '@data/types/product';

Expand All @@ -8,9 +8,9 @@ import type {Frame, Page} from 'playwright';
/**
* Products block, contains functions that can be used on view/edit products block on view order page
* @class
* @extends BOBasePage
* @extends ViewOrdersBasePage
*/
class ProductsBlock extends BOBasePage implements BOProductBlockPageInterface {
class ProductsBlock extends ViewOrdersBasePage implements BOProductBlockPageInterface {

Check failure on line 13 in src/versions/develop/pages/BO/orders/view/productsBlock.ts

View workflow job for this annotation

GitHub Actions / TypeScript Check

Class 'ProductsBlock' incorrectly implements interface 'BOProductBlockPageInterface'.

Check failure on line 13 in src/versions/develop/pages/BO/orders/view/productsBlock.ts

View workflow job for this annotation

GitHub Actions / TypeScript Check

Type 'BOViewOrderBasePageInterface' is not a constructor function type.

Check failure on line 13 in src/versions/develop/pages/BO/orders/view/productsBlock.ts

View workflow job for this annotation

GitHub Actions / ESLint

Class 'ProductsBlock' incorrectly implements interface 'BOProductBlockPageInterface'.

Check failure on line 13 in src/versions/develop/pages/BO/orders/view/productsBlock.ts

View workflow job for this annotation

GitHub Actions / ESLint

Type 'BOViewOrderBasePageInterface' is not a constructor function type.
private readonly productsCountSpan: string;

private readonly orderProductsLoading: string;
Expand Down

0 comments on commit ae8d91d

Please sign in to comment.