@globisnv/cypress-core 0.0.1 → 0.0.3
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 +11 -6
- package/dist/commands/GLO_commands.js +10 -4
- package/package.json +11 -3
- package/template/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,12 +12,7 @@ This package holds everything that is *not* customer-specific: the shared Cypres
|
|
|
12
12
|
npm install @globisnv/cypress-core
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Peer dependencies (must be installed in the consumer repo)
|
|
16
|
-
|
|
17
|
-
| Package | Range |
|
|
18
|
-
| --- | --- |
|
|
19
|
-
| `cypress` | `^15.19.0` |
|
|
20
|
-
| `cypress-real-events` | `^1.15.0` |
|
|
15
|
+
Peer dependencies (must be installed in the consumer repo) — see `peerDependencies` in [package.json](package.json) for the exact supported ranges.
|
|
21
16
|
|
|
22
17
|
---
|
|
23
18
|
|
|
@@ -27,6 +22,16 @@ Core's own version is plain semver, deliberately **not** tied to globis-online's
|
|
|
27
22
|
|
|
28
23
|
Instead, each core release declares the **minimum** globis-online version it requires — a floor, not a pin. Blueprints and commands are written against a given release's Servoy DOM/behavior; they keep working on every later globis-online release *until* one of them actually changes something a blueprint depends on, at which point core needs a new version anyway, with its floor bumped to that release. There's no meaningful upper bound to declare in advance — you only find out a version broke something by running against it.
|
|
29
24
|
|
|
25
|
+
What each part of the version bump means:
|
|
26
|
+
|
|
27
|
+
| Bump | When |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| major | A globis-online release broke this package's support floor — bump `globisOnline.minVersion` (and this table) too |
|
|
30
|
+
| minor | A new command / blueprint / API surface, backwards compatible |
|
|
31
|
+
| patch | Bugfixes only |
|
|
32
|
+
|
|
33
|
+
Releases are cut via the [Create Release](.github/workflows/release.yml) GitHub Action (Actions → Create Release → Run workflow), which bumps the version, tags, publishes to npm, and creates the GitHub Release.
|
|
34
|
+
|
|
30
35
|
| Core version | Minimum globis-online version |
|
|
31
36
|
| --- | --- |
|
|
32
37
|
| `0.0.1` | `11.0.2` |
|
|
@@ -52,9 +52,11 @@ Cypress.Commands.add('GLO_getElement', (selectorArg, options = {}) => {
|
|
|
52
52
|
const withinChain = cy.state('withinSubjectChain');
|
|
53
53
|
const withinSubject = withinChain ? cy.getSubjectFromChain(withinChain) : undefined;
|
|
54
54
|
if (!withinSubject) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
cy.wrap(null, { log: false, timeout: getOpts.timeout }).should(() => {
|
|
56
|
+
if (Cypress.$(`div[formslist]:not([hidden]) [tabpane][hidden] ${selector}`).length > 0) {
|
|
57
|
+
throw new Error(`GLO_getElement: element "${selector}" found in crumb but its tab is closed`);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
58
60
|
const elementInCrumb = Cypress.$(`div[formslist] ${selector}`).length > 0;
|
|
59
61
|
if (elementInCrumb) {
|
|
60
62
|
const result = cy.get(`div[formslist]:not([hidden]) ${selector}`, getOpts);
|
|
@@ -1236,7 +1238,10 @@ Cypress.Commands.add('GLO_popupWindow', (selector, value, columnId, equals = noE
|
|
|
1236
1238
|
cy.GLO_clickButton(selector, 'fa-search');
|
|
1237
1239
|
}
|
|
1238
1240
|
else {
|
|
1239
|
-
|
|
1241
|
+
// Clear the input itself rather than through GLO_clearField: on a selector field the
|
|
1242
|
+
// clear icon can be pressed without the value going away, and the typed value then lands
|
|
1243
|
+
// behind the old one.
|
|
1244
|
+
cy.GLO_addInput(selector, value, { selectAllDelete: true });
|
|
1240
1245
|
cy.GLO_checkLoadingIndicator();
|
|
1241
1246
|
}
|
|
1242
1247
|
cy.get('body').then(($body) => {
|
|
@@ -2205,6 +2210,7 @@ Cypress.Commands.add('GLO_extendedFilter', (filter, clearExistingFilters) => {
|
|
|
2205
2210
|
cy.GLO_getElement(['svy_nav_selection', 'search_criteria']).type(String(v));
|
|
2206
2211
|
cy.GLO_clickButton(['svy_nav_selection', 'btn_search']);
|
|
2207
2212
|
dblClickRowInGrid(span, String(v));
|
|
2213
|
+
cy.GLO_checkLoadingIndicator();
|
|
2208
2214
|
}
|
|
2209
2215
|
else {
|
|
2210
2216
|
dropDown(path, clauseType, 'value', String(v));
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@globisnv/cypress-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Core building blocks for Globis Cypress E2E tests",
|
|
5
|
+
"license": "UNLICENSED",
|
|
5
6
|
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/globisnv/globis-cypress-core.git"
|
|
10
|
+
},
|
|
6
11
|
"publishConfig": {
|
|
7
12
|
"access": "public"
|
|
8
13
|
},
|
|
@@ -38,7 +43,7 @@
|
|
|
38
43
|
"typescript": "tsc --noEmit --skipLibCheck"
|
|
39
44
|
},
|
|
40
45
|
"peerDependencies": {
|
|
41
|
-
"cypress": "^15.
|
|
46
|
+
"cypress": "^15.20.1",
|
|
42
47
|
"cypress-real-events": "^1.15.0"
|
|
43
48
|
},
|
|
44
49
|
"dependencies": {
|
|
@@ -51,8 +56,11 @@
|
|
|
51
56
|
"devDependencies": {
|
|
52
57
|
"@biomejs/biome": "^2.5.7",
|
|
53
58
|
"@types/node": "^26.1.2",
|
|
54
|
-
"cypress": "^15.
|
|
59
|
+
"cypress": "^15.20.1",
|
|
55
60
|
"cypress-real-events": "^1.15.0",
|
|
56
61
|
"typescript": "^7.0.2"
|
|
62
|
+
},
|
|
63
|
+
"allowScripts": {
|
|
64
|
+
"cypress@15.20.1": true
|
|
57
65
|
}
|
|
58
66
|
}
|
package/template/package.json
CHANGED