Repository navigation
writing scenarios
title: "Writing Cypress Test Scenarios" type: guide domain: testing framework: cypress-cucumber tags: [cypress, gherkin, bdd, scenarios, feature-files] created: 2026-07-14
Guide for writing Gherkin test scenarios. No coding experience required.
Cucumber executes test specifications written in Gherkin, a plain-text format that reads like a recipe. Each scenario lives in a .feature file. You describe what should happen; the development team wires up the how.
Free course: BDD Overview for Business Analysts and Product Owners.
- Go to Issues and click New issue.
- Select User provided automated test-case.
- Fill out the form.
The issue converts to a .feature file automatically.
Gherkin is sensitive to spacing and casing. Use the exact keyword casing shown in examples.
Feature: User Registration
As a new user I want to register on the website so that I can access exclusive contentThe description sits one indent level below Feature.
Steps use Given, When, Then, And, or But:
Scenario: Successful user registration
Given I am on the registration page
When I fill in the registration form with valid information
And I click the "Register" button
Then I should see a success messageEach step sits one indent level below Scenario. The Scenario itself sits one level below Feature.
Place the annotation directly above the Scenario keyword:
@loginAsBCeID
Scenario: Submit individuals
When I click on the "Create client" button
And I can read "Create client"| Annotation | Description |
|---|---|
@loginAsBCeID |
Log in as BCeID user |
@loginAsIDIR |
Log in as IDIR user |
Both hooks require credentials in environment variables (idir_username, idir_password, bceid_username, bceid_password).
- Step Reference — all available step definitions
- Developer Guide — environment setup and implementation
This wiki documents NR Waste Plus for users and developers. Verify security and deployment guidance against the current application configuration before applying it elsewhere.
- Report an issue or ask a question in the GitHub repository.
- Follow the Contributing Guidelines to propose an update.
- Read the Code of Conduct.
Collection indexes support human browsing and machine retrieval. Keep both current when adding or moving wiki pages.
NR Waste Plus Wiki | GitHub Repository