Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate @pages/BO/international/taxes/taxRules from Core #364

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export {default as boStatisticsPage} from '@pages/BO/statistics';
export {default as boStockPage} from '@pages/BO/catalog/stock';
export {default as boSuppliersCreate} from '@pages/BO/catalog/suppliers/create';
export {default as boTaxesPage} from '@pages/BO/international/taxes';
export {default as boTaxRulesPage} from '@pages/BO/international/taxes/taxRules';
export {default as boTaxRulesCreatePage} from '@pages/BO/international/taxes/taxRules/create';
export {default as boThemeAdvancedConfigurationPage} from '@pages/BO/design/themeAndLogo/advancedConfiguration';
export {default as boThemeAndLogoPage} from '@pages/BO/design/themeAndLogo';
Expand Down
24 changes: 24 additions & 0 deletions src/interfaces/BO/international/taxes/taxRules/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import {BOBasePagePageInterface} from '@interfaces/BO';
import {type Page} from '@playwright/test';

export interface BOTaxRulesPageInterface extends BOBasePagePageInterface {
readonly pageTitle: string;
readonly successfulUpdateStatusMessage: string;

bulkDeleteTaxRules(page: Page): Promise<string>;
bulkSetStatus(page: Page, enable?: boolean): Promise<string>;
deleteTaxRule(page: Page, row?: number): Promise<string>;
filterTable(page: Page, filterType: string, filterBy: string, value: string): Promise<void>;
getAllRowsColumnContent(page: Page, columnName: string): Promise<string[]>;
getNumberOfElementInGrid(page: Page): Promise<number>;
getStatus(page: Page, row: number): Promise<boolean>;
getTextColumnFromTable(page: Page, row: number, columnName: string): Promise<string>;
goToAddNewTaxRulesGroupPage(page: Page): Promise<void>;
goToEditTaxRulePage(page: Page, row?: number): Promise<void>;
paginationNext(page: Page): Promise<string>;
paginationPrevious(page: Page): Promise<string>;
resetAndGetNumberOfLines(page: Page): Promise<number>;
selectPaginationLimit(page: Page, number: number): Promise<string>;
setStatus(page: Page, row: number, valueWanted?: boolean): Promise<boolean>;
sortTable(page: Page, sortBy: string, sortDirection: string): Promise<void>;
}
9 changes: 9 additions & 0 deletions src/pages/BO/international/taxes/taxRules/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {type BOTaxRulesPageInterface} from '@interfaces/BO/international/taxes/taxRules';

/* eslint-disable global-require, @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires */
function requirePage(): BOTaxRulesPageInterface {
return require('@versions/develop/pages/BO/international/taxes/taxRules');
}
/* eslint-enable global-require, @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires */

export default requirePage();
Loading
Loading