@interopio/iocd-cli 1.0.0 → 1.0.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
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.1](https://github.com/InteropIO/iocd-cli/compare/iocd-cli-v1.0.0...iocd-cli-v1.0.1) (2026-08-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix the workspace test ([#93](https://github.com/InteropIO/iocd-cli/issues/93)) ([577f64c](https://github.com/InteropIO/iocd-cli/commit/577f64c879f680bca2ae01a485261dbe954bd8a5))
|
|
14
|
+
|
|
8
15
|
## [1.0.0](https://github.com/InteropIO/iocd-cli/compare/iocd-cli-v0.0.92...iocd-cli-v1.0.0) (2026-08-14)
|
|
9
16
|
|
|
10
17
|
|
|
@@ -4,9 +4,8 @@ import { $, browser } from "@wdio/globals";
|
|
|
4
4
|
|
|
5
5
|
// Adds an app to a Workspace by driving the Workspaces App UI with WebdriverIO
|
|
6
6
|
// clicks (the frame's add button and the add-application popup) instead of the
|
|
7
|
-
// workspace.addWindow() API.
|
|
8
|
-
//
|
|
9
|
-
// popup renders inside the frame window rather than a separate popup window.
|
|
7
|
+
// workspace.addWindow() API. The popup renders in its own platform window, so
|
|
8
|
+
// the session has to be switched to it before its elements can be used.
|
|
10
9
|
describe("Workspace add-app popup", function () {
|
|
11
10
|
this.timeout(60_000);
|
|
12
11
|
|
|
@@ -28,6 +27,7 @@ describe("Workspace add-app popup", function () {
|
|
|
28
27
|
|
|
29
28
|
// Open the add-application popup from the empty container's add button.
|
|
30
29
|
await $(".wsp-empty-container button.add-button").waitAndClick();
|
|
30
|
+
await switchToAddApplicationPopup();
|
|
31
31
|
|
|
32
32
|
// Filter the popup's app list down to the target app by its title.
|
|
33
33
|
const search = await $(".add-application #appSearch");
|
|
@@ -40,6 +40,7 @@ describe("Workspace add-app popup", function () {
|
|
|
40
40
|
).waitAndClick();
|
|
41
41
|
|
|
42
42
|
// The click adds the app through the real UI; confirm via the Workspaces API.
|
|
43
|
+
await browser.switchById(workspace.frameId);
|
|
43
44
|
await browser.waitUntil(
|
|
44
45
|
async () => {
|
|
45
46
|
const current = (await io.workspaces!.getAllWorkspaces()).find(
|
|
@@ -62,3 +63,23 @@ describe("Workspace add-app popup", function () {
|
|
|
62
63
|
await $("#widget-ready").waitForDisplayed();
|
|
63
64
|
});
|
|
64
65
|
});
|
|
66
|
+
|
|
67
|
+
async function switchToAddApplicationPopup(): Promise<void> {
|
|
68
|
+
await browser.waitUntil(
|
|
69
|
+
async () => {
|
|
70
|
+
for (const handle of await browser.getWindowHandles()) {
|
|
71
|
+
try {
|
|
72
|
+
await browser.switchToWindow(handle);
|
|
73
|
+
if (await $(".add-application").isDisplayed()) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
} catch {
|
|
77
|
+
// The popup can be created or removed while handles are being inspected.
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return false;
|
|
82
|
+
},
|
|
83
|
+
{ timeoutMsg: "Expected the add-application popup to open" }
|
|
84
|
+
);
|
|
85
|
+
}
|