@podman-desktop/tests-playwright 1.25.0-next.202601121139-d17ddc4 → 1.25.0-next.202601121256-b7862df
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/dist/index.js
CHANGED
|
@@ -2242,15 +2242,18 @@ class Ct extends S {
|
|
|
2242
2242
|
}
|
|
2243
2243
|
class me extends w {
|
|
2244
2244
|
heading;
|
|
2245
|
+
basicTab;
|
|
2246
|
+
advancedTab;
|
|
2245
2247
|
networkNameBox;
|
|
2246
2248
|
subnetBox;
|
|
2247
2249
|
createButton;
|
|
2248
2250
|
cancelButton;
|
|
2249
2251
|
constructor(t) {
|
|
2250
|
-
super(t), this.heading = this.page.getByRole("heading", { name: "Create a network" }), this.networkNameBox = this.page.getByRole("textbox", { name: "Name" }), this.subnetBox = this.page.getByRole("textbox", { name: "Subnet" }), this.createButton = this.page.getByRole("button", { name: "Create" }), this.cancelButton = this.page.getByRole("button", { name: "Cancel" });
|
|
2252
|
+
super(t), this.heading = this.page.getByRole("heading", { name: "Create a network" }), this.basicTab = this.page.getByRole("button", { name: "Basic" }), this.advancedTab = this.page.getByRole("button", { name: "Advanced" }), this.networkNameBox = this.page.getByRole("textbox", { name: "Name" }), this.subnetBox = this.page.getByRole("textbox", { name: "Subnet" }), this.createButton = this.page.getByRole("button", { name: "Create" }), this.cancelButton = this.page.getByRole("button", { name: "Cancel" });
|
|
2251
2253
|
}
|
|
2252
2254
|
async createNetwork(t, e) {
|
|
2253
|
-
|
|
2255
|
+
const n = e ? `Create network ${t} with subnet ${e}` : `Create network ${t}`;
|
|
2256
|
+
return s.step(n, async () => (await a(this.networkNameBox).toBeVisible(), await this.networkNameBox.clear(), await a(this.networkNameBox).toHaveValue(""), await this.networkNameBox.fill(t), await a(this.networkNameBox).toHaveValue(t), e && (await a(this.advancedTab).toBeVisible(), await this.advancedTab.click(), await a(this.subnetBox).toBeVisible(), await this.subnetBox.clear(), await a(this.subnetBox).toHaveValue(""), await this.subnetBox.fill(e), await a(this.subnetBox).toHaveValue(e)), await a(this.createButton).toBeEnabled(), await this.createButton.click(), new Ct(this.page, t)));
|
|
2254
2257
|
}
|
|
2255
2258
|
async cancel() {
|
|
2256
2259
|
return s.step("Cancel network creation", async () => (await a(this.cancelButton).toBeEnabled(), await this.cancelButton.click(), new st(this.page)));
|
|
@@ -2287,10 +2290,11 @@ class st extends A {
|
|
|
2287
2290
|
return s.step("Delete selected networks", async () => (await a(this.deleteSelectedButton).toBeEnabled(), await this.deleteSelectedButton.click(), await g(this.page), this));
|
|
2288
2291
|
}
|
|
2289
2292
|
async createNetwork(t, e) {
|
|
2290
|
-
|
|
2293
|
+
const n = e ? `Create network: ${t} with subnet ${e}` : `Create network: ${t}`;
|
|
2294
|
+
return s.step(n, async () => {
|
|
2291
2295
|
await a(this.createNetworkButton).toBeEnabled(), await this.createNetworkButton.click();
|
|
2292
|
-
const
|
|
2293
|
-
return await a(
|
|
2296
|
+
const o = new me(this.page);
|
|
2297
|
+
return await a(o.heading).toBeVisible(), o.createNetwork(t, e);
|
|
2294
2298
|
});
|
|
2295
2299
|
}
|
|
2296
2300
|
async openNetworkDetails(t) {
|