I have attached a simple example that works on my side.
Would you please download it, run the 'testcafe' command and check whether it works correctly for you.
test.js
import { Selector } from 'testcafe';
fixture`A set of examples that illustrate how to use TestCafe API`
.page`http://devexpress.github.io/testcafe/example/`;
const developerName = Selector('#developer-name');
test('How to type text into an input (t.typeText user action)', async t => {
await t
.typeText(developerName, 'Peter')
.typeText(developerName, 'Paker', { replace: true })
.typeText(developerName, 'r', { caretPos: 2 })
.expect(developerName.value).eql('Parker');
});
.testcaferc.json
{
"browsers": ["chrome"],
"src": ["test.js"],
"reporter": [
{ "name": "spec" },
{ "name": "slack-custom",
"options": {
"webhookUrl": "https://hooks.slack.com/services/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",
"testingEnvironment": "args.env"
}
}
]
}
package.json
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "test.js",
"author": "",
"license": "",
"dependencies": {
"testcafe": "^1.14.0",
"testcafe-reporter-slack-custom": "^1.3.0"
},
"devDependencies": {}
}