Default properties and action generators #

Bombadil comes with a set of default properties and action generators that work for most web applications. You’ll probably want to reexport all or at least most of these:

export * from "@antithesishq/bombadil/browser/defaults";

In fact, these defaults are exactly what are used when running tests without a custom specification file. If you want to selectively pick just a subset of these, replace the * with the relevant names:


export {
    noUncaughtExceptions,
} from "@antithesishq/bombadil/browser/defaults/properties";
export { 
    // Actions
    clicks, 
    reload,
} from "@antithesishq/bombadil/browser/defaults/actions";

You may freely combine defaults with your own properties and action generators. All properties and action generators exported by the top-level module are used by Bombadil.

The browser defaults include properties checking for uncaught exceptions, unhandled promise rejections, error logs, HTTP 4xx and 5xx responses, and more. On the actions side, there are generators for general navigation and interaction with semantic HTML elements.