# This test uses an environment variable (USER) to dynamically check if the id command's output contains the current user's name.
feature "User ID Utility"
env: USER
actors: Terminal
scenario "Verify user information" {
test IdContainsCurrentUser "id output contains the current user's name" {
given:
Test can_start
when:
Terminal run "id -un" # -u gets user ID, -n gets the name
then:
Terminal output_contains "${USER}"
}
}