promod 0.0.40 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -5
- package/specs/base.spec.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promod",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"description": "Library for automation testing",
|
|
5
5
|
"main": "./built/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"test:units": "mocha $(find units -name '*.test.*') --require ts-node/register --timeout 500000",
|
|
9
9
|
"test:debug": "mocha ./specs/async.child.methods.spec.ts --require ts-node/register --timeout 300000",
|
|
10
10
|
"lint": "eslint --ext .ts ./",
|
|
11
|
-
"
|
|
11
|
+
"tsc": "rm -rf ./built && tsc"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
"typescript": "^4.3.4"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"sat-utils": "0.
|
|
42
|
+
"sat-utils": "0.1.2",
|
|
43
|
+
"selenium-webdriver": "4.3.1",
|
|
43
44
|
"selenium-standalone": "^7.1.0",
|
|
44
|
-
"
|
|
45
|
+
"yargs": "^17.5.1"
|
|
45
46
|
},
|
|
46
47
|
"keywords": [
|
|
47
48
|
"promod",
|
|
@@ -52,4 +53,4 @@
|
|
|
52
53
|
"selenium",
|
|
53
54
|
"automation testing"
|
|
54
55
|
]
|
|
55
|
-
}
|
|
56
|
+
}
|
package/specs/base.spec.ts
CHANGED
|
@@ -151,4 +151,10 @@ describe('Base', () => {
|
|
|
151
151
|
const data = await browser.executeScript("return document.querySelector('#hover').style.background");
|
|
152
152
|
expect(data).toEqual('red');
|
|
153
153
|
});
|
|
154
|
+
|
|
155
|
+
it('screenshot', async () => {
|
|
156
|
+
const file = path.resolve(__dirname, './misc/hover_focus.html');
|
|
157
|
+
await browser.get(`file://${file}`);
|
|
158
|
+
await browser.takeScreenshot();
|
|
159
|
+
});
|
|
154
160
|
});
|