Skip to content

Commit

Permalink
test: preload??
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjosephprice committed Mar 7, 2024
1 parent 83788d1 commit eef9711
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions __tests__/browser/markdown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));

describe('visual regression tests', () => {
describe('rdmd syntax', () => {
beforeAll(async () => {
// @xxx: preload slow page????
const uri = 'http://localhost:9966/?ci=true#features';
await page.goto(uri, { waitUntil: 'networkidle0' });
await page.evaluate(() => {
window.scrollTo(0, window.document.body.scrollHeight);
});
});

beforeEach(async () => {
// The ToC disappears somewhere below 1200, 1175-ish?
await page.setViewport({ width: 1400, height: 800 });
Expand Down

0 comments on commit eef9711

Please sign in to comment.