@podman-desktop/tests-playwright 1.25.0-next.202512231002-70282f6 → 1.25.0-next.202512231126-90684db
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 +8 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -713,16 +713,14 @@ async function na(i, t) {
|
|
|
713
713
|
});
|
|
714
714
|
}
|
|
715
715
|
async function g(i, t = "Confirmation", e = !0, n = "Yes", o = "Cancel", r = 1e4, l = !1) {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
await y(async () => !await c.isVisible(), { timeout: r });
|
|
725
|
-
});
|
|
716
|
+
const c = i.getByRole("dialog", { name: t, exact: !0 });
|
|
717
|
+
await y(async () => await c.isVisible(), { timeout: r });
|
|
718
|
+
const u = e ? c.getByRole("button", { name: n }) : c.getByRole("button", { name: o });
|
|
719
|
+
if (await a(u).toBeEnabled({ timeout: r }), await u.click(), l) {
|
|
720
|
+
const h = c.getByRole("button", { name: "Done" });
|
|
721
|
+
await a(h).toBeEnabled({ timeout: r }), await h.click();
|
|
722
|
+
}
|
|
723
|
+
await y(async () => !await c.isVisible(), { timeout: r });
|
|
726
724
|
}
|
|
727
725
|
async function bt(i, t, e) {
|
|
728
726
|
return s.step(`Handle Edit Network dialog for: ${t}`, async () => {
|