Skip to content

Commit a05f84a

Browse files
author
DavertMik
committed
generate po from prompt to match ESM echame
1 parent cd85074 commit a05f84a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/template/prompts/generatePageObject.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ export default (html, extraPrompt = '', rootLocator = null) => [
66
77
const { I } = inject();
88
9-
module.exports = {
9+
export default {
1010
1111
// setting locators
1212
element1: '#selector',
1313
element2: '.selector',
1414
element3: locate().withText('text'),
1515
16-
// seting methods
16+
// setting methods
1717
doSomethingOnPage(params) {
1818
// ...
1919
},
@@ -23,7 +23,7 @@ module.exports = {
2323
Write JavaScript code in similar manner to list all locators on the page.
2424
Use locators in order of preference: by text (use locate().withText()), label, CSS, XPath.
2525
Avoid TailwindCSS, Bootstrap or React style formatting classes in locators.
26-
Add methods to to interact with page when needed.
26+
Add methods to interact with page when needed.
2727
${extraPrompt}
2828
${rootLocator ? `All provided elements are inside '${rootLocator}'. Declare it as root variable and for every locator use locate(...).inside(root)` : ''}
2929
Add only locators from this HTML: \n\n${html}`,

0 commit comments

Comments
 (0)