@jahia/cypress 3.14.3 → 3.14.5
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.
|
@@ -14,6 +14,7 @@ var registerSupport = function () {
|
|
|
14
14
|
Cypress.Commands.add('executeGroovy', provisioning_1.executeGroovy);
|
|
15
15
|
Cypress.Commands.add('installBundle', provisioning_1.installBundle);
|
|
16
16
|
Cypress.Commands.add('login', login_1.login);
|
|
17
|
+
Cypress.Commands.add('loginAndStoreSession', login_1.loginAndStoreSession);
|
|
17
18
|
Cypress.Commands.add('logout', logout_1.logout);
|
|
18
19
|
Cypress.Commands.add('repeatUntil', repeatUntil_1.repeatUntil);
|
|
19
20
|
Cypress.Commands.overwrite('fixture', fixture_1.fixture);
|
package/env.run.sh
CHANGED
|
@@ -9,11 +9,11 @@ bash $BASEDIR/env.provision.sh
|
|
|
9
9
|
source $BASEDIR/set-env.sh
|
|
10
10
|
|
|
11
11
|
echo "$(date +'%d %B %Y - %k:%M') == Fetching the list of installed modules =="
|
|
12
|
-
npx --yes @jahia/jahia-reporter@latest utils:modules \
|
|
13
|
-
--moduleId
|
|
14
|
-
--jahiaUrl
|
|
15
|
-
--jahiaPassword
|
|
16
|
-
--filepath
|
|
12
|
+
bash -c "unset npm_config_package; npx --yes @jahia/jahia-reporter@latest utils:modules \
|
|
13
|
+
--moduleId=\"${MODULE_ID}\" \
|
|
14
|
+
--jahiaUrl=\"${JAHIA_URL}\" \
|
|
15
|
+
--jahiaPassword=\"${SUPER_USER_PASSWORD}\" \
|
|
16
|
+
--filepath=\"results/installed-jahia-modules.json\""
|
|
17
17
|
echo "$(date +'%d %B %Y - %k:%M') == Modules fetched =="
|
|
18
18
|
INSTALLED_MODULE_VERSION=$(cat results/installed-jahia-modules.json | jq '.module.version')
|
|
19
19
|
if [[ $INSTALLED_MODULE_VERSION == "UNKNOWN" ]]; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {apollo, apolloClient} from './apollo';
|
|
2
2
|
import {executeGroovy, runProvisioningScript, installBundle} from './provisioning';
|
|
3
|
-
import {login} from './login';
|
|
3
|
+
import {login, loginAndStoreSession} from './login';
|
|
4
4
|
import {logout} from './logout';
|
|
5
5
|
import {fixture} from './fixture';
|
|
6
6
|
import {repeatUntil} from './repeatUntil';
|
|
@@ -14,6 +14,7 @@ export const registerSupport = (): void => {
|
|
|
14
14
|
Cypress.Commands.add('installBundle', installBundle);
|
|
15
15
|
|
|
16
16
|
Cypress.Commands.add('login', login);
|
|
17
|
+
Cypress.Commands.add('loginAndStoreSession', loginAndStoreSession);
|
|
17
18
|
Cypress.Commands.add('logout', logout);
|
|
18
19
|
Cypress.Commands.add('repeatUntil', repeatUntil);
|
|
19
20
|
|