mikesmallhelp / wacat

wacat - Challenge Your Web App with AI-Driven Cat Chaos!
MIT License
86 stars 4 forks source link

Add possiblity to detect if there are particular errors in the browser log #9

Closed mikesmallhelp closed 8 months ago

mikesmallhelp commented 10 months ago

Please find if it is possible with Playwright to detect if there are particular errors in the browser log.

Configured like this:

{ "consoleErrorTexts": ["undefined"] }

When for example the command

wacat test --conf my-conf.json https://wacat-test-application-mikesmallhelp.vercel.app/

is run and the browser console contains:

TS2532: Object is possibly 'Undefined'

wacat should fail running. Implement so that undefined is detected by case insensitive manner.

If this feature is not possible to implement, please document what is reason for that.