hdresearch / nolita

Work with web-enabled agents quickly — whether running a quick task or bootstrapping a full-stack product.
https://nolita.ai
MIT License
79 stars 3 forks source link

use extra stealth when launching browsers #78

Closed AlephNotation closed 1 month ago

AlephNotation commented 1 month ago

This sets the puppeteer browser to use extra-stealth https://www.npmjs.com/package/puppeteer-extra-plugin-stealth

matildepark commented 1 month ago
    expect(received).toBe(expected) // Object.is equality

    Expected: "iVBORw0KGgoAAAANSUhEUgAAAy"
    Received: "iVBORw0KGgoAAAANSUhEUgAAAw"

Kinda wonder if swapping this out could subtly change the screenshot hash like that.

matildepark commented 1 month ago

Also ran the tests locally with --detectOpenHandles and it flagged the two fetch calls to /memorize as potentially preventing tests from exiting. Like we hang on it or something and tests fail.