[types/nightwatch] Add PageObjectModel types to support POM pattern in Nightwatch test suites#59626
[types/nightwatch] Add PageObjectModel types to support POM pattern in Nightwatch test suites#59626typescript-bot merged 5 commits intoDefinitelyTyped:masterfrom reallymello:PageObjectModel
Conversation
…to safely create POM files.
…o use LocateStrategy over any string for the locateStrategy property on it
|
@reallymello Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. This is a live comment which I will keep updated. 1 package in this PR
Code ReviewsBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 59626,
"author": "reallymello",
"headCommitOid": "4d8638baa955ce1d867df8e82efcd9a5ff4c46c2",
"mergeBaseOid": "d6b527de9f5bf07aa905597563ec1dc995f84ac1",
"lastPushDate": "2022-03-31T16:13:45.000Z",
"lastActivityDate": "2022-04-01T15:04:40.000Z",
"mergeOfferDate": "2022-04-01T15:04:12.000Z",
"mergeRequestDate": "2022-04-01T15:04:40.000Z",
"mergeRequestUser": "vaibhavsingh97",
"hasMergeConflict": false,
"isFirstContribution": true,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "nightwatch",
"kind": "edit",
"files": [
{
"path": "types/nightwatch/index.d.ts",
"kind": "definition"
},
{
"path": "types/nightwatch/test/nightwatch-tests.ts",
"kind": "test"
}
],
"owners": [
"rkavalap",
"schlesiger",
"ClaytonAstrom",
"lloiser",
"vaibhavsingh97",
"beatfactor",
"AutomatedTester",
"gravityvi",
"swrdfish",
"harshit-bs",
"literallyMello",
"lukebickell"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "vaibhavsingh97",
"date": "2022-04-01T15:03:32.000Z",
"isMaintainer": false
}
],
"mainBotCommentID": 1084836811,
"ciResult": "pass"
} |
|
🔔 @rkavalap @schlesiger @ClaytonAstrom @lloiser @vaibhavsingh97 @beatfactor @AutomatedTester @gravityvi @swrdfish @harshit-bs @literallyMello @lukebickell — please review this PR in the next few days. Be sure to explicitly select |
|
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. nightwatch (unpkg)was missing the following properties:
as well as these 2 other properties...initClient, runner |
|
@reallymello: Everything looks good here. I am ready to merge this PR (at 4d8638b) on your behalf whenever you think it's ready. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@rkavalap, @schlesiger, @ClaytonAstrom, @lloiser, @vaibhavsingh97, @beatfactor, @AutomatedTester, @gravityvi, @swrdfish, @harshit-bs, @literallyMello, @lukebickell: you can do this too.) |
|
Ready to merge |
Please fill in this template.
npm test <package to test>.If changing an existing definition:
The addition of the PageObjectModel and PageElements interface will allow for stricter type checking when using Nightwatch's implementation of the page object model pattern in TypeScript. Below is an example.
Usage in a Nightwatch test