/**
|
* @file S&OP ActionBarPage component to wrap common methods the team encounter during development
|
* @description ActionBarPage class extending e2e's ActionBarPage.
|
* All S&OP page objects inherit from our own class (inheriting e2e/libappbase), but we can propose common methods to them.
|
* @author Clarence (clarence.chan@3ds.com)
|
* @copyright Dassault Systèmes
|
*/
|
|
// Step description to re-use in spec file to prevent scriptor re-write each time
|
const stepActionBarPage = {
|
clickButton: (buttonName: string): string => `Click action bar page button '${buttonName}'.`,
|
clickDropdownAndSelectMenu: (actionBarName: string, menuPath: string): string => `In action bar ${actionBarName}, click button menu ${menuPath}.`,
|
verifyButtonDisabled: (buttonName: string, expectedTooltip?: string): string => {
|
const finalExpectedTooltip = expectedTooltip ? ` with precondition "${expectedTooltip}"` : '';
|
return `Verify action bar page button '${buttonName}' disabled${finalExpectedTooltip}.`;
|
},
|
};
|
|
export { stepActionBarPage as StepActionBarPage };
|