testcafe-reporter-qase 1.0.5 → 1.2.0-alpha.1

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.
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "example",
3
+ "version": "1.0.2",
4
+ "description": "Test cafe example",
5
+ "main": "test.js",
6
+ "scripts": {
7
+ "test": "npx testcafe chrome test.js -r spec,qase -s path=screenshots,takeOnFails=true,fullPage=true"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "devDependencies": {
12
+ "testcafe-reporter-qase": "../"
13
+ },
14
+ "dependencies": {
15
+ "testcafe": "^1.17.1"
16
+ }
17
+ }
@@ -0,0 +1,38 @@
1
+ import { Selector } from 'testcafe';
2
+
3
+ fixture `Example page`
4
+ .page `http://devexpress.github.io/testcafe/example/`;
5
+
6
+
7
+ test.meta('CID', [1,2])('Check property of element', async (t) => {
8
+ const developerNameInput = Selector('#developer-name');
9
+
10
+ await t
11
+ .expect(developerNameInput.value).eql('', 'input is empty')
12
+ .typeText(developerNameInput, 'Peter Parker')
13
+ .expect(developerNameInput.value)
14
+ .contains('Peter', 'input contains text "Peter"')
15
+ ;
16
+ });
17
+
18
+ test.meta('CID', [3])('Check property of element', async (t) => {
19
+ const developerNameInput = Selector('#developer-name');
20
+
21
+ await t
22
+ .expect(developerNameInput.value).eql('', 'input is empty')
23
+ .typeText(developerNameInput, 'Peter Porker')
24
+ .expect(developerNameInput.value)
25
+ .contains('Parker', 'input contains text "Parker"')
26
+ ;
27
+ });
28
+
29
+ test.skip.meta('CID', [4])('Check property of element', async (t) => {
30
+ const developerNameInput = Selector('#developer-name');
31
+
32
+ await t
33
+ .expect(developerNameInput.value).eql('', 'input is empty')
34
+ .typeText(developerNameInput, 'Peter Parker')
35
+ .expect(developerNameInput.value)
36
+ .contains('Peter', 'input contains text "Peter"')
37
+ ;
38
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testcafe-reporter-qase",
3
- "version": "v1.0.5",
3
+ "version": "v1.2.0-alpha.1",
4
4
  "description": "Qase TMS TestCafe Reporter",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "url": "https://github.com/qase-tms/qase-testcafe.git"
14
14
  },
15
15
  "engines": {
16
- "node": ">=10"
16
+ "node": ">=14"
17
17
  },
18
18
  "scripts": {
19
19
  "dev": "npm run lint && tsc",
@@ -36,20 +36,23 @@
36
36
  "@typescript-eslint/eslint-plugin": "^3.10.1",
37
37
  "@typescript-eslint/eslint-plugin-tslint": "^3.10.1",
38
38
  "@typescript-eslint/parser": "^3.10.1",
39
+ "ansi-regex": "^6.0.1",
39
40
  "axios-mock-adapter": "^1.19.0",
40
41
  "eslint": "^7.17.0",
41
42
  "eslint-plugin-jsdoc": "^26.0.1",
42
43
  "eslint-plugin-prefer-arrow": "^1.2.1",
43
44
  "handlebars": "^4.7.7",
44
45
  "jest": "^26.6.3",
46
+ "json-schema": "^0.4.0",
45
47
  "moment": "^2.29.1",
46
- "node-fetch": "^2.6.1",
48
+ "node-fetch": "^3.1.1",
47
49
  "nodemon": "^2.0.7",
48
50
  "ts-jest": "^26.4.4",
49
51
  "typescript": "^3.9.3"
50
52
  },
51
53
  "dependencies": {
52
54
  "chalk": "^4.1.0",
53
- "qaseio": "^1.5.0"
55
+ "form-data": "^3.0.0",
56
+ "qaseio": "^2.0.1"
54
57
  }
55
58
  }