Compare commits

...

1 Commits

Author SHA1 Message Date
John Hill
7c359cd8d6 first push 2023-04-10 11:34:23 -07:00
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// initial page load url: Google Maps
function url() {
return 'https://www.google.com/maps/@37.386427,-122.0428214,11z';
}
// action where we want to detect memory leaks: click the Hotels button
async function action(page) {
// puppeteer page API
await page.click('button[aria-label="Hotels"]');
}
// action where we want to go back to the step before: click clear search
async function back(page) {
// puppeteer page API
await page.click('[aria-label="Clear search"]');
}
module.exports = {action, back, url};

View File

@@ -45,6 +45,7 @@
"kdbush": "3.0.0",
"location-bar": "3.0.1",
"lodash": "4.17.21",
"memlab": "1.1.38",
"mini-css-extract-plugin": "2.7.5",
"moment": "2.29.4",
"moment-duration-format": "2.3.2",