@jahia/cypress 1.1.6 → 2.0.0
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/README.md
CHANGED
|
@@ -82,9 +82,8 @@ Add typings in your tsconfig.json :
|
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
This project provides a plugin for settings environment variable based on system env ( `JAHIA_URL` and `SUPER_USER_PASSWORD` )
|
|
85
|
-
It also embeds `cypress-terminal-report` for better output.
|
|
86
85
|
|
|
87
|
-
|
|
86
|
+
Set up your plugins: in `plugins/index.js`, calls the module in `@jahia/cypress/dist/plugins/registerPlugins` :
|
|
88
87
|
|
|
89
88
|
```js
|
|
90
89
|
module.exports = (on, config) => {
|
|
@@ -5,9 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.registerPlugins = void 0;
|
|
7
7
|
var env_1 = __importDefault(require("./env"));
|
|
8
|
-
var installLogsPrinter_1 = __importDefault(require("cypress-terminal-report/src/installLogsPrinter"));
|
|
9
8
|
var registerPlugins = function (on, config) {
|
|
10
9
|
env_1["default"](on, config);
|
|
11
|
-
installLogsPrinter_1["default"](on);
|
|
12
10
|
};
|
|
13
11
|
exports.registerPlugins = registerPlugins;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
exports.__esModule = true;
|
|
6
3
|
exports.registerSupport = void 0;
|
|
7
4
|
var apollo_1 = require("./apollo");
|
|
8
5
|
var provisioning_1 = require("./provisioning");
|
|
9
6
|
var login_1 = require("./login");
|
|
10
7
|
var logout_1 = require("./logout");
|
|
11
|
-
var installLogsCollector_1 = __importDefault(require("cypress-terminal-report/src/installLogsCollector"));
|
|
12
8
|
var fixture_1 = require("./fixture");
|
|
13
9
|
var repeatUntil_1 = require("./repeatUntil");
|
|
14
10
|
var registerSupport = function () {
|
|
@@ -21,6 +17,5 @@ var registerSupport = function () {
|
|
|
21
17
|
Cypress.Commands.add('logout', logout_1.logout);
|
|
22
18
|
Cypress.Commands.add('repeatUntil', repeatUntil_1.repeatUntil);
|
|
23
19
|
Cypress.Commands.overwrite('fixture', fixture_1.fixture);
|
|
24
|
-
installLogsCollector_1["default"]();
|
|
25
20
|
};
|
|
26
21
|
exports.registerSupport = registerSupport;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jahia/cypress",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "tsc",
|
|
6
6
|
"lint": "eslint src -c .eslintrc.json --ext .ts"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@typescript-eslint/eslint-plugin": "^4.29.3",
|
|
13
13
|
"@typescript-eslint/parser": "^4.29.3",
|
|
14
|
-
"cypress": "^
|
|
14
|
+
"cypress": "^12.2.0",
|
|
15
15
|
"eslint": "^7.32.0",
|
|
16
16
|
"eslint-plugin-cypress": "^2.11.3",
|
|
17
17
|
"cross-fetch": "^3.1.5",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@apollo/client": "^3.4.9",
|
|
22
|
-
"cypress-terminal-report": "^3.4.2",
|
|
23
22
|
"graphql": "^15.5.0",
|
|
24
23
|
"graphql-tag": "^2.11.0"
|
|
25
24
|
}
|
|
@@ -2,7 +2,6 @@ import {apollo, apolloClient} from "./apollo"
|
|
|
2
2
|
import {executeGroovy, runProvisioningScript, installBundle} from "./provisioning"
|
|
3
3
|
import {login} from "./login"
|
|
4
4
|
import {logout} from "./logout"
|
|
5
|
-
import installLogsCollector from 'cypress-terminal-report/src/installLogsCollector'
|
|
6
5
|
import {fixture} from "./fixture";
|
|
7
6
|
import {repeatUntil} from "./repeatUntil";
|
|
8
7
|
|
|
@@ -19,6 +18,4 @@ export const registerSupport = (): void => {
|
|
|
19
18
|
Cypress.Commands.add('repeatUntil', repeatUntil)
|
|
20
19
|
|
|
21
20
|
Cypress.Commands.overwrite('fixture', fixture)
|
|
22
|
-
|
|
23
|
-
installLogsCollector()
|
|
24
21
|
}
|