Только что начал обучение на TestCafe для новой работы.
По какой-то причине я продолжаю получать следующую ошибку, и я не знаю, почему
ERROR The specified glob pattern does not match any file or the default test directories are empty.
Type "testcafe -h" for help.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! testcafe_training@1.0.0 test: `testcafe chrome ./test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the testcafe_training@1.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xx.xxx/.npm/_logs/2020-01-17T15_15_38_725Z-debug.log
xxx.xx@LPGxxx TestCafe_Training %
Вот код и пакет. json.
Код:
Fixture`Getting started with Testcafe`
.page`https://devexpress.github.io/testcafe/example/`;
Test('My first testcafe test', async t => {
//Enter you testcase here
await t.typetext('#developer-name', 'mary');
await t.click('#submit-button');
});
упаковка. json:
{
"name": "testcafe_training",
"version": "1.0.0",
"description": "This is training",
"main": "TestCafeTrain.js",
"scripts": {
"test": "testcafe chrome ./test"
},
"keywords": [
"TestCafe",
"Automation",
"Testing"
],
"author": "",
"license": "ISC",
"dependencies": {
"testcafe": "^1.7.1"
}
}