Skip to content

Commit

Permalink
try to fix up classic frame workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Oct 14, 2024
1 parent cd457a0 commit 2cb3e47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("Flash inside frame with injected ruffle", () => {

it("polyfills inside a frame", async () => {
await injectRuffleAndWait(browser);
await browser.switchFrame(await browser.$("#test-frame"));
await browser.switchToFrame(await browser.$("#test-frame"));
await waitForRuffleObjectInTestFrame(browser);

const actual = await getContainerHTMLFromTestFrame(browser);
Expand All @@ -35,13 +35,13 @@ describe("Flash inside frame with injected ruffle", () => {
});

// Then reload
await browser.switchFrame(null);
await browser.switchFrame(await browser.$("#nav-frame"));
await browser.switchToFrame(null);
await browser.switchToFrame(await browser.$("#nav-frame"));
await browser.$("#reload-link").click();

// And finally, check
await browser.switchFrame(null);
await browser.switchFrame(await browser.$("#test-frame"));
await browser.switchToFrame(null);
await browser.switchToFrame(await browser.$("#test-frame"));
await waitForRuffleObjectInTestFrame(browser);

const actual = await getContainerHTMLFromTestFrame(browser);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("Flash inside frame with provided ruffle", () => {
});

it("polyfills inside a frame", async () => {
await browser.switchFrame(await browser.$("#test-frame"));
await browser.switchToFrame(await browser.$("#test-frame"));
await waitForRuffleObjectInTestFrame(browser);

const actual = await getContainerHTMLFromTestFrame(browser);
Expand All @@ -33,13 +33,13 @@ describe("Flash inside frame with provided ruffle", () => {
});

// Then reload
await browser.switchFrame(null);
await browser.switchFrame(await browser.$("#nav-frame"));
await browser.switchToFrame(null);
await browser.switchToFrame(await browser.$("#nav-frame"));
await browser.$("#reload-link").click();

// And finally, check
await browser.switchFrame(null);
await browser.switchFrame(await browser.$("#test-frame"));
await browser.switchToFrame(null);
await browser.switchToFrame(await browser.$("#test-frame"));
await waitForRuffleObjectInTestFrame(browser);

const actual = await getContainerHTMLFromTestFrame(browser);
Expand Down

0 comments on commit 2cb3e47

Please sign in to comment.