Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrubin committed Aug 24, 2023
1 parent e40fb01 commit 0c93f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/pageObjects/utils/pageObjectTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export const getPageObjectTemplateForVidus = (

locators.forEach((it) => {
const currentAnnotationType = it.annotationType || annotationType || AnnotationType.UI;
const currentLocatorType = it.locatorType || locatorType || LocatorType.xPath;
const currentLocatorType: LocatorType = it.locatorType || locatorType || LocatorType.xPath;
const currentLocatorTypeProperty = _.camelCase(currentLocatorType);
pageCode += `variables.${name}.${it.type}.${it.name}=By.${currentLocatorTypeProperty}(${getLocatorPrefix(
currentAnnotationType,
currentLocatorType as LocatorType
currentLocatorType
// @ts-ignore
)}${it.locator[currentLocatorTypeProperty]})\n`;
});
Expand Down

0 comments on commit 0c93f8d

Please sign in to comment.