@trackunit/iris-app-e2e 1.8.93 → 1.9.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.
- package/CHANGELOG.md +16 -0
- package/package.json +14 -1
- package/src/generators/e2e-configuration/schema.d.ts +3 -0
- package/src/support.d.ts +39 -0
- package/src/support.js +3 -1
- package/src/types/cypress.d.ts +41 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 1.9.1 (2026-04-08)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated react-test-setup to 1.8.88
|
|
6
|
+
|
|
7
|
+
## 1.9.0 (2026-04-08)
|
|
8
|
+
|
|
9
|
+
### 🚀 Features
|
|
10
|
+
|
|
11
|
+
- add Cypress type references and update TypeScript module resolution ([#22626](https://github.com/Trackunit/manager/pull/22626))
|
|
12
|
+
|
|
13
|
+
### ❤️ Thank You
|
|
14
|
+
|
|
15
|
+
- Brian Christensen @bchTrackunit
|
|
16
|
+
|
|
1
17
|
## 1.8.93 (2026-04-08)
|
|
2
18
|
|
|
3
19
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-e2e",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"generators": "./generators.json",
|
|
@@ -20,8 +20,21 @@
|
|
|
20
20
|
"require": "./src/support.js",
|
|
21
21
|
"import": "./src/support.js"
|
|
22
22
|
},
|
|
23
|
+
"./cypress": {
|
|
24
|
+
"types": "./src/types/cypress.d.ts"
|
|
25
|
+
},
|
|
23
26
|
"./package.json": "./package.json"
|
|
24
27
|
},
|
|
28
|
+
"typesVersions": {
|
|
29
|
+
"*": {
|
|
30
|
+
"support": [
|
|
31
|
+
"./src/support.d.ts"
|
|
32
|
+
],
|
|
33
|
+
"cypress": [
|
|
34
|
+
"./src/types/cypress.d.ts"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
25
38
|
"dependencies": {
|
|
26
39
|
"@neuralegion/cypress-har-generator": "^5.17.0",
|
|
27
40
|
"@nx/cypress": "22.4.4",
|
package/src/support.d.ts
CHANGED
|
@@ -6,3 +6,42 @@
|
|
|
6
6
|
export * from "./commands/defaultCommands";
|
|
7
7
|
export * from "./setup/defaultE2ESetup";
|
|
8
8
|
export * from "./setup/setupHarRecording";
|
|
9
|
+
/**
|
|
10
|
+
* Cypress namespace augmentation for custom commands.
|
|
11
|
+
* These types are automatically available when importing from this module.
|
|
12
|
+
*
|
|
13
|
+
* Note: Type parameter names must match Cypress's interface definitions.
|
|
14
|
+
* eslint-disable is required because Cypress uses `Subject` which doesn't match our naming convention.
|
|
15
|
+
*/
|
|
16
|
+
declare global {
|
|
17
|
+
namespace Cypress {
|
|
18
|
+
interface IframeOptions extends Loggable, Timeoutable {
|
|
19
|
+
url?: string | RegExp;
|
|
20
|
+
testId?: string;
|
|
21
|
+
}
|
|
22
|
+
interface IframeHandler<Subject> {
|
|
23
|
+
(selector: string, options?: Partial<IframeOptions>): Chainable<Subject>;
|
|
24
|
+
(options?: Partial<IframeOptions>): Chainable<Subject>;
|
|
25
|
+
}
|
|
26
|
+
interface Chainable<Subject> {
|
|
27
|
+
enterIrisApp: IframeHandler<() => Chainable<JQuery<HTMLBodyElement>>>;
|
|
28
|
+
enterStorybookPreview: IframeHandler<() => Chainable<JQuery<HTMLBodyElement>>>;
|
|
29
|
+
/**
|
|
30
|
+
* Custom command to select DOM element by data-testid attribute.
|
|
31
|
+
*
|
|
32
|
+
* @example cy.getByTestId('sidebar')
|
|
33
|
+
*/
|
|
34
|
+
getByTestId(value: string, options?: Partial<Loggable & Timeoutable>): Chainable<Subject>;
|
|
35
|
+
/**
|
|
36
|
+
* Logs in as the user defined in auth.json (public version - auth fixture only)
|
|
37
|
+
* Can be passed an optional fixture type
|
|
38
|
+
*
|
|
39
|
+
* @example cy.login('auth')
|
|
40
|
+
*/
|
|
41
|
+
login(fixture?: "auth"): Chainable<Subject>;
|
|
42
|
+
switchToLocalDevMode(): Chainable<Subject>;
|
|
43
|
+
getValidateFeatureFlags(): Chainable<Subject>;
|
|
44
|
+
configCat(flag: string): Chainable<boolean>;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
package/src/support.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/// <reference
|
|
2
|
+
/// <reference types="cypress" />
|
|
3
|
+
/// <reference types="@testing-library/cypress" />
|
|
3
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
/**
|
|
@@ -10,4 +11,5 @@ const tslib_1 = require("tslib");
|
|
|
10
11
|
tslib_1.__exportStar(require("./commands/defaultCommands"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./setup/defaultE2ESetup"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./setup/setupHarRecording"), exports);
|
|
14
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
13
15
|
//# sourceMappingURL=support.js.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
+
// load type definitions that come with Cypress module
|
|
3
|
+
/// <reference types="cypress" />
|
|
4
|
+
/// <reference types="@testing-library/cypress" />
|
|
5
|
+
|
|
6
|
+
declare namespace Cypress {
|
|
7
|
+
interface IframeOptions extends Loggable, Timeoutable {
|
|
8
|
+
url?: string | RegExp;
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface IframeHandler<Subject> {
|
|
13
|
+
(selector: string, options?: Partial<IframeOptions>): Chainable<Subject>;
|
|
14
|
+
(options?: Partial<IframeOptions>): Chainable<Subject>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface Chainable<Subject> {
|
|
18
|
+
enterIrisApp: IframeHandler<() => Chainable<JQuery<HTMLBodyElement>>>;
|
|
19
|
+
enterStorybookPreview: IframeHandler<() => Chainable<JQuery<HTMLBodyElement>>>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Custom command to select DOM element by data-testid attribute.
|
|
23
|
+
*
|
|
24
|
+
* @example cy.getByTestId('sidebar')
|
|
25
|
+
*/
|
|
26
|
+
getByTestId(value: string, options?: Partial<Loggable & Timeoutable>): Chainable<Subject>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Logs in as the user defined in auth.json (public version - auth fixture only)
|
|
30
|
+
* Can be passed an optional fixture type
|
|
31
|
+
*
|
|
32
|
+
* @example cy.login('auth')
|
|
33
|
+
*/
|
|
34
|
+
login(fixture?: "auth"): Chainable<Subject>;
|
|
35
|
+
|
|
36
|
+
switchToLocalDevMode(): Chainable<Subject>;
|
|
37
|
+
|
|
38
|
+
getValidateFeatureFlags(): Chainable<Subject>;
|
|
39
|
+
configCat(flag: string): Chainable<boolean>;
|
|
40
|
+
}
|
|
41
|
+
}
|