@bigbinary/neeto-playwright-commons 1.22.15 → 1.22.16
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/index.cjs.js +4 -3
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +4 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -188757,7 +188757,7 @@ class EmbedBase {
|
|
|
188757
188757
|
timeout: 20000,
|
|
188758
188758
|
});
|
|
188759
188759
|
await this.embedTestPage.waitForLoadState("load");
|
|
188760
|
-
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline"
|
|
188760
|
+
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline" || this.embedTestPageType === "iframe"
|
|
188761
188761
|
? "iframe"
|
|
188762
188762
|
: EMBED_SELECTORS.iframe(this.appName));
|
|
188763
188763
|
return this.embedTestPage;
|
|
@@ -188774,13 +188774,14 @@ class EmbedBase {
|
|
|
188774
188774
|
timeout: 20000,
|
|
188775
188775
|
});
|
|
188776
188776
|
await this.embedTestPage.waitForLoadState("load");
|
|
188777
|
-
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline"
|
|
188777
|
+
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline" || this.embedTestPageType === "iframe"
|
|
188778
188778
|
? "iframe"
|
|
188779
188779
|
: EMBED_SELECTORS.iframe(this.appName));
|
|
188780
188780
|
return this.embedTestPage;
|
|
188781
188781
|
};
|
|
188782
188782
|
this.closeEmbedModalAndPage = async () => {
|
|
188783
|
-
if (this.embedTestPageType !== "inline"
|
|
188783
|
+
if (this.embedTestPageType !== "inline" &&
|
|
188784
|
+
this.embedTestPageType !== "iframe") {
|
|
188784
188785
|
await this.embedTestPage
|
|
188785
188786
|
.locator(EMBED_SELECTORS.close(this.appName))
|
|
188786
188787
|
.click();
|