@jahia/cypress 3.34.0 → 4.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.
|
@@ -55,7 +55,7 @@ var waitAllJobsFinished = function (errorMessage, timeout) {
|
|
|
55
55
|
})
|
|
56
56
|
.then(function (response) {
|
|
57
57
|
var _a, _b, _c, _d;
|
|
58
|
-
var jobs = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.admin) === null || _b === void 0 ? void 0 : _b.jahia) === null || _c === void 0 ? void 0 : _c.scheduler) === null || _d === void 0 ? void 0 : _d.jobs
|
|
58
|
+
var jobs = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.admin) === null || _b === void 0 ? void 0 : _b.jahia) === null || _c === void 0 ? void 0 : _c.scheduler) === null || _d === void 0 ? void 0 : _d.jobs;
|
|
59
59
|
var publicationJobs = jobs.filter(function (job) { return job.group === 'PublicationJob'; });
|
|
60
60
|
var hasActivePublicationJobs = publicationJobs.some(function (job) { return job.jobStatus === 'EXECUTING'; });
|
|
61
61
|
return !hasActivePublicationJobs;
|
package/env.Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM cypress/browsers:node-
|
|
1
|
+
FROM cypress/browsers:node-22.13.1-chrome-132.0.6834.159-1-ff-134.0.2-edge-132.0.2957.127-1
|
|
2
2
|
|
|
3
3
|
ARG MAVEN_VER="3.8.1"
|
|
4
4
|
ARG MAVEN_BASE_URL="https://archive.apache.org/dist/maven/maven-3"
|
package/env.provision.sh
CHANGED
|
@@ -81,13 +81,13 @@ if [[ -d artifacts/ ]]; then
|
|
|
81
81
|
echo "$(date +'%d %B %Y - %k:%M') [MODULE_INSTALL] == Module submitted =="
|
|
82
82
|
done
|
|
83
83
|
|
|
84
|
-
# This is done after classic .jar module to ensure
|
|
84
|
+
# This is done after classic .jar module to ensure Javascript modules are installed after engine module
|
|
85
85
|
for file in $(ls -1 *-SNAPSHOT.tgz | sort -n)
|
|
86
86
|
do
|
|
87
|
-
echo "$(date +'%d %B %Y - %k:%M') [MODULE_INSTALL] == Submitting
|
|
87
|
+
echo "$(date +'%d %B %Y - %k:%M') [MODULE_INSTALL] == Submitting Javascript module from: $file =="
|
|
88
88
|
curl -u root:${SUPER_USER_PASSWORD} -X POST ${JAHIA_URL}/modules/api/provisioning --form script='[{"installAndStartBundle":"'"$file"'", "forceUpdate":true}]' --form file=@$file
|
|
89
89
|
echo
|
|
90
|
-
echo "$(date +'%d %B %Y - %k:%M') [MODULE_INSTALL] ==
|
|
90
|
+
echo "$(date +'%d %B %Y - %k:%M') [MODULE_INSTALL] == Javascript Module submitted =="
|
|
91
91
|
done
|
|
92
92
|
cd ..
|
|
93
93
|
fi
|
package/package.json
CHANGED
package/schema.graphql
CHANGED
|
@@ -1065,6 +1065,18 @@ type GqlBackgroundJobEdge {
|
|
|
1065
1065
|
node: GqlBackgroundJob
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
|
+
"Channel information"
|
|
1069
|
+
type GqlChannel {
|
|
1070
|
+
"Channel label (not localized)"
|
|
1071
|
+
displayName: String
|
|
1072
|
+
"Return true if channel is visible, otherwise false"
|
|
1073
|
+
isVisible: Boolean
|
|
1074
|
+
"Channel name/identifier"
|
|
1075
|
+
name: String
|
|
1076
|
+
"Return variants for this channel, if available"
|
|
1077
|
+
variants: [GqlVariant]
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1068
1080
|
"Condition for override item"
|
|
1069
1081
|
type GqlCondition {
|
|
1070
1082
|
"Item will apply only on this nodetype"
|
|
@@ -1365,6 +1377,8 @@ type GqlHealthCheck {
|
|
|
1365
1377
|
|
|
1366
1378
|
"jContent API"
|
|
1367
1379
|
type GqlJContent {
|
|
1380
|
+
"Returns all available channels"
|
|
1381
|
+
channels: [GqlChannel]
|
|
1368
1382
|
"Returns html with marked differences"
|
|
1369
1383
|
diffHtml(
|
|
1370
1384
|
"New html"
|
|
@@ -1654,8 +1668,10 @@ type GqlPublicationInfo {
|
|
|
1654
1668
|
|
|
1655
1669
|
"Scheduler object which allows to access to background jobs"
|
|
1656
1670
|
type GqlScheduler {
|
|
1657
|
-
"List of active jobs"
|
|
1658
|
-
jobs(
|
|
1671
|
+
"List of active jobs (deprecated)"
|
|
1672
|
+
jobs: [GqlBackgroundJob] @deprecated(reason: "Use paginatedJobs instead")
|
|
1673
|
+
"List of active jobs (paginated)"
|
|
1674
|
+
paginatedJobs(
|
|
1659
1675
|
"fetching only nodes after this node (exclusive)"
|
|
1660
1676
|
after: String,
|
|
1661
1677
|
"fetching only nodes before this node (exclusive)"
|
|
@@ -1685,6 +1701,24 @@ type GqlScope {
|
|
|
1685
1701
|
name: String
|
|
1686
1702
|
}
|
|
1687
1703
|
|
|
1704
|
+
"Variant information for a given channel"
|
|
1705
|
+
type GqlVariant {
|
|
1706
|
+
"Variant display name/label (not localized)"
|
|
1707
|
+
displayName: String
|
|
1708
|
+
"Variant dimension (width x height) if available"
|
|
1709
|
+
imageSize: GqlVariantDimension
|
|
1710
|
+
"Variant name/identifier"
|
|
1711
|
+
name: String
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
"Represents dimensions (width, height) of a variant"
|
|
1715
|
+
type GqlVariantDimension {
|
|
1716
|
+
"Variant height"
|
|
1717
|
+
height: String
|
|
1718
|
+
"Variant width"
|
|
1719
|
+
width: String
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1688
1722
|
type GqlWorkflowEvent {
|
|
1689
1723
|
"Number of tasks for current user"
|
|
1690
1724
|
activeWorkflowTaskCountForUser: Int
|
|
@@ -51,7 +51,7 @@ export const waitAllJobsFinished = (errorMessage?: string, timeout = 60000): voi
|
|
|
51
51
|
queryFile: 'graphql/jcr/query/getJobsWithStatus.graphql'
|
|
52
52
|
})
|
|
53
53
|
.then(response => {
|
|
54
|
-
const jobs = response?.data?.admin?.jahia?.scheduler?.jobs
|
|
54
|
+
const jobs = response?.data?.admin?.jahia?.scheduler?.jobs;
|
|
55
55
|
const publicationJobs = jobs.filter(job => job.group === 'PublicationJob');
|
|
56
56
|
const hasActivePublicationJobs = publicationJobs.some(job => job.jobStatus === 'EXECUTING');
|
|
57
57
|
return !hasActivePublicationJobs;
|