Feature: Dashboard
    As an authenticated user
    I want to select some zones and specify a time
    So that I can schedule portions of my yard to be watered

    Scenario: Attempting to reach the Dashboard unauthenticated
        Given I navigate directly to the dashboard
        Then I return to the home page

    Scenario: Visiting the Dashboard
        Given I am on the home page
        And I enter "c3667b81-92a6-4913-b83c-64cc713cbc1e" into the token field
        And I click the "submitToken" button
        Then I should see "Devices"

    Scenario: Selecting a Device
        Given I am on the home page
        And I enter "c3667b81-92a6-4913-b83c-64cc713cbc1e" into the token field
        And I click the "submitToken" button
        And I click the "chooseDevice" button
        And I select "device-0"
        Then I should see "Zones"

    Scenario: Selecting a Zone
        Given I am on the home page
        And I enter "c3667b81-92a6-4913-b83c-64cc713cbc1e" into the token field
        And I click the "submitToken" button
        And I select "zone-0"
        Then I should see "Schedule"

Feature: Dashboard
    As an authenticated user
    I want to select some zones and specify a time
    So that I can schedule portions of my yard to be watered

    Scenario: Attempting to reach the Dashboard unauthenticated
        Given I navigate directly to the dashboard
        Then I return to the home page

    Scenario: Visiting the Dashboard
        Given I am on the home page
        And I enter "c3667b81-92a6-4913-b83c-64cc713cbc1e" into the token field
        And I click the "submitToken" button
        Then I should see "Devices"

    Scenario: Selecting a Device
        Given I am on the home page
        And I enter "c3667b81-92a6-4913-b83c-64cc713cbc1e" into the token field
        And I click the "submitToken" button
        And I click the "chooseDevice" button
        And I select "device-0"
        Then I should see "Zones"

    Scenario: Selecting a Zone
        Given I am on the home page
        And I enter "c3667b81-92a6-4913-b83c-64cc713cbc1e" into the token field
        And I click the "submitToken" button
        And I select "zone-0"
        Then I should see "Schedule"

    Scenario: Scheduling zone watering
        Given I am on the home page
        And I enter "c3667b81-92a6-4913-b83c-64cc713cbc1e" into the token field
        And I click the "submitToken" button
        And I select "zone-0"
        And I enter "1337" into the "duration" field
        And I click the "waterZones" button
        Then I should see "Your zones are being watered!"

Add feature for watering zones
Add feature for watering zones
