maestro/tests/fixtures/browser-macros/no-frontmatter.js
2026-06-03 05:08:00 +00:00

15 lines
419 B
JavaScript

/**
* Browser-macro without frontmatter. Verifies the playwright runtime doesn't
* insist on session_profile_id when the script doesn't ask for one.
*/
async function main({ context }) {
const page = await context.newPage();
try {
await page.goto('data:text/html,<title>hello</title><body>no-session</body>');
return await page.title();
} finally {
await page.close();
}
}
module.exports = main;