Skip to content

Add support for Rule and scoped Background - #14

Merged
DannyBen merged 1 commit into
masterfrom
add/rules
Jul 11, 2026
Merged

Add support for Rule and scoped Background#14
DannyBen merged 1 commit into
masterfrom
add/rules

Conversation

@DannyBen

@DannyBen DannyBen commented Jul 11, 2026

Copy link
Copy Markdown
Owner
@access
Feature: rules
  Group examples by business rule

Background:
  Given the current user is 'Dana'

@elevated
Rule: Elevated roles can access protected areas
  These roles have broader access.

  Background:
    Given the current role is 'admin'

  Scenario Outline: Accessing <area>
    Then the user should have access to '<area>'

  Examples:
    | area     |
    | settings |
    | reports  |

@standard
Rule: Standard roles cannot access protected areas

  Background:
    Given the current role is 'member'

  Scenario: Accessing settings
    Then the user should not have access to 'settings'

@DannyBen
DannyBen merged commit c4ce00a into master Jul 11, 2026
2 checks passed
@DannyBen
DannyBen deleted the add/rules branch July 11, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant