@trackunit/iris-app-playwright 0.3.14 → 0.3.20

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
@@ -118,7 +118,7 @@ irisApp(options?: IrisAppOptions): Promise<FrameLocator>
118
118
 
119
119
  Defaults to the first `iframe[data-testid="app-iframe"]`. Pass `testId` to target a different iframe. On a feature-branch host the fixture waits until that iframe is attached, and a missing iframe rejects with `host never became ready`.
120
120
 
121
- Before 1.0.0 `irisApp()` returned the `FrameLocator` synchronously. The `v1-0-0-await-iris-app` migration rewrites existing `irisApp(...)` calls to `await irisApp(...)` and widens local `() => FrameLocator` types for the fixture; run it with `nx g @trackunit/migrations:migrate` followed by `nx g @trackunit/migrations:run-migrations`. Calls outside an async function are reported for manual review.
121
+ Before 0.3.0 `irisApp()` returned the `FrameLocator` synchronously. The `v0-3-0-await-iris-app` migration rewrites existing `irisApp(...)` calls to `await irisApp(...)` and widens local `() => FrameLocator` types for the fixture; run it with `nx g @trackunit/migrations:migrate` followed by `nx g @trackunit/migrations:run-migrations`. Calls outside an async function are reported for manual review.
122
122
 
123
123
  ### `storybookPreview`
124
124
 
@@ -4,7 +4,7 @@ exports.awaitIrisApp = exports.awaitIrisAppCalls = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const ts = tslib_1.__importStar(require("typescript"));
7
- const MIGRATION_NAME = "v1-0-0-await-iris-app";
7
+ const MIGRATION_NAME = "v0-3-0-await-iris-app";
8
8
  const FIXTURE_NAME = "irisApp";
9
9
  const SOURCE_EXTENSIONS = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs"];
10
10
  const isSourceFile = (filePath) => SOURCE_EXTENSIONS.some(extension => filePath.endsWith(extension));
@@ -172,7 +172,7 @@ const awaitIrisAppCalls = (filePath, content) => {
172
172
  };
173
173
  exports.awaitIrisAppCalls = awaitIrisAppCalls;
174
174
  /**
175
- * `@trackunit/iris-app-playwright` 1.0.0: the `irisApp` fixture resolves to
175
+ * `@trackunit/iris-app-playwright` 0.3.0: the `irisApp` fixture resolves to
176
176
  * `Promise<FrameLocator>` in every environment, so a feature-branch host can
177
177
  * wait for the iframe before any page assertion. Every `irisApp(...)` call
178
178
  * therefore needs an `await`.
package/migrations.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "generators": {
3
- "v1-0-0-await-iris-app": {
4
- "version": "1.0.0",
3
+ "v0-3-0-await-iris-app": {
4
+ "version": "0.3.0",
5
5
  "description": "irisApp() now resolves to Promise<FrameLocator> in every environment. Rewrite irisApp(...) calls inside async functions to await irisApp(...), parenthesised when the call is the receiver of a member access, and report calls outside async functions for manual review.",
6
- "implementation": "./migrations/v1-0-0/await-iris-app"
6
+ "implementation": "./migrations/v0-3-0/await-iris-app"
7
7
  }
8
8
  }
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-playwright",
3
- "version": "0.3.14",
3
+ "version": "0.3.20",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "generators": "./generators.json",