Instant Smoke Testing with Cypress
summary
Live demo builds a sample "recipe book" app on Shipyard ephemeral environments, installs Cypress tests that (1) assert the page body renders, (2) hit three API endpoints expecting HTTP 200, (3) confirm UI data-testids and ARIA attributes, (4) type into inputs and verify password masking and enabled buttons. CI wiring uses GitHub Actions with a SHIPYARD_URL secret. Typical build is ~1 minute, smoke tests 15–30s (a demo run showed two quick passing tests in ~4s). Demo finds a real bug: invalid credentials grant access.
AI-written summary · about
chapters (11)
- 0:00Introduction to smoke testing
- 1:02Why smoke tests matter
- 4:16Defining smoke test scope
- 8:39Smoke test goals and priorities
- 14:25Setting up Cypress tests
- 22:51First smoke test: Page load
- 27:57Second smoke test: UI elements
- 34:11Third smoke test: Form inputs
- 38:50Fourth smoke test: Accessibility
- 43:04Automating tests in GitHub Actions
- 47:20Q&A and closing
