Skip to content
Snippets Groups Projects
Commit 31267568 authored by Yuriy Maksymets's avatar Yuriy Maksymets
Browse files

Sample testcafe test

parent 591a98bf
No related branches found
No related tags found
No related merge requests found
......@@ -145,10 +145,6 @@ tags
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
### VisualStudioCode Patch ###
# Ignore all local history of files
......
This diff is collapsed.
......@@ -30,6 +30,7 @@
"eslint": "^6.5.1",
"jest": "^24.9.0",
"prettier": "^1.18.2",
"testcafe": "^1.5.0",
"webpack": "^4.41.0",
"webpack-cli": "^3.3.9"
}
......
// import { Selector } from "testcafe"
fixture`Getting Started`.page`http://devexpress.github.io/testcafe/example`
test("My first test", async (t) => {
await t.typeText("#developer-name", "John Smith").click("#submit-button")
})
const createTestCafe = require("testcafe")
let runner = null
createTestCafe("localhost", 1337, 1338)
.then((testcafe) => {
runner = testcafe.createRunner()
return testcafe.createBrowserConnection()
})
.then((remoteConnection) => {
runner
.src("serverIntegration.test.js")
.browsers(["chrome"])
.reporter("json")
.run()
.then((failedCount) => {
console.log("failed count " + failedCount)
/* ... */
})
.catch((error) => {
console.log("error" + error)
/* ... */
})
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment