mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Merge pull request #19294 from Schlesiger/master
Add nightwatch definition
This commit is contained in:
2216
types/nightwatch/index.d.ts
vendored
Normal file
2216
types/nightwatch/index.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
15
types/nightwatch/nightwatch-tests.ts
Normal file
15
types/nightwatch/nightwatch-tests.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
const test: NightWatchTests = {
|
||||
'Demo test Google': (browser) => {
|
||||
browser
|
||||
.url('http://www.google.com')
|
||||
.waitForElementVisible('body', 1000)
|
||||
.setValue('input[type=text]', 'nightwatch')
|
||||
.waitForElementVisible('button[name=btnG]', 1000)
|
||||
.click('button[name=btnG]')
|
||||
.pause(1000)
|
||||
.assert.containsText('#main', 'Night Watch')
|
||||
.end();
|
||||
}
|
||||
};
|
||||
|
||||
export = test;
|
||||
23
types/nightwatch/tsconfig.json
Normal file
23
types/nightwatch/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"nightwatch-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/nightwatch/tslint.json
Normal file
1
types/nightwatch/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user