scenario: "Validate: No undefined variables"
background:
  schema-file: validation.schema.graphql
tests:
  - name: undefined variable
    given:
      query: |
        query RequiredValues {
          dog { name(surname: $z) }
        }
    when:
      validate: [NoUndefinedVariables]
    then:
      - error-count: 1
      - error: "Variable '$z' is not defined."

scenario: "Validate: No undefined variables"
background:
  schema-file: validation.schema.graphql
tests:
  - name: undefined variable
    given:
      query: |
        query RequiredValues {
          dog { name(surname: $a) }
        }
    when:
      validate: [NoUndefinedVariables]
    then:
      - error-count: 1
      - error: "Variable '$a' is not defined."

Rename $z back to $a
Rename $z back to $a
