Logo: Relish

  1. Sign in

Project: Obsoletefleet 1.0.0

User finds and fills out surveys

As an agency's primary contact for an equipment's usage and business decisions
I want to fill out a survey
So that I can justify keeping or disposing of a piece of equipment

Scenarios
User goes to his/her home page and then summary page
Given
the following surveys:
equipment_id equipment_description vin_number identifier
tag123 1998 Honda Civic 12345678901234567 aAut
And
I am on the link given to me by the survey email
When
I follow "Go to My Surveys"
Then
I should see "1998 Honda Civic"
View a list of equipment that was given to me
Given
the following surveys:
equipment_id equipment_description vin_number identifier
tag123 1998 Honda Civic 12345678901234567 aAut
tag125 1995 Honda Civic 42345678901234567 aAut
tag122 1996 Honda Civic 32345678901234567 aAut
tag121 1997 Honda Civic 22345678901234567 not_me_not_me
When
I am on my given surveys page
Then
I should see "1998 Honda Civic"
And
I should see "1995 Honda Civic"
And
I should see "1996 Honda Civic"
And
I should not see "1997 Honda Civic"
Edit a survey
Given
the following surveys:
equipment_id equipment_description vin_number identifier
tag123 1998 Honda Civic 12345678901234567 aAut
And
I am on my given surveys page
When
I follow "tag123"
And
I press "Update Survey"
Then
I should see "You have saved the survey for 1998 Honda Civic successfully."
Go back to home after changing my mind on a survey
Given
the following surveys:
equipment_id equipment_description vin_number identifier
tag123 1998 Honda Civic 12345678901234567 aAut
And
I am on my home page
When
I follow "My Surveys"
And
I follow "tag123"
And
I follow "My Surveys"
Then
I should see "1998 Honda Civic"
When
I follow "Home"
Then
I should see "Go to My Surveys"
User filters through equipment maintaining search and order
Given
the following surveys:
equipment_id equipment_description vin_number identifier
tag124 1998 Honda Civic 12345678901234567 aAut
tag125 1995 Honda Civic 42345678901234567 aAut
tag133 2006 Honda Civic 32345678901234567 aAut
tag121 1997 Honda Civic 22345678901234567 not_me_not_me
And
I am on my given surveys page
When
I select "Equipment ID containing" from "filter_column"
When
I fill in "filter_text_eq" with "tag12"
And
I press "Filter"
Then
I should see "1998 Honda Civic"
And
I should see "1995 Honda Civic"
And
I should not see "2006 Honda Civic"
And
I should not see "1997 Honda Civic"
And
I should see "Current filter: Equipment id contains"
User should see all detail information on survey detail page
Given
I am at a survey's page
Then
I should see the survey's equipment id
Then
I should see the survey's department id
And
I should see the survey's equipment description
And
I should see the survey's vin number
And
I should see the survey's location code
And
I should see the survey's city
And
I should see the survey's current odometer
And
I should see the survey's updated at
And
I should see the survey's status
And
I should see the survey's emis status
And
I should see the survey's current odometer
And
I should see the survey's annual miles prev
And
I should see the survey's annual miles prev 3
And
I should see the survey's maintenance cost prev
And
I should see the survey's maintenance cost prev 3
  • @javascript
Upon entering a survey for the first time, only the first question is shown
Given
I am at a survey's page
Then
I should not see the label "justifiable requirement to replace"
  • @javascript
User selects 'already disposed'
Given
I am at a survey's page
When
I check "survey_already_disposed"
Then
I should not see the fieldset "Does the agency plan to dispose"
  • @javascript
User selects 'will be disposed of within 6 months'
Given
I am at a survey's page
When
I choose "Yes, this vehicle will be disposed of within the next 6 months."
Then
I should see "DMS Fleet Management Auction"
And
I should see "Request for Disposal Form"
And
I should see "Is there a justifiable requirement to replace"
  • @javascript
User selects 'vehicle will be disposed, but not replaced'
Given
I am at a survey's page
When
I choose "Yes, this vehicle will be disposed of within the next 6 months."
And
I choose "No, there is not a justifiable requirement to replace this vehicle after it is disposed of."
Then
I should not see the label "Is a suitable replacement vehicle available for transfer from within the agency?"
When
I choose "survey_just_replacement_req_true"
Then
I should see the label "Is a suitable replacement vehicle available for transfer from within the agency?"
And
I should not see the label "The displayed EMIS data for this vehicle is incorrect."
  • @javascript
User selects "Vehicle will not be disposed of and explains why."
Given
I am at a survey's page
When
I choose "No, this vehicle will not be disposed of within the next year for the following reason(s)"
Then
I should see the label "The displayed EMIS data for this vehicle is incorrect."
A user downloads an excel document
Given
the following surveys:
equipment_id equipment_description vin_number identifier
tag123 1998 Honda Civic 12345678901234567 aAut
And
I am on the link given to me by the survey email
When
I follow "Go to My Surveys"
And
I follow "Download Current Surveys"
Then
I should receive an excel file
A user downloads an upcoming excel document
Given
the following surveys:
equipment_id equipment_description vin_number identifier upcoming
tag123 1998 Honda Civic 12345678901234567 aAut true
And
I am on the link given to me by the survey email
When
I follow "Go to My Surveys"
And
I follow "Download Upcoming Obsolete Vehicles"
Then
I should receive an excel file

Last published over 4 years ago by btelles.