Skip to content

Instantly share code, notes, and snippets.

@IhostVlad
Last active June 5, 2019 14:04
Show Gist options
  • Save IhostVlad/c0d7cd44613953eabd7fb5b2a5da24c5 to your computer and use it in GitHub Desktop.
Save IhostVlad/c0d7cd44613953eabd7fb5b2a5da24c5 to your computer and use it in GitHub Desktop.
fixture`HackerNews`.page`https://jd05ienjxfkjegg8mim64t8z1e.resolve.sh/`
test('HackerNews 1', async t => {
await t.setNativeDialogHandler(() => true)
const pageContent = (await t.eval(() => window.document.body.innerHTML))
console.log(pageContent)
})
test('HackerNews 2', async t => {
await t.setNativeDialogHandler(() => true)
const pageContent = (await t.eval(() => window.document.body.innerHTML))
console.log(pageContent)
})
test('HackerNews 3', async t => {
await t.setNativeDialogHandler(() => true)
const pageContent = (await t.eval(() => window.document.body.innerHTML))
console.log(pageContent)
})
test('HackerNews 4', async t => {
await t.setNativeDialogHandler(() => true)
const pageContent = (await t.eval(() => window.document.body.innerHTML))
console.log(pageContent)
})
test('HackerNews 5', async t => {
await t.setNativeDialogHandler(() => true)
const pageContent = (await t.eval(() => window.document.body.innerHTML))
console.log(pageContent)
})
test('HackerNews 6', async t => {
await t.setNativeDialogHandler(() => true)
const pageContent = (await t.eval(() => window.document.body.innerHTML))
console.log(pageContent)
})
test('HackerNews 7', async t => {
await t.setNativeDialogHandler(() => true)
const pageContent = (await t.eval(() => window.document.body.innerHTML))
console.log(pageContent)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment