Feature: Schema-driven completion for GitLab CI YAML
Background:
Given the GitLab CI schema is loaded
Scenario: Top-level keys in empty file
Given a GitLab buffer with content ""
And the cursor is at line 0 column 0
When I request completions
Then the completions include "image"
Then the completions include "stages"
Then the completions include "variables"
Scenario: Field suggestions inside default mapping
Given a GitLab buffer starting with "default:"
And a buffer line ""
And the cursor is at line 1 column 0
When I request completions
Then the completions include "image"
Then the completions include "cache"
Then the completions include "before_script"
Scenario: Boolean value suggestions for default.interruptible
Given a GitLab buffer starting with "default:"
And a buffer line " interruptible: "
And the cursor is at line 1 column 16
When I request completions
Then the completions include "true"
Then the completions include "false"