@v4fire/client
Version:
V4Fire client core library
33 lines (27 loc) • 567 B
JavaScript
// @ts-check
/*!
* V4Fire Client Core
* https://github.com/V4Fire/Client
*
* Released under the MIT license
* https://github.com/V4Fire/Client/blob/master/LICENSE
*/
/**
* @typedef {import('playwright').Page} Page
*/
const
h = include('tests/helpers').default,
u = include('tests/utils').default;
/**
* Starts a test
*
* @param {Page} page
* @param {!Object} params
* @returns {!Promise<boolean>}
*/
module.exports = async (page, params) => {
const
test = u.getCurrentTest();
await h.utils.setup(page, params.context);
return test(page);
};