Book a free consultation

Test architecture

craft-test: one core framework, fixed once and fixed everywhere

Duplicated test code across products meant every login change had to be fixed in several places, and the copies drifted apart. We built a shared core framework to end that.

1core automation framework, shipped as a secure npm package
1 folderper feature, holding its locators, content, actions and tests
Secondsto stop a run with one clear message when the site is unreachable

The challenge

Teams copied the same login test into every product's suite. When the login button changed, the fix had to be applied in every copy, often by different people, and defects slipped through the gaps.

We needed a structure where shared logic lives in one place and each product's setup stays deliberately small.

What we did

One core, many consumers

The core owns helpers, assertions, page actions, fixtures, setup, reporting and configuration. Each product has a lightweight consumer framework that installs it and describes only its own site.

One feature, one folder

Everything about login, from selectors and page copy to actions and tests, lives in a single folder, so a change happens in one place.

Built-in hygiene

Back-end sign-in for tests that aren't about login, masked passwords in logs, screenshots and step-level reporting on every failure.

Fail fast

Before any test runs, the config checks the site is reachable and stops within seconds with one clear message if it isn't.

The result

A fix made in the core reaches every consumer with its next update, and bringing a new product under test means adding one small consumer framework instead of cloning a project.

All the heavy lifting happens in one core framework. Each product's consumer framework simply connects to it and describes its own website.
Sanchi, SDET
PlaywrightTypeScriptnpm packageFramework design

Read the full story on our blog

Tell us what you're shipping next.

Start with a free consultation. We'll look at your current QA process, point out the biggest release risks, and suggest how we'd cover them.