Skip to content

Commit

Permalink
add scroll e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Mar 10, 2020
1 parent 5935e3b commit ac604fc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/e2e/tests/scroll.test.js
@@ -0,0 +1,19 @@
const qawolf = require('qawolf');
const { TEST_URL } = require('./utils');

let browser;
let page;

beforeAll(async () => {
browser = await qawolf.launch({ slowMo: 20 });
const context = await browser.newContext();
await qawolf.register(context);
page = await context.newPage();
});

afterAll(() => browser.close());

test('selects', async () => {
await page.goto(`${TEST_URL}infinite-scroll`);
await qawolf.scroll(page, 'html', { x: 0, y: 2205 });
});

0 comments on commit ac604fc

Please sign in to comment.