JevMade

Sign in
← Back to experiments

Browser & computer use

CodeceptJS Decision Assertions

Alongside exact assertions, CodeceptJS offers I.decide and I.decideVisually to check whether a page meets a requirement written in ordinary language.

Source screenshot of CodeceptJS Decision Assertions
SOURCE SCREENSHOTFull screenshot ↗

What it does

The Decision helper applies confidence cutoffs. Text checks default to typesafe/jev-1.13 through OpenRouter, while visual checks can use Clef. This is separate from chat-based test repair. The provider receives page text or images sent by the test runner.

How you can use it

Set up the Decision helper with an OpenRouter key and describe what the page should do. A meaning-based check can tell whether a message explains an error when matching exact text would miss it. Keep ordinary assertions for exact facts, and account for page content leaving the runner for the provider.

Keep this for later

Sign in to bookmark experiments, guides and videos, and keep notes only you can see.

Continue to sign in

We’ll bring you back to this listing.