@memlab/e2e
Version:
memlab browser E2E interaction libraries
23 lines (18 loc) • 460 B
JavaScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* @nolint
* @oncall memory_lab
*/
function url() {
return 'http://localhost:3000/';
}
// action where you suspect the memory leak might be happening
async function action(page) {
await page.click('a[href="/examples/oversized-object"]');
}
// how to go back to the state before actionw
async function back(page) {
await page.click('a[href="/"]');
}
module.exports = {action, back, url};