How to use the tdd-buffet/suite/gui.setViewportSize function in tdd-buffet

To help you get started, we’ve selected a few tdd-buffet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NiGhTTraX / mugshot / tests / gui / suite.ts View on Github external
export async function loadFixture(browser: Browser, name: string) {
  const fixtureContent = await fs.readFile(
    path.join(__dirname, `./fixtures/${name}.html`),
    { encoding: 'utf8' }
  );

  await browser.url('about:blank');

  await browser.execute(createFixture, fixtureContent);

  await setViewportSize(1024, 768);
}

tdd-buffet

All you can eat TDD tools and libraries

MIT
Latest version published 11 months ago

Package Health Score

58 / 100
Full package analysis