How to Add AI Scoring and Email Verification to Your E2E Suite

https://hackernoon.imgix.net/images/nE0yxlY2EifF9XYmAwKPd7CKGrn1-hg93boo.png

Prerequisites

This is Part 2 of a two-part guide. Part 1 built the three-layer foundation: UI (Playwright browser), API (HTTP), and DB (PostgreSQL). All the infrastructure from Part 1 — world.js, hooks.js, env.js, the cucumber.json profiles — is extended here, never replaced.

Before continuing, make sure Part 1 is complete, and all three profiles pass:

npx cucumber-js --profile uinpx cucumber-js --profile apinpx cucumber-js --profile db


Layer 4: Chat

The login feature from Part 1 was intentionally simple — one endpoint, one page, one table. The chat feature raises the complexity: it spans all three layers and introduces a Background block that shares setup steps across scenarios. This is where the three-layer model starts to pay off. The UI test confirms the interface renders. The API test validates the conversation contract. The DB test checks that messages are stored with the right sender type and order.

Folder Additions

e2e/├── features/│ ├──...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more

https://cdn.mos.cms.futurecdn.net/i9rE72kixis4u3owHu7457-2560-80.jpg

'Impossible to recommend': I tested a cheap Nintendo Switch 2 controller that had me promised more than it could deliver — here's what it got wrong

Despite its customizable RGB lights, comfortable feel, and decent feature-set, the Snakebyte Gamepad RGB S2 is impossible to recommend due to its wireless pairing problems, input lag issues, and occasional random disconnections. Pros * +Customizable RGB lights * +Pretty comfortable in-use * +Decent features for a budget model Cons * -Long-winded pairing process * -Some

https://www.politico.com/dims4/default/resize/1200/quality/90/format/jpg?url=https%3A%2F%2Fstatic.politico.com%2F6d%2F74%2F972a62864c6eb56be533c5ebc204%2Fhttps-delivery-gettyimages.com%2Fd...

OpenAI's Chris Lehane says he is pursuing “reverse federalism”, lobbying blue states to pass AI safety laws and create a de facto US standard, as DC dithers

Sponsor Posts Niantic Spatial: World models need real-world data — Scaniverse is the gateway to spatial services — self-serve and built for AI and robotics. Large-area 3D reconstruction from 360° cameras and precise localization, anywhere machines operate. App Spotlight: Quo for Zoho CRM — App Spotlight brings you hand-picked solutions that enhance your