Skip to content

Commit

Permalink
remove ifram test
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Sep 21, 2021
1 parent 67f9f8d commit 2471481
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions __tests__/core/gatherer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,24 +115,5 @@ describe('Gatherer', () => {
await Gatherer.dispose(driver);
await Gatherer.stop();
});

it('works with iframe content', async () => {
const driver = await Gatherer.setupDriver({
wsEndpoint,
playwrightOptions: { ...devices['Galaxy S9+'] },
});
const { page } = driver;
await page.goto(server.TEST_PAGE);
await page.setContent(
'<iframe id="frameID" width="200" height="200">iframe</iframe>'
);
const handle = await page.$('#frameID');
const contentFrame = await handle.contentFrame();
expect(await contentFrame.evaluate(() => navigator.userAgent)).toContain(
' Elastic/Synthetics'
);
await Gatherer.dispose(driver);
await Gatherer.stop();
});
});
});

0 comments on commit 2471481

Please sign in to comment.