-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I installed nightwatch 2.5 globally and ran npm init nightwatch
I selected to use the Nightwatch test runner and create a TypeScript project with Chrome as my browser.
When I ran npm run test I noticed I was getting .title is deprecated warnings which led me to notice the scaffolder created
\tests\nightwatch-examples
--github.ts
--google.ts
and the top of github.ts it has the old version of the test which does not appear to match what is in create-nightwatch currently in the /asserts/ts-examples dir
// outdated
const home: NightwatchTests = {
'Github Title test': () => {
browser
.url('https://github.com')
.assert.title('GitHub: Where the world builds software · GitHub');
},// what should be there according to what is on https://github.com/nightwatchjs/create-nightwatch/tree/main/assets/ts-examples
const home: NightwatchTests = {
'Github Title test': () => {
browser
.url('https://github.com')
.assert.titleEquals('GitHub: Where the world builds software · GitHub');
},Is nightwatch using an old version of create-nightwatch for scaffolding?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels