· 9 years ago · Jul 17, 2017, 08:02 PM
1~/D/L/travel_management_platform î‚° î‚ master î‚° rake 15m  Mon Jul 17 23:14:09 2017
2/Users/micro/.asdf/installs/ruby/2.3.1/bin/ruby -I/Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib:/Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-support-3.4.1/lib /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
3ActiveJob::QueueAdapters::InlineAdapter does not support delayed retries, so does not work with ActiveJob::Retry. You may experience strange behaviour.
4
5Randomized with seed 14631
6..............................................................................*.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*...............................................................................................................................................*..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*****..........................WARNING: Using `expect { }.not_to raise_error(SpecificErrorClass)` risks false positives, since literally any other error would cause the expectation to pass, including those raised by Ruby (e.g. NoMethodError, NameError and ArgumentError), meaning the code you are intending to test may not even get reached. Instead consider using `expect {}.not_to raise_error`. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /Users/micro/Develop/LocomoteProjects/travel_management_platform/spec/lib/health_check_spec.rb:125:in `block (5 levels) in <top (required)>'.
7.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................I, [2017-07-17T23:44:03.537035 #44202] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
8........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*......................................................................................................................................................................................................................................................................................................................................................................................*...................................................................................................................................................................................................*........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
9Imported 1/1 resources: 0 errors
10............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.............../Users/micro/Develop/LocomoteProjects/travel_management_platform/vendor/tmp_utils/lib/env_settings.rb:26: warning: block supersedes default value argument
11./Users/micro/Develop/LocomoteProjects/travel_management_platform/vendor/tmp_utils/lib/env_settings.rb:26: warning: block supersedes default value argument
12.............................................................................................................................................................................................................................................DEPRECATION WARNING: Stop banging rocks together for UOM Departments
13DEPRECATION WARNING: Stop banging rocks together for UOM Departments
14DEPRECATION WARNING: Stop banging rocks together for UOM Departments
15
16Imported 3/3 resources: 0 errors
17DEPRECATION WARNING: Stop banging rocks together for UOM Cost Centre Codes
18DEPRECATION WARNING: Stop banging rocks together for UOM Cost Centre Codes
19DEPRECATION WARNING: Stop banging rocks together for UOM Cost Centre Codes
20DEPRECATION WARNING: Stop banging rocks together for UOM Cost Centre Codes
21......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.................................................................................................................................................................................................................................................................I, [2017-07-18T00:03:39.006966 #44202] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
22I, [2017-07-18T00:03:39.141692 #44202] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
23.I, [2017-07-18T00:03:40.718805 #44202] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
24.I, [2017-07-18T00:03:42.447109 #44202] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
25I, [2017-07-18T00:03:42.583643 #44202] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
26...........................................................................................................................................................................................................................................................................................................Expensify API Client: no credentials provided!
27.Expensify API Client: no credentials provided!
28..............................................................................*.............................................
29Imported 1/1 resources: 0 errors
30...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
31Imported 1/1 resources: 0 errors
32............................................................DEPRECATION WARNING: Stop banging rocks together for UOM Departments
33DEPRECATION WARNING: Stop banging rocks together for UOM Departments
34DEPRECATION WARNING: Stop banging rocks together for UOM Departments
35
36Imported 3/3 resources: 0 errors
37.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
38
39Pending: (Failures listed here are expected and do not affect your suite's status)
40
41 1) uom-profiles.tsv profiles fixture data is a valid tsv file
42 # No reason given
43 Failure/Error: column = csv_file[0][error.column - 1]
44
45 NameError:
46 undefined local variable or method `csv_file' for #<RSpec::Matchers::DSL::Matcher be_a_valid_tsv_file>
47 # ./spec/tsv_schema/schema_spec.rb:13:in `block (3 levels) in <top (required)>'
48 # ./spec/tsv_schema/schema_spec.rb:12:in `map'
49 # ./spec/tsv_schema/schema_spec.rb:12:in `block (2 levels) in <top (required)>'
50 # ./spec/tsv_schema/schema_spec.rb:34:in `block (4 levels) in <top (required)>'
51 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
52 # ./spec/support/environment_variables.rb:20:in `with'
53 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
54 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
55 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
56
57 2) Cbt::Api#get_itinerary with a successful response from staging returns a itinerary quote
58 # we need a new UR for this
59 # ./spec/services/cbt/api_spec.rb:175
60
61 3) AtpiProfileRequestBuilder#to_xml with an exported user matching spec/fixtures/atpi/profile_request_builder/valid_update_body.xml produces an identical fixture
62 # Temporarily skipped with xit
63 # ./spec/presenters/atpi_profile_request_builder_spec.rb:417
64
65 4) Admin::CompanyResources::CompanyDepartmentsController#create user is signed in as a company admin with valid attributes export record successful export
66 # waiting for uprofile data to be in sync
67 # ./spec/controllers/admin/company_resources/company_departments_controller_spec.rb:75
68
69 5) Admin::CompanyResources::CompanyDepartmentsController#create user is signed in as a company admin with valid attributes export record successful export
70 # waiting for uprofile data to be in sync
71 # ./spec/controllers/admin/company_resources/company_departments_controller_spec.rb:77
72
73 6) Admin::CompanyResources::CompanyDepartmentsController#create user is signed in as a company admin with valid attributes export record successful export
74 # waiting for uprofile data to be in sync
75 # ./spec/controllers/admin/company_resources/company_departments_controller_spec.rb:76
76
77 7) Admin::CompanyResources::CompanyDepartmentsController#create user is signed in as a company admin with valid attributes export record failed export
78 # waiting for uprofile data to be in sync
79 # ./spec/controllers/admin/company_resources/company_departments_controller_spec.rb:93
80
81 8) Admin::CompanyResources::CompanyDepartmentsController#create user is signed in as a company admin with valid attributes export record failed export
82 # waiting for uprofile data to be in sync
83 # ./spec/controllers/admin/company_resources/company_departments_controller_spec.rb:92
84
85 9) murray_goulburn-profiles.tsv profiles fixture data is a valid tsv file
86 # No reason given
87 Failure/Error: column = csv_file[0][error.column - 1]
88
89 NameError:
90 undefined local variable or method `csv_file' for #<RSpec::Matchers::DSL::Matcher be_a_valid_tsv_file>
91 # ./spec/tsv_schema/schema_spec.rb:13:in `block (3 levels) in <top (required)>'
92 # ./spec/tsv_schema/schema_spec.rb:12:in `map'
93 # ./spec/tsv_schema/schema_spec.rb:12:in `block (2 levels) in <top (required)>'
94 # ./spec/tsv_schema/schema_spec.rb:34:in `block (4 levels) in <top (required)>'
95 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
96 # ./spec/support/environment_variables.rb:20:in `with'
97 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
98 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
99 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
100
101 10) sunpork-profiles.tsv profiles fixture data is a valid tsv file
102 # No reason given
103 Failure/Error: column = csv_file[0][error.column - 1]
104
105 NameError:
106 undefined local variable or method `csv_file' for #<RSpec::Matchers::DSL::Matcher be_a_valid_tsv_file>
107 # ./spec/tsv_schema/schema_spec.rb:13:in `block (3 levels) in <top (required)>'
108 # ./spec/tsv_schema/schema_spec.rb:12:in `map'
109 # ./spec/tsv_schema/schema_spec.rb:12:in `block (2 levels) in <top (required)>'
110 # ./spec/tsv_schema/schema_spec.rb:34:in `block (4 levels) in <top (required)>'
111 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
112 # ./spec/support/environment_variables.rb:20:in `with'
113 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
114 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
115 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
116
117 11) usq-profiles.tsv profiles fixture data is a valid tsv file
118 # No reason given
119 Failure/Error: column = csv_file[0][error.column - 1]
120
121 NameError:
122 undefined local variable or method `csv_file' for #<RSpec::Matchers::DSL::Matcher be_a_valid_tsv_file>
123 # ./spec/tsv_schema/schema_spec.rb:13:in `block (3 levels) in <top (required)>'
124 # ./spec/tsv_schema/schema_spec.rb:12:in `map'
125 # ./spec/tsv_schema/schema_spec.rb:12:in `block (2 levels) in <top (required)>'
126 # ./spec/tsv_schema/schema_spec.rb:34:in `block (4 levels) in <top (required)>'
127 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
128 # ./spec/support/environment_variables.rb:20:in `with'
129 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
130 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
131 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
132
133 12) racgp-profiles.tsv profiles fixture data is a valid tsv file
134 # No reason given
135 Failure/Error: column = csv_file[0][error.column - 1]
136
137 NameError:
138 undefined local variable or method `csv_file' for #<RSpec::Matchers::DSL::Matcher be_a_valid_tsv_file>
139 # ./spec/tsv_schema/schema_spec.rb:13:in `block (3 levels) in <top (required)>'
140 # ./spec/tsv_schema/schema_spec.rb:12:in `map'
141 # ./spec/tsv_schema/schema_spec.rb:12:in `block (2 levels) in <top (required)>'
142 # ./spec/tsv_schema/schema_spec.rb:34:in `block (4 levels) in <top (required)>'
143 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
144 # ./spec/support/environment_variables.rb:20:in `with'
145 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
146 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
147 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
148
149 13) cobham-profiles.tsv profiles fixture data is a valid tsv file
150 # No reason given
151 Failure/Error: column = csv_file[0][error.column - 1]
152
153 NameError:
154 undefined local variable or method `csv_file' for #<RSpec::Matchers::DSL::Matcher be_a_valid_tsv_file>
155 # ./spec/tsv_schema/schema_spec.rb:13:in `block (3 levels) in <top (required)>'
156 # ./spec/tsv_schema/schema_spec.rb:12:in `map'
157 # ./spec/tsv_schema/schema_spec.rb:12:in `block (2 levels) in <top (required)>'
158 # ./spec/tsv_schema/schema_spec.rb:34:in `block (4 levels) in <top (required)>'
159 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
160 # ./spec/support/environment_variables.rb:20:in `with'
161 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
162 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
163 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
164
165 14) bmd-profiles.tsv profiles fixture data is a valid tsv file
166 # No reason given
167 Failure/Error: column = csv_file[0][error.column - 1]
168
169 NameError:
170 undefined local variable or method `csv_file' for #<RSpec::Matchers::DSL::Matcher be_a_valid_tsv_file>
171 # ./spec/tsv_schema/schema_spec.rb:13:in `block (3 levels) in <top (required)>'
172 # ./spec/tsv_schema/schema_spec.rb:12:in `map'
173 # ./spec/tsv_schema/schema_spec.rb:12:in `block (2 levels) in <top (required)>'
174 # ./spec/tsv_schema/schema_spec.rb:34:in `block (4 levels) in <top (required)>'
175 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
176 # ./spec/support/environment_variables.rb:20:in `with'
177 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
178 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
179 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
180
181 15) vis-profiles.tsv profiles fixture data is a valid tsv file
182 # No reason given
183 Failure/Error: column = csv_file[0][error.column - 1]
184
185 NameError:
186 undefined local variable or method `csv_file' for #<RSpec::Matchers::DSL::Matcher be_a_valid_tsv_file>
187 # ./spec/tsv_schema/schema_spec.rb:13:in `block (3 levels) in <top (required)>'
188 # ./spec/tsv_schema/schema_spec.rb:12:in `map'
189 # ./spec/tsv_schema/schema_spec.rb:12:in `block (2 levels) in <top (required)>'
190 # ./spec/tsv_schema/schema_spec.rb:34:in `block (4 levels) in <top (required)>'
191 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
192 # ./spec/support/environment_variables.rb:20:in `with'
193 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
194 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
195 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
196
197 16) markinson-profiles.tsv profiles fixture data is a valid tsv file
198 # No reason given
199 Failure/Error: column = csv_file[0][error.column - 1]
200
201 NameError:
202 undefined local variable or method `csv_file' for #<RSpec::Matchers::DSL::Matcher be_a_valid_tsv_file>
203 # ./spec/tsv_schema/schema_spec.rb:13:in `block (3 levels) in <top (required)>'
204 # ./spec/tsv_schema/schema_spec.rb:12:in `map'
205 # ./spec/tsv_schema/schema_spec.rb:12:in `block (2 levels) in <top (required)>'
206 # ./spec/tsv_schema/schema_spec.rb:34:in `block (4 levels) in <top (required)>'
207 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
208 # ./spec/support/environment_variables.rb:20:in `with'
209 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
210 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
211 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
212
213Finished in 48 minutes 21 seconds (files took 34.86 seconds to load)
21411578 examples, 0 failures, 16 pending
215
216Randomized with seed 14631
217
218Coverage report generated for RSpec to /Users/micro/Develop/LocomoteProjects/travel_management_platform/coverage. 21444 / 23995 LOC (89.37%) covered.
219script/tests_tmp_modules
220+ cd vendor/tmp_modules
221+ BUNDLE_GEMFILE=Gemfile
222+ bundle install --quiet
223+ BUNDLE_GEMFILE=Gemfile
224+ bundle exec rspec
225
226Randomized with seed 40851
227................**..........................................................................................................DEPRECATION WARNING: You attempted to assign a value which is not explicitly `true` or `false` ("test") to a boolean column. Currently this value casts to `false`. This will change to match Ruby's semantics, and will cast to `true` in Rails 5. If you would like to maintain the current behavior, you should explicitly handle the values you would like cast to `false`. (called from block (3 levels) in <module:TmpModules> at /Users/micro/Develop/LocomoteProjects/travel_management_platform/vendor/tmp_modules/spec/models/tmp_modules/fbt_travel/declaration_spec.rb:9)
228.............................................................................
229
230Pending: (Failures listed here are expected and do not affect your suite's status)
231
232 1) TmpModules::TravelDetail#save conditional validations for authoriser_group and authoriser vaild when authoriser_group_id and authoriser are present should have 0 error on :authoriser
233 # TravelDetail model use User model which contain in tmp_profile part. Necessary fix the problem of dependencies.
234 Failure/Error:
235 delegate :authorise_own_travel_disabled?,
236 :requires_company_department?,
237 :allows_multiple_cost_centres?,
238 to: :workflow, prefix: true, allow_nil: true
239
240 #<Double (anonymous)> received unexpected message :requires_company_department? with (no args)
241 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-support-3.4.1/lib/rspec/support.rb:87:in `block in <module:Support>'
242 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-support-3.4.1/lib/rspec/support.rb:96:in `notify_failure'
243 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/error_generator.rb:325:in `notify'
244 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/error_generator.rb:309:in `__raise'
245 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/error_generator.rb:50:in `raise_unexpected_message_error'
246 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/proxy.rb:201:in `raise_unexpected_message_error'
247 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/test_double.rb:101:in `method_missing'
248 # /Users/micro/Develop/LocomoteProjects/travel_management_platform/vendor/tmp_modules/app/models/tmp_modules/travel_detail.rb:38:in `workflow_requires_company_department?'
249 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:432:in `block in make_lambda'
250 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:181:in `block (2 levels) in conditional'
251 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:181:in `each'
252 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:181:in `all?'
253 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:181:in `block in conditional'
254 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in `block in call'
255 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in `each'
256 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in `call'
257 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
258 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_validate_callbacks'
259 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-4.2.5.2/lib/active_model/validations.rb:399:in `run_validations!'
260 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-4.2.5.2/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!'
261 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
262 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
263 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
264 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
265 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks'
266 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-4.2.5.2/lib/active_model/validations/callbacks.rb:113:in `run_validations!'
267 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-4.2.5.2/lib/active_model/validations.rb:338:in `valid?'
268 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activerecord-4.2.5.2/lib/active_record/validations.rb:58:in `valid?'
269 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-collection_matchers-1.1.2/lib/rspec/collection_matchers/rails_extensions.rb:19:in `errors_on'
270 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-collection_matchers-1.1.2/lib/rspec/collection_matchers/have.rb:52:in `determine_collection'
271 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-collection_matchers-1.1.2/lib/rspec/collection_matchers/have.rb:28:in `matches?'
272 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
273 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
274 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
275 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/expectation_target.rb:54:in `to'
276 # /Users/micro/Develop/LocomoteProjects/travel_management_platform/vendor/tmp_modules/spec/models/tmp_modules/travel_detail_spec.rb:87:in `block (5 levels) in <module:TmpModules>'
277 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:236:in `instance_exec'
278 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:236:in `block in run'
279 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
280 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
281 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:478:in `block in run'
282 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
283 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:320:in `call'
284 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
285 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:425:in `instance_exec'
286 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:425:in `instance_exec'
287 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:389:in `execute_with'
288 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
289 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:320:in `call'
290 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
291 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:478:in `run'
292 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
293 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
294 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:233:in `run'
295 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:581:in `block in run_examples'
296 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:577:in `map'
297 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:577:in `run_examples'
298 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:543:in `run'
299 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `block in run'
300 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `map'
301 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `run'
302 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `block in run'
303 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `map'
304 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `run'
305 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `block in run'
306 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `map'
307 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `run'
308 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
309 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:119:in `map'
310 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
311 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
312 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:118:in `block in run_specs'
313 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:77:in `report'
314 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:117:in `run_specs'
315 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:93:in `run'
316 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:78:in `run'
317 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:45:in `invoke'
318 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/exe/rspec:4:in `<top (required)>'
319 # /Users/micro/.asdf/installs/ruby/2.3.1/bin/rspec:23:in `load'
320 # /Users/micro/.asdf/installs/ruby/2.3.1/bin/rspec:23:in `<top (required)>'
321 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `load'
322 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
323 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:27:in `run'
324 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli.rb:360:in `exec'
325 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
326 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
327 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
328 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli.rb:20:in `dispatch'
329 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
330 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli.rb:10:in `start'
331 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/exe/bundle:35:in `block in <top (required)>'
332 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
333 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/exe/bundle:27:in `<top (required)>'
334 # /Users/micro/.asdf/installs/ruby/2.3.1/bin/bundle:23:in `load'
335 # /Users/micro/.asdf/installs/ruby/2.3.1/bin/bundle:23:in `<main>'
336 #
337 # Showing full backtrace because every line was filtered out.
338 # See docs for RSpec::Configuration#backtrace_exclusion_patterns and
339 # RSpec::Configuration#backtrace_inclusion_patterns for more information.
340
341 2) TmpModules::TravelDetail#save conditional validations for authoriser_group and authoriser vaild when authoriser_group_id and authoriser are present should have 0 error on :authoriser_group
342 # TravelDetail model use User model which contain in tmp_profile part. Necessary fix the problem of dependencies.
343 Failure/Error:
344 delegate :authorise_own_travel_disabled?,
345 :requires_company_department?,
346 :allows_multiple_cost_centres?,
347 to: :workflow, prefix: true, allow_nil: true
348
349 #<Double (anonymous)> received unexpected message :requires_company_department? with (no args)
350 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-support-3.4.1/lib/rspec/support.rb:87:in `block in <module:Support>'
351 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-support-3.4.1/lib/rspec/support.rb:96:in `notify_failure'
352 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/error_generator.rb:325:in `notify'
353 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/error_generator.rb:309:in `__raise'
354 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/error_generator.rb:50:in `raise_unexpected_message_error'
355 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/proxy.rb:201:in `raise_unexpected_message_error'
356 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-mocks-3.4.1/lib/rspec/mocks/test_double.rb:101:in `method_missing'
357 # /Users/micro/Develop/LocomoteProjects/travel_management_platform/vendor/tmp_modules/app/models/tmp_modules/travel_detail.rb:38:in `workflow_requires_company_department?'
358 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:432:in `block in make_lambda'
359 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:181:in `block (2 levels) in conditional'
360 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:181:in `each'
361 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:181:in `all?'
362 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:181:in `block in conditional'
363 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in `block in call'
364 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in `each'
365 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in `call'
366 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
367 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_validate_callbacks'
368 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-4.2.5.2/lib/active_model/validations.rb:399:in `run_validations!'
369 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-4.2.5.2/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!'
370 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
371 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
372 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
373 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
374 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks'
375 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-4.2.5.2/lib/active_model/validations/callbacks.rb:113:in `run_validations!'
376 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-4.2.5.2/lib/active_model/validations.rb:338:in `valid?'
377 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/activerecord-4.2.5.2/lib/active_record/validations.rb:58:in `valid?'
378 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-collection_matchers-1.1.2/lib/rspec/collection_matchers/rails_extensions.rb:19:in `errors_on'
379 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-collection_matchers-1.1.2/lib/rspec/collection_matchers/have.rb:52:in `determine_collection'
380 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-collection_matchers-1.1.2/lib/rspec/collection_matchers/have.rb:28:in `matches?'
381 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
382 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
383 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
384 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/expectation_target.rb:54:in `to'
385 # /Users/micro/Develop/LocomoteProjects/travel_management_platform/vendor/tmp_modules/spec/models/tmp_modules/travel_detail_spec.rb:92:in `block (5 levels) in <module:TmpModules>'
386 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:236:in `instance_exec'
387 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:236:in `block in run'
388 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
389 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
390 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:478:in `block in run'
391 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
392 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:320:in `call'
393 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
394 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:425:in `instance_exec'
395 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:425:in `instance_exec'
396 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:389:in `execute_with'
397 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
398 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:320:in `call'
399 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
400 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/hooks.rb:478:in `run'
401 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
402 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
403 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:233:in `run'
404 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:581:in `block in run_examples'
405 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:577:in `map'
406 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:577:in `run_examples'
407 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:543:in `run'
408 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `block in run'
409 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `map'
410 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `run'
411 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `block in run'
412 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `map'
413 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `run'
414 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `block in run'
415 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `map'
416 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:544:in `run'
417 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
418 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:119:in `map'
419 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
420 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
421 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:118:in `block in run_specs'
422 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:77:in `report'
423 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:117:in `run_specs'
424 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:93:in `run'
425 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:78:in `run'
426 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:45:in `invoke'
427 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/exe/rspec:4:in `<top (required)>'
428 # /Users/micro/.asdf/installs/ruby/2.3.1/bin/rspec:23:in `load'
429 # /Users/micro/.asdf/installs/ruby/2.3.1/bin/rspec:23:in `<top (required)>'
430 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `load'
431 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
432 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:27:in `run'
433 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli.rb:360:in `exec'
434 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
435 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
436 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
437 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli.rb:20:in `dispatch'
438 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
439 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/cli.rb:10:in `start'
440 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/exe/bundle:35:in `block in <top (required)>'
441 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
442 # /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/exe/bundle:27:in `<top (required)>'
443 # /Users/micro/.asdf/installs/ruby/2.3.1/bin/bundle:23:in `load'
444 # /Users/micro/.asdf/installs/ruby/2.3.1/bin/bundle:23:in `<main>'
445 #
446 # Showing full backtrace because every line was filtered out.
447 # See docs for RSpec::Configuration#backtrace_exclusion_patterns and
448 # RSpec::Configuration#backtrace_inclusion_patterns for more information.
449
450Finished in 3.23 seconds (files took 2.8 seconds to load)
451201 examples, 0 failures, 2 pending
452
453Randomized with seed 40851
454
455Running RuboCop...
456Inspecting 2492 files
457............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
458
4592492 files inspected, no offenses detected
4600 total warnings
461Analysing code for duplication...
462 app/serializers/cbt/sso_request_body_serializer.rb:7 :: parse error on value ":" (tCOLON)
463 skipping app/serializers/cbt/sso_request_body_serializer.rb
464Total score (lower is better) = 0
465/Users/micro/.asdf/installs/ruby/2.3.1/bin/ruby -I/Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib:/Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-support-3.4.1/lib /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/exe/rspec spec/acceptance -r turnip/rspec --order default --format documentation
466
467Archived Profiles Disabled Inputs on Edit Form
468Seed test INFO - == Seeding test
469Seed test INFO - airlines - 936 records (0.7946908473968506s)
470Seed test INFO - airports - 3357 records (6.4782350063323975s)
471Seed test INFO - cars - 26 records (0.029618263244628906s)
472Seed test INFO - cities - 7135 records (8.950904846191406s)
473Seed test INFO - hotels - 326 records (0.2404489517211914s)
474Seed test INFO - special_services - 88 records (0.08694195747375488s)
475Seed test INFO - tmp_profile/loyalty_provider - 497 records (0.27045702934265137s)
476Seed test INFO - Load DFAT Country List (1.9355368614196777)
477Seed test INFO - Caching seed data to tmp/seeds/20170704111455-a859fc1c65ea360a9e157c35ebef7146.sql
478 Archived user cannot be edited
4792017-07-18 00:23:08.774 webkit_server[46723:2930320] Cannot find executable for CFBundle 0x7fef574d5cb0 </Library/Internet Plug-Ins/Disabled Plug-Ins> (not loaded)
480 Given I am signed in as a Company Admin -> When I edit an archived user -> Then all form inputs should be disabled
481
482Assigning via Groups
483 Authorisers
484 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Authorisers" in the sidebar -> Then I should see "Assign Authoriser to Groups" -> When I click on "All Employees" -> Then I should see "Assign Authoriser to Everyone in All Employees" -> And I should be able to toggle all check boxes
485 Risk Authorisers
486 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Risk Authorisers" in the sidebar -> Then I should see "Assign Risk Authoriser to Groups" -> When I click on "All Employees" -> Then I should see "Assign Risk Authoriser to Everyone in All Employees" -> And I should be able to toggle all check boxes
487 Travel Arrangers
488 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Travel Arrangers" in the sidebar within the submenu "Assign via Groups" -> Then I should see "Assign Travel Arranger to Groups" -> When I click on "All Employees" -> Then I should see "Assign Travel Arranger to Everyone in All Employees" -> And I should be able to toggle all check boxes
489
490Company Cost Centres Admin
491 Errors while creating an Company Cost Centre
492 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Cost Centres" in the sidebar -> And I click on "Create a new Company Cost Centre" -> And I click on "Save" -> Then within '.modal' I should see "Code can't be blank"
493
494Company Employee Group Admin
495 Errors while creating an Employee Group
496 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Groups" in the sidebar -> And I click on "Create a new Group" -> And I click on "Save" -> Then within '.modal' I should see "Name can't be blank"
497 Ensuring that the new group form is rendered properly in a modal window
498 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Create a new Group" -> Then within '.modal' I should see "New Employee Group"
499
500Company Office Admin
501 Company Office CRUD
502 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Offices" in the sidebar -> Then I should see "Head Office" -> When I add a new Company Office -> Then I should see a success message "Company office was successfully created." -> And I should see the list of Company Offices includes the new Company Office -> When I visit the edit page for the new Company Office -> Then I should see a form populated with the new Company Office details -> When I 'Cancel' the modal -> And I attempt to create a Company Office with an existing name -> Then within '.error-messages' I should see "Name has already been taken" -> When I 'Cancel' the modal -> And I attempt to create a Company Office with an existing code -> Then within '.error-messages' I should see "Code has already been taken" -> When I 'Cancel' the modal -> And I archive the new Company Office -> Then within "table.company_office" I should not see "Office 1" -> When I attempt to create a Company Office with an existing name -> Then within '.error-messages' I should see "Name has already been taken by an archived office"
503 Assigning Users to a Company office
504 Given I am signed in as a Company Admin -> And I am on the "admin" page -> Given A Company Office has been created -> And there is a Traveller with: -> When I click on "Offices" in the sidebar -> And I visit the details page for the existing Company Office -> And I add "Tester, Bob" to the autosuggest "Search" -> Then I should see "User has been added." -> And I should see "Tester, Bob" in the user list -> When I remove "Tester, Bob" from the autosuggest -> Then I should not see "Tester, Bob" in the user list
505 Restoring an Archived Company Office
506 Given I am signed in as a Company Admin -> And I am on the "admin" page -> Given there is an Archived Company Office named "Party Haus" -> When I click on "Offices" in the sidebar -> Then I should not see "Party Haus" -> When I click on "Archived" -> Then I should see "Party Haus" -> When I click on "Restore" -> Then I should see "Successfully restored" -> And I should see "Party Haus"
507
508Admin Company Report
509 Generating a Company Report
510 Given I am signed in as a Company Admin -> And I am on the "admin" page -> Given I have a workflow with a completed approval -> When I visit the Reporting page -> And I generate a company report -> Then I should see a success message "You will receive the requested report via email within 24 hours. For any issues please email support@locomote.com" -> And I should have received a company report email
511 Generating a FBT Report
512 Given I am signed in as a Company Admin -> And I am on the "admin" page -> Given I have a workflow with a completed approval -> When I visit the Reporting page -> And I generate a FBT report -> Then I should see a success message "You will receive the requested report via email within 24 hours. For any issues please email support@locomote.com" -> And I should have received a FBT report email
513
514User Roles Admin
515 view and show roles
516 Given I am signed in as a Company Admin -> And there is an Authoriser with: -> And I am on the "admin" page -> When I click on "Roles" in the sidebar -> And I click on "authoriser" -> Then I should see "Users in Role: authoriser" -> When I remove "Smith, Jane" from the autosuggest -> Then I should not see "Smith, Jane" in the user list -> When I add "Smith, Jane" to the autosuggest "Search" -> Then I should see "User has been added." -> And I should see "Smith, Jane" in the user list
517
518Company Terms & Conditions
519 Saving
520 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Terms & Conditions" -> When I fill in "company_terms_and_conditions_text" with "testing 1 2 3" -> And I click on "Save" -> Then I should see "testing 1 2 3" in "company_terms_and_conditions_text"
521 Cancelling
522 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Terms & Conditions" -> When I fill in "company_terms_and_conditions_text" with "testing 1 2 3" -> And I click on "Cancel" -> Then I should not see "testing 1 2 3" in "company_terms_and_conditions_text"
523
524Company Travel Doctors
525 Saving
526 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Travel Doctor" -> When I fill in "company_travel_doctor_phone" with "+61203869807" -> And I click on "Save" -> Then I should see "Travel Doctor updated successfully."
527 Cancelling
528 Given I am signed in as a Company Admin -> And I am on the "admin" page -> When I click on "Travel Doctor" -> When I fill in "company_travel_doctor_phone" with "+61203869807" -> And I click on "Cancel" -> Then I should not see "+61203869807"
529
530Company Admin Country Risk
531 Adding a Country Risk List
532 Given I am signed in as a Company Admin -> And I am on the "admin" page -> Given I am at the Country Risk Lists admin page -> When I create a new Country Risk List -> Then I should see a success message "Country risk list was successfully created."
533 Errors when adding a Country Risk List
534 Given I am signed in as a Company Admin -> And I am on the "admin" page -> Given I am at the Country Risk Lists admin page -> When I submit a new Country Risk List with errors -> Then I should see errors on the Country Risk List
535 Updating custom Country Risk List
536 Given I am signed in as a Company Admin -> And I am on the "admin" page -> Given I have an existing custom Country Risk List -> And I am at the Country Risk Lists admin page -> When I edit the existing custom Country Risk List -> Then I should see a success message "Country risk list was successfully updated."
537 Updating dfat Country Risk List
538 Given I am signed in as a Company Admin -> And I am on the "admin" page -> Given I have an existing dfat Country Risk List -> And I am at the Country Risk Lists admin page -> Then I cannot edit or delete dfat Country Risk List
539
540Admin Dashboard
541 Default Admin Dashboard
542 Given there is a Company Admin with: -> And I am signed in as the Company Admin -> Given the company setting "display admin dashboard" is disabled -> And I am on the "admin" page -> Then I should see "Welcome Albert!"
543 Admin Dashboard with Reporting
544 Given there is a Company Admin with: -> And I am signed in as the Company Admin -> Given the company setting "display admin dashboard" is enabled -> And I am on the "admin" page -> When I fill in date "company_report_form_start_date" with "01-09-2015" -> Then I should see "Authorised Bookings by Workflow"
545 Admin Dashboard with Reporting (Showing Approvals)
546 Given there is a Company Admin with: -> And I am signed in as the Company Admin -> Given the company setting "display admin dashboard" is enabled -> And there is a Traveller -> And the Traveller has an approval with state "pending_approval" -> And I am on the "admin" page -> When I fill in date "company_report_form_start_date" with "01-01-2015" -> Then I should see "Authorised Bookings by Workflow"
547
548Company Policy Group
549 Assign Policy Group to User
550 Given there is a Company Admin with: -> And I am signed in as the Company Admin -> And there is a Policy Group with: -> And I am on the "admin" page -> When I click on "Policy Groups" in the sidebar -> And I click on the Policy Group -> Then I should see "Users in Policy Group: Test policy (1234)" -> When I add "Thomas, Albert" to the autosuggest "Search" -> Then I should see a success message "User has been added." -> And I should see "Thomas, Albert" in the user list
551
552Admin Profile
553 New profile
554 Given there is a Company Admin -> And I am signed in as the Company Admin -> Given I am on the "admin" page -> When I click on "Profiles" in the sidebar -> And I click on "Add New Profile" -> Then the "Traveller" input should be checked
555 Create new profile
556 Given there is a Company Admin -> And I am signed in as the Company Admin -> Given I am on the "admin" page -> When I click on "Profiles" in the sidebar -> And I click on "Add New Profile" -> And I fill in "First Name" with "Janette" -> And I select "Ms" from "Title" -> And I fill in "Last Name" with "Travellerette" -> And I select "Head Office" from "Office (Faculty)" -> And I select "(GMT-06:00) Guadalajara" from "Preferred Time Zone" -> And I fill in "Email" with "test@test.com" -> And I fill in "Street Address" with "st. Kilda" -> And I fill in "Post Code" with "143900" -> And I fill in "Suburb / City" with "Melbourne" -> And I fill in AutoSuggest "Country" with "Australia" -> And I fill in AutoSuggest "State / Province" with "Victoria" -> And I fill in AutoSuggest "Assigned Agency Department" with "Agency Department" -> When I click on "Preferences" tab -> And I click on "Add Special Service Request" -> And I fill in AutoSuggest "Request" with "Baby Meal" within '#special_service_requests' -> And the "Comments" input should be disabled -> And I fill in AutoSuggest "Request" with "Special Meal" within '#special_service_requests' -> And I fill in "Comments" with "Special service comments" -> And I click on "Add Seat Preference" -> And I select "Window" from "user_seat_preferences_attributes__seat_type" -> And I click on "Create Profile" -> Then I should see users profile created flash
557 Edit profile disabled fields
558 Given there is a Company Admin -> And I am signed in as the Company Admin -> When I go to the "edit profile" page -> Then the "Company Admin" input should be disabled -> And the "Traveller" input should be disabled -> And the "Authoriser" input should be enabled -> And the "Risk Authoriser" input should be enabled -> And the "Travel Arranger" input should be enabled -> And the "Enable Login" input should be disabled
559 Assigned agency department should be empty when the selected agency department was archived
560 Given there is a Company Admin -> And I am signed in as the Company Admin -> Given there is a Traveller -> And there is an Agency Department named "Agency 1" -> And there is an Agency Department named "Agency 2" -> And the Traveller is managed by the "Agency 1" Agency Department -> And the "Agency 1" Agency Department is force archived -> And I am on the "admin" page -> When I click on "Profiles" in the sidebar -> And I click on the edit profile link for the Traveller -> Then I should see "" selected from "user_assigned_agency_department_id"
561 My profile should always link to Admin Profile
562 Given there is a Company Admin -> And I am signed in as the Company Admin -> Given there is a Traveller -> And I am on the "home" page -> When I switch identity to the Traveller -> And I go to the "edit profile" page -> Then I should be editing the profile of the Company Admin
563
564Admin Profile Export Status
565 ATPI Export Status
566 Given I am signed in as a Company Admin -> And there is a Traveller -> And I am on the "Admin Profiles" page -> Given the Traveller has an exported ATPI export id "atpi1" -> When I click on the edit profile link for the Traveller -> Then I should see "ATPI ID: atpi1"
567 CBT Export Status
568 Given I am signed in as a Company Admin -> And there is a Traveller -> And I am on the "Admin Profiles" page -> Given the Traveller has an exported CBT export id "cbt1" -> When I click on the edit profile link for the Traveller -> Then I should see "Travel ID: cbt1"
569 Serko Export Status
570 Given I am signed in as a Company Admin -> And there is a Traveller -> And I am on the "Admin Profiles" page -> Given the Traveller has an exported Serko export id "serko1" -> When I click on the edit profile link for the Traveller -> Then I should see "Serko ID: serko1"
571 Tramada Export Status
572 Given I am signed in as a Company Admin -> And there is a Traveller -> And I am on the "Admin Profiles" page -> Given the Traveller has an exported Tramada export id "tramada2" -> When I click on the edit profile link for the Traveller -> Then I should see "Tramada ID: tramada2"
573
574Admin Profiles List Filtering
575 Display all users by default
576 Given I am signed in as a Company Admin -> Given the Company has employees with: -> When I visit the admin "Profiles" page -> Then I should see the active tab "Active Profiles" -> And I should see "Archived Profiles" -> And I should see the profile for "George" on tab "active_profiles" -> And I should see the profile for "Janet" on tab "active_profiles"
577 Filter users by first name
578 Given I am signed in as a Company Admin -> Given the Company has employees with: -> When I visit the admin "Profiles" page -> And I filter profiles by "Name" with "Geor" on tab "active_profiles" -> Then I should see the profile for "George" on tab "active_profiles" -> And I should not see the profile for "Janet" on tab "active_profiles"
579 Filter users by last name
580 Given I am signed in as a Company Admin -> Given the Company has employees with: -> When I visit the admin "Profiles" page -> And I filter profiles by "Name" with "Tes" on tab "active_profiles" -> Then I should see the profile for "Janet" on tab "active_profiles" -> And I should not see the profile for "George" on tab "active_profiles"
581 Filter users by email
582 Given I am signed in as a Company Admin -> Given the Company has employees with: -> When I visit the admin "Profiles" page -> And I filter profiles by "Email" with "george@example" on tab "active_profiles" -> Then I should see the profile for "George" on tab "active_profiles" -> And I should not see the profile for "Janet" on tab "active_profiles"
583 Filter users by employee id
584 Given I am signed in as a Company Admin -> Given the Company has employees with: -> When I visit the admin "Profiles" page -> And I filter profiles by "Employee ID" with "4321" on tab "active_profiles" -> Then I should see the profile for "Janet" on tab "active_profiles" -> And I should not see the profile for "George" on tab "active_profiles"
585 Filter uses name by default
586 Given I am signed in as a Company Admin -> Given the Company has employees with: -> When I visit the admin "Profiles" page -> And I filter profiles with "orge" on tab "active_profiles" -> Then I should see the profile for "George" on tab "active_profiles" -> And I should not see the profile for "Janet" on tab "active_profiles"
587 Filter updates when type is changed
588 Given I am signed in as a Company Admin -> Given the Company has employees with: -> When I visit the admin "Profiles" page -> And I filter profiles with "example.com" on tab "active_profiles" -> And I change the profile filter type to "Email" on tab "active_profiles" -> Then I should see the profile for "George" on tab "active_profiles" -> And I should not see the profile for "Janet" on tab "active_profiles" -> And I should not see "Nothing found" on tab "active_profiles"
589 Display and Search archived users
590 Given I am signed in as a Company Admin -> Given the Company has employees with: -> When I visit the admin "Profiles" page -> And I click on the "archived_profiles" profiles tab -> Then I should see the active tab "Archived Profiles" -> And I should see the profile for "George" on tab "archived_profiles" -> And I should see the profile for "Janet" on tab "archived_profiles" -> When I filter profiles by "Name" with "Geor" on tab "archived_profiles" -> Then I should see the profile for "George" on tab "archived_profiles" -> And I should not see the profile for "Janet" on tab "archived_profiles"
591
592Travel Arranger Management
593 Assign Travellers to a Travel Arranger
594 Given I am signed in as a Company Admin -> And there is a Travel Arranger named "Timmy" -> And there is a Traveller with: -> And I am on the "admin" page -> When I click on "Travel Arrangers" -> Then I should see "Timmy" -> When I click on "Timmy" -> And I fill in AutoSuggest "Search & Add a Traveller to this Travel Arranger" with "Smith, Jane" searching for "Smi" -> And I click on "Add" -> And I wait for ajax requests -> Then within "tbody" I should see "Smith, Jane" -> When I sign out -> And I sign in as the Traveller -> And I go to the "edit profile" page -> And I click on "Assignments" -> Then I should see "Timmy"
595
596Company Admin Travel Reasons
597 Adding a Travel Reason
598 Given I am signed in as a Company Admin -> Given I am at the Travel Reason admin page -> When I create a new Travel Reason -> Then I should see a success message "Travel Reason was successfully created." -> And I should see the Travel Reason -> And the Travel Reason should be created
599 Updating a Travel Reason
600 Given I am signed in as a Company Admin -> Given I have an existing Travel Reason -> And I am at the Travel Reason admin page -> When I edit the existing Travel Reason -> Then I should see a success message "Travel Reason was successfully updated." -> And I should see the Travel Reason -> And the Travel Reason should be updated
601 Errors when adding a Travel Reason
602 Given I am signed in as a Company Admin -> Given I am at the Travel Reason admin page -> When I submit a new Travel Reason with errors -> Then I should see errors on the Travel Reason form
603 Disabling a Travel Reason
604 Given I am signed in as a Company Admin -> Given I have an existing Travel Reason -> And I am at the Travel Reason admin page -> When I disable existing Travel Reason -> Then I should see a success message "Successfully disabled"
605 Enabling a Travel Reason
606 Given I am signed in as a Company Admin -> Given I have an existing disabled Travel Reason -> And I am at the Travel Reason admin page -> When I enable existing Travel Reason -> Then I should see a success message "Successfully enabled"
607
608Admin with Travel Arranger role Profile List Filtering
609 Display all travellers by default and filter travellers by name
610 Given there is a Company Admin -> And the Company Admin has the Travel Arranger Role -> And I am signed in as the Company Admin -> Given the Company Admin is a travel arranger for travellers with: -> When I visit the admin "Profiles" page -> Then I should see "Managed Profiles" -> And I should see "Active Profiles" -> And I should see "Archived Profiles" -> When I click on the "managed_profiles" profiles tab -> Then I should see the active tab "Managed Profiles" -> And I should see the profile for "George" on tab "managed_profiles" -> And I should see the profile for "Janet" on tab "managed_profiles" -> When I filter profiles by "Name" with "Geor" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles" -> When I filter profiles by "Name" with "Tes" on tab "managed_profiles" -> Then I should see the profile for "Janet" on tab "managed_profiles" -> And I should not see the profile for "George" on tab "managed_profiles" -> When I filter profiles by "Email" with "george@example" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles" -> When I filter profiles by "Employee ID" with "4321" on tab "managed_profiles" -> Then I should see the profile for "Janet" on tab "managed_profiles" -> And I should not see the profile for "George" on tab "managed_profiles" -> When I filter profiles with "example.com" on tab "managed_profiles" -> And I change the profile filter type to "Email" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles"
611
612Admin Trip Notifications
613 Adding a Trip Notification
614 Given I am signed in as a Company Admin -> Given I am at the Trip Notification admin page -> When I create a new Trip Notification -> And I wait for ajax requests -> Then I should see a success message "Trip notification was successfully created." -> And I should see the Trip Notification -> And the Trip Notification should be created
615 Updating a Trip Notification
616 Given I am signed in as a Company Admin -> Given I have a existing Trip Notification -> And I am at the Trip Notification admin page -> When I edit the existing Trip Notification -> And I wait for ajax requests -> Then I should see a success message "Trip notification was successfully updated." -> And I should see the Trip Notification -> And the Trip Notification should be updated
617 Deleting a Trip Notification
618 Given I am signed in as a Company Admin -> Given I have a existing Trip Notification -> And I am at the Trip Notification admin page -> When I delete the existing Trip Notification -> And I wait for ajax requests -> Then I should not see the Trip Notification
619 Errors when adding a Trip Notification
620 Given I am signed in as a Company Admin -> Given I am at the Trip Notification admin page -> When I submit a new Trip Notification with errors -> And I wait for ajax requests -> Then I should see errors on the Trip Notification form
621
622Workflow management
623 Editing a workflow that contains trip requests
624 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And there is a workflow "Brand Spankin" with trip requests created by the Company Admin -> And I am on the "admin" page -> When I click on "Workflows" -> When I click on "Edit" for workflow "Brand Spankin" -> Then I should see an info message "This workflow is in use and it cannot be modified." -> And I should see disabled configuration and booking tool options
625 Create and edit a Default workflow for authorisers
626 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And there is a workflow "Brand Spankin" with trip requests created by the Company Admin -> And I am on the "admin" page -> When I click on "Workflows" -> When I click on "Create a new Workflow" -> And I fill in "Name" with "My New Workflow" -> Then I should not see "Prevent authorisers from approving their own travel" -> When I scroll to the module list -> And I should see module "Travel Justification" -> And I drag "Declaration" to module group "enabled" -> And I drag "Country Risk" to module group "enabled" -> And I select the values "Australia,New Zealand" from autosuggest ".travel_details_country" -> And I check employee group "Default Workflow Group" -> And I click on "Save" -> Then I should see a success message "Workflow was successfully created" -> And I should see module "Personal Details" -> And I should see module "Travel Details" -> And I should see module "Country Risk" -> And I should see module "Declaration" -> And I should not see module "International Visas" -> And I should not see module "Vaccinations" -> And I should not see module "Travel Insurance" -> And I should see employee group "Default Workflow Group" -> And within ".travel_details_country" I should see "Travel Details Country" -> And within ".travel_details_country" I should see "Australia" -> And within ".travel_details_country" I should see "New Zealand" -> And I should see employee group "Default Workflow Group" -> And I should see "Pre Trip" authorisation checked as "authoriser" -> And I should see checkbox "workflow_cost_authorisable" authorisation checked as "authoriser" -> And I should see option "Pre Trip" checked -> And I should see checkbox "workflow_cost_authorisable" checked -> And I should see option "Cost Review" unchecked -> When I click on "Workflows" -> Then I should see workflow "My New Workflow" -> When I click on "Edit" for workflow "My New Workflow" -> And I drag "International Visas" to module group "standard" -> And I uncheck employee group "Default Workflow Group" -> And I uncheck "Pre Trip" -> And I check "Cost Review" -> And I click on "Save" -> Then I should see a success message "Workflow was successfully updated" -> And I should not see module "International Visas" -> And I should not see employee group "Default" -> Then I should see option "Pre Trip" unchecked -> And I should see checkbox "workflow_cost_authorisable" checked -> And I should see option "Cost Review" checked
627 Create a Pre Trip Auth workflow
628 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And there is a workflow "Brand Spankin" with trip requests created by the Company Admin -> And I am on the "admin" page -> When I click on "Workflows" -> When I click on "Create a new Workflow" -> And I fill in "Name" with "My Pre Trip Workflow" -> And I check "Pre Trip" authorisation as "group" -> And I uncheck "workflow_cost_authorisable" -> Then I should see "Prevent authorisers from approving their own travel" -> When I check "workflow_authorise_own_travel_disabled" -> And I scroll to the module list -> And I drag "Declaration" to module group "enabled" -> And I select the values "Australia" from autosuggest ".travel_details_country" -> And I check employee group "Default Workflow Group" -> And I click on "Save" -> Then I should see a success message "Workflow was successfully created" -> And I should see option "Pre Trip" checked -> And I should see checkbox "workflow_cost_authorisable" unchecked -> And I should see "Pre Trip" authorisation checked as "group" -> And I should see checkbox "workflow_cost_authorisable" authorisation checked as "authoriser" -> And I should see checkbox "workflow_authorise_own_travel_disabled" checked -> And I should see module "Personal Details" -> And I should see module "Travel Details" -> And I should see module "Declaration" -> And within ".travel_details_country" I should see "Travel Details Country" -> And within ".travel_details_country" I should see "Australia" -> And I should see employee group "Default Workflow Group"
629 Create a Policy Only CBT workflow
630 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And there is a workflow "Brand Spankin" with trip requests created by the Company Admin -> And I am on the "admin" page -> When I click on "Workflows" -> When I click on "Create a new Workflow" -> And I fill in "Name" with "My Policy Only CBT Workflow" -> And I fill in AutoSuggest "Booking Tool" with "Locomote CBT" -> Then I should see "Ticketing Queue" -> And I should see "Credit Queue" -> And I should see "39" in "Cancellation Queue" -> When I fill in "Name" with "My Policy Only CBT Workflow" -> And I check "workflow_cost_authorisable" -> And I select autosuggest 'Cost Authorise Via Policy' from '.workflow_cost_authorisable_type' -> And I check checkbox 'workflow_cost_authorisable' authorisation as 'group' -> And I scroll to the module list -> And I drag "Declaration" to module group "enabled" -> And I select the values "Australia" from autosuggest ".travel_details_country" -> And I check employee group "Default Workflow Group" -> And I click on "Save" -> Then I should see a success message "Workflow was successfully created" -> And I should see option "Pre Trip" checked -> And I should see checkbox "workflow_cost_authorisable" checked -> And within "workflow_cost_authorisable_type" I should see disabled dropdown text "Cost Authorise Via Policy" -> And I should see "Pre Trip" authorisation checked as "authoriser" -> And I should see checkbox "workflow_cost_authorisable" authorisation checked as "group" -> And I should see module "Personal Details" -> And I should see module "Travel Details" -> And I should see module "Declaration" -> And within ".travel_details_country" I should see "Travel Details Country" -> And within ".travel_details_country" I should see "Australia" -> And I should see employee group "Default Workflow Group"
631 Create Australia / New Zealand only workflow
632 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And there is a workflow "Brand Spankin" with trip requests created by the Company Admin -> And I am on the "admin" page -> When I click on "Workflows" -> Given single page workflows are enabled -> When I click on "Create a new Workflow" -> And I fill in "Name" with "Australia / New Zealand Only Workflow" -> And I fill in AutoSuggest "Booking Tool" with "Locomote CBT" -> And I check "Australia / New Zealand Only" -> And I drag "Country Risk" to module group "enabled" -> And I click on "Save" -> Then I should see a success message "Workflow was successfully created" -> And I should see "Australia / New Zealand Only"
633 Create a workflow which allows auto approval
634 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And there is a workflow "Brand Spankin" with trip requests created by the Company Admin -> And I am on the "admin" page -> When I click on "Workflows" -> When I click on "Create a new Workflow" -> And I fill in "Name" with "Auto approval" -> And I fill in AutoSuggest "Booking Tool" with "Locomote CBT" -> Then I should see "Skip approval when booking is in policy and contains no GDS flights" -> When I uncheck "workflow_cost_authorisable" -> Then I should not see "Skip approval when booking is in policy and contains no GDS flights" -> When I check "workflow_cost_authorisable" -> And I check "Skip approval when booking is in policy and contains no GDS flights" -> And I drag "Country Risk" to module group "enabled" -> And I click on "Save" -> Then I should see a success message "Workflow was successfully created"
635 Workflow form with disabled Simplified travel diary feature
636 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And there is a workflow "Brand Spankin" with trip requests created by the Company Admin -> And I am on the "admin" page -> When I click on "Workflows" -> Given the company setting "simplified_fbt_travel_diary" is disabled -> When I click on "Create a new Workflow" -> Then I should see "premium" module "FBT Travel Diary" -> And I should not see "premium" module "Simplified FBT Travel Diary"
637 Workflow form with enabled Simplified travel diary feature
638 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And there is a workflow "Brand Spankin" with trip requests created by the Company Admin -> And I am on the "admin" page -> When I click on "Workflows" -> Given the company setting "simplified_fbt_travel_diary" is enabled -> When I click on "Create a new Workflow" -> Then I should see "premium" module "Simplified FBT Travel Diary" -> And I should not see "premium" module "FBT Travel Diary"
639
640Approximate Travel Cost Workflow Module Settings
641 Creating a new Approximate Travel Cost Module Settings
642 Given there is a Workflow "Approximate Travel Cost Workflow" with the "approximate_travel_cost" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'approximate_travel_cost' module settings for the module name 'Approximate Travel Cost Workflow' -> And I fill in "Message" with "Approximate Travel Cost description..." -> And I click on "Save" -> And I click on module settings 'approximate_travel_cost' -> Then I should see "Approximate Travel Cost description..." in "Message"
643 Updating a Approximate Travel Cost module settings
644 Given there is a Workflow "Approximate Travel Cost Workflow" with the "approximate_travel_cost" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'approximate_travel_cost' module settings for the module name 'Approximate Travel Cost Workflow' -> And I fill in "Message" with "Approximate Travel Cost updated description..." -> Then I should see "Approximate Travel Cost updated description..." in "Message"
645
646Country Risk Workflow Module Settings
647 Creating a new Country Risk Module Settings
648 Given there is a Workflow "Country Risk Workflow" with the "country_risk" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> And there is a default country risk list -> When I visit the 'country_risk' module settings for the module name 'Country Risk Workflow' -> And I select "High degree of caution" from "country_risk_risk_threshold" -> And I fill in "Message" with "Country risk description..." -> And I click on "Save" -> And I click on module settings 'country_risk' -> Then I should see "6" selected from "country_risk_risk_threshold" -> And I should see "Country risk description..." in "Message"
649 Creating a new Country Risk Module Settings with user type Country Risk List
650 Given there is a Workflow "Country Risk Workflow" with the "country_risk" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> And there is a default country risk list -> Given there is a user type Country Risk List with name "My custom Country Risk List" -> When I visit the 'country_risk' module settings for the module name 'Country Risk Workflow' -> And I select "My custom Country Risk List" from "country_risk_country_risk_list_id" -> And I select "High degree of caution" from "country_risk_risk_threshold" -> And I fill in "Message" with "Country risk description..." -> And I click on "Save" -> And I click on module settings 'country_risk' -> Then I should see the option "My custom Country Risk List" selected from "country_risk_country_risk_list_id" -> Then I should see "6" selected from "country_risk_risk_threshold" -> And I should see "Country risk description..." in "Message"
651 Updating a country risk module settings
652 Given there is a Workflow "Country Risk Workflow" with the "country_risk" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> And there is a default country risk list -> Given the country risk threshold is set to "Reconsider your need to travel" -> When I visit the 'country_risk' module settings for the module name 'Country Risk Workflow' -> And I fill in "Message" with "Country risk updated description..." -> Then I should see "4" selected from "country_risk_risk_threshold" -> And I should see "Country risk updated description..." in "Message"
653
654Declaration Workflow Module Settings
655 Creating a Requirement Item
656 Given there is a Workflow "Declaration Workflow" with the "declaration" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'declaration' module settings for the module name 'Declaration Workflow' -> And I add a requirement item -> Then I should see the created requirement item -> When I click on "Save" -> Then I should see a success message "Declaration Settings were successfully updated"
657 Updating a Requirement Item
658 Given there is a Workflow "Declaration Workflow" with the "declaration" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> Given the declaration module has a requirement item -> When I visit the 'declaration' module settings for the module name 'Declaration Workflow' -> And I update the requirement item -> Then I should see a success message "Declaration Settings were successfully updated" -> When I click on module settings 'declaration' -> Then I should see the updated requirement item
659 Removing a Requirement Item
660 Given there is a Workflow "Declaration Workflow" with the "declaration" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> Given the declaration module has a requirement item -> When I visit the 'declaration' module settings for the module name 'Declaration Workflow' -> And I delete the requirement item -> Then I should see a success message "Declaration Settings were successfully updated" -> When I click on module settings 'declaration' -> Then I should not see the requirement item
661
662Simplified Fbt Travel Diary Workflow Settings
663 Creating new Activity
664 Given there is a Workflow "Simplified Fbt Travel Diary Workflow" with selected modules: -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'simplified_fbt_travel_diary' module settings for the module name 'Simplified Fbt Travel Diary Workflow' -> And I add new activity -> And I click on "Save" -> Then I should see a success message "Simplified FBT Travel Diary Settings were successfully updated"
665 Updating a Activity
666 Given there is a Workflow "Simplified Fbt Travel Diary Workflow" with selected modules: -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'simplified_fbt_travel_diary' module settings for the module name 'Simplified Fbt Travel Diary Workflow' -> And I update the activity -> And I click on "Save" -> Then I should see a success message "Simplified FBT Travel Diary Settings were successfully updated"
667 Removing a Activity
668 Given there is a Workflow "Simplified Fbt Travel Diary Workflow" with selected modules: -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'simplified_fbt_travel_diary' module settings for the module name 'Simplified Fbt Travel Diary Workflow' -> And I delete the activity -> And I click on "Save" -> Then I should see a success message "Simplified FBT Travel Diary Settings were successfully updated"
669
670Standard Premium and Custom modules
671 Create new workflow with standard and premium modules
672 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And I am on the "admin" page -> When I click on "Workflows" -> And I click on "Create a new Workflow" -> Then I should see "Selected Modules" -> And I should see "Personal Details" within ".group.required" -> And I should see "Travel Details" within ".group.required" -> And I should see "Standard Modules" -> And I should see "Additional Information" within ".group.standard" -> And I should see "International Visas" within ".group.standard" -> And I should see "Vaccinations" within ".group.standard" -> And I should see "Premium Modules" -> And I should see "Approximate Travel Cost" within ".group.premium" -> And I should see "Travel Days" within ".group.premium" -> And I should see "Travel Requirements" within ".group.premium" -> And I should see "Custom Modules" -> And I should see "Reason for Travel" within ".group.custom"
673 Standard company can only see standard modules
674 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And I am on the "admin" page -> Given The current Company is a "standard" Pricing Tier Company -> When I click on "Workflows" -> And I click on "Create a new Workflow" -> Then I should see "Selected Modules" -> And I should see "Personal Details" within ".group.required" -> And I should see "Travel Details" within ".group.required" -> And I should see "Standard Modules" -> And I should see "Additional Information" within ".group.standard" -> And I should see "International Visas" within ".group.standard" -> And I should see "Vaccinations" within ".group.standard" -> And I should not see "Premium Modules" -> And I should not see "Custom Modules"
675 Premium company will see warning message when useing more than 3 premium modules
676 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And I am on the "admin" page -> Given The current Company is a "premium" Pricing Tier Company -> When I click on "Workflows" -> And I click on "Create a new Workflow" -> And I resize my browser window to "2000" width and "2000" height -> And I fill in "Name" with "My New Workflow" -> Then I should see "Premium Modules" -> When I scroll to the module list -> And I drag "Travel Destinations" to module group "enabled" -> And I drag "Travel Justification" to module group "enabled" -> And I drag "Travel Days" to module group "enabled" -> Then I should not see "Your premium account ONLY allows 3 premium modules" -> When I drag "FBT Travel Diary" to module group "enabled" -> Then I should see "Your premium account ONLY allows 3 premium modules" -> And I click on "Save" -> Then I should see a success message "Workflow was successfully created" -> And I should see "My New Workflow" -> And I should see "Your premium account ONLY allows 3 premium modules" -> When I click on "Edit" -> Then I should see "Edit Workflow" -> And I should see "Your premium account ONLY allows 3 premium modules"
677 Premium plus company will not see warning message when useing more than 3 premium modules
678 Given there is a Company Admin -> And there is a traveller group named "Default Workflow Group" -> And I am signed in as the Company Admin -> And I am on the "admin" page -> Given The current Company is a "premium_plus" Pricing Tier Company -> When I click on "Workflows" -> And I click on "Create a new Workflow" -> And I resize my browser window to "2000" width and "2000" height -> And I fill in "Name" with "My New Workflow" -> Then I should see "Premium Modules" -> When I scroll to the module list -> And I drag "Travel Destinations" to module group "enabled" -> And I drag "Travel Justification" to module group "enabled" -> And I drag "Travel Days" to module group "enabled" -> When I drag "FBT Travel Diary" to module group "enabled" -> Then I should not see "Your premium account ONLY allows 3 premium modules" -> When I click on "Save" -> Then I should see a success message "Workflow was successfully created" -> And I should see "My New Workflow" -> And I should not see "Your premium account ONLY allows 3 premium modules" -> When I click on "Edit" -> Then I should see "Edit Workflow" -> And I should not see "Your premium account ONLY allows 3 premium modules"
679
680Travel Days Workflow Module Settings
681 Creating a new Travel Days Module Settings
682 Given there is a Workflow "Travel Days Workflow" with the "travel_days" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'travel_days' module settings for the module name 'Travel Days Workflow' -> And I fill in "Message" with "This is my Travel Days warning message" -> And I click on "Save" -> And I click on module settings 'travel_days' -> Then I should see "This is my Travel Days warning message" in "Message"
683 Updating a Travel Days module settings
684 Given there is a Workflow "Travel Days Workflow" with the "travel_days" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> Given the travel days message is set to "This is a message persisted to the database" -> When I visit the 'travel_days' module settings for the module name 'Travel Days Workflow' -> Then I should see "This is a message persisted to the database" in "Message"
685 Default Travel Days Message
686 Given there is a Workflow "Travel Days Workflow" with the "travel_days" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'travel_days' module settings for the module name 'Travel Days Workflow' -> Then I should see the message field displaying the placeholder message
687
688Travel Reason Workflow Module Settings
689 Selecting a Subset of Travel Reasons
690 Given there is a Workflow "Travel Reason Workflow" with the "travel_reason" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'travel_reason' module settings for the module name 'Travel Reason Workflow' -> And I select a subset of travel reasons -> And I click on "Save" -> Then I should see a success message "Reason for Travel Settings were successfully updated" -> When I visit the 'travel_reason' module settings for the module name 'Travel Reason Workflow' -> Then I should see my selected travel reasons
691
692Travel Requirements Workflow Module Settings
693 Creating a Travel Requirement Type
694 Given there is a Workflow "Travel Requirements Workflow" with the "travel_requirements" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'travel_requirements' module settings for the module name 'Travel Requirements Workflow' -> And I add a travel requirement type -> Then I should see the created travel requirement type -> When I click on "Save" -> Then I should see a success message "Travel Requirements Settings were successfully updated"
695 Updating a Travel Requirement Type
696 Given there is a Workflow "Travel Requirements Workflow" with the "travel_requirements" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> Given the travel requirements module has a travel requirement type -> When I visit the 'travel_requirements' module settings for the module name 'Travel Requirements Workflow' -> And I update the travel requirement type -> Then I should see a success message "Travel Requirements Settings were successfully updated" -> When I click on module settings 'travel_requirements' -> Then I should see the updated travel requirement type
697 Removing a Travel Requirement Type
698 Given there is a Workflow "Travel Requirements Workflow" with the "travel_requirements" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> Given the travel requirements module has a travel requirement type -> When I visit the 'travel_requirements' module settings for the module name 'Travel Requirements Workflow' -> And I delete the travel requirement type -> Then I should see a success message "Travel Requirements Settings were successfully updated" -> When I click on module settings 'travel_requirements' -> Then I should not see the travel requirement type
699 Inline errors when creating a Travel Requirement Type
700 Given there is a Workflow "Travel Requirements Workflow" with the "travel_requirements" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> When I visit the 'travel_requirements' module settings for the module name 'Travel Requirements Workflow' -> And I click on "Add Item" -> And I click on "Save" -> Then I should see "can't be blank" -> And I should see "is not included in the list"
701 Inline errors when updating a Travel Requirement Type
702 Given there is a Workflow "Travel Requirements Workflow" with the "travel_requirements" module -> And I am signed in as a Company Admin -> And I am on the "admin" page -> Given the travel requirements module has a travel requirement type -> When I visit the 'travel_requirements' module settings for the module name 'Travel Requirements Workflow' -> And I select "Select an option" from "travel_requirements_travel_requirement_types_attributes_0_actionable_by" -> And I click on "Save" -> Then within '.page-header' I should see "Travel Requirements" -> And I should see "is not included in the list"
703
704Approval Message Direct Replies
705 Replying to a stakeholder email
706 Given there is an approval with approval stakeholders -> And an approval message has been sent to a stakeholder -> When I reply to the email -> Then I should have added an approval message
707 Replying to a agency department email
708 Given there is an approval with approval stakeholders -> And an approval message has been sent to a agency department -> When I reply to the email -> Then I should have added an approval message
709 Replying to an agent
710 Given there is an approval with approval stakeholders -> And an approval message from a tmc has been sent to a stakeholder -> When I reply to the email -> Then I should have added an approval message to the agency department
711 Replying to a stakeholder email sent to multiple recipients
712 Given there is an approval with approval stakeholders -> And an approval message has been sent to me and another stakeholder -> When I reply to the email -> Then I should have added an approval message to the other stakeholder
713
714Sending Messages
715 Associated Message Recipients
716 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an assigned Risk Authoriser -> And the Traveller has an assigned Travel Arranger -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_approval" -> Given I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Messages" -> Then I should be able to send a message to the Authoriser -> And I should be able to send a message to the Risk Authoriser -> And I should be able to send a message to the Travel Arranger -> And I should be able to send a message to the Agency Department
717 Sending a message to the Authoriser sets the Authoriser as the Default Recipient
718 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an assigned Risk Authoriser -> And the Traveller has an assigned Travel Arranger -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_approval" -> Given I am signed in as the Travel Arranger -> When I switch identity to the Traveller -> And I display all personal trips for the Traveller -> And I click on the last created approval -> And I click on "Messages" -> And I send a message to the Authoriser -> And I sign out -> When I sign in as the Traveller -> And I click on the last created approval -> And I click on "Messages" -> Then I should see the Authoriser as a default recipient
719 Sending a message to the Agency Consultant sets the Agency Consultant as the Default Recipient
720 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an assigned Risk Authoriser -> And the Traveller has an assigned Travel Arranger -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_approval" -> Given I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Messages" -> And I send a message to the Agency Department -> And I sign out -> When I sign in as the TMC Consultant -> And I click on the last created approval -> And I click on "Messages" -> Then I should see the Agency Department as a default recipient
721
722Approval ChangeLog
723 Changelog after updating a Completed Approval
724 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an approval with state "pending_itinerary" -> And the approval was completed by the Traveller with a "traveller" role -> And there is a travel reason with name "My New Travel Reason" that requires a comment -> And I am signed in as the Traveller -> When I click on the last created approval -> And I begin editing the current completed approval -> And I choose the travel reason that requires a comment -> And I fill in "travel_reason_other" with "My Real Reason" -> And I click the trip "Continue" button -> And I click the trip "Submit" button -> And I visit the current approval messages -> Then I should see that the Traveller has changed "Reason for Travel" to "My New Travel Reason -> My Real Reason"
725
726Booking a Trip
727 Book Trip
728I, [2017-07-18T00:26:55.111129 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
729 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_booking" -> And I am signed in as the TMC Consultant -> When I mark the trip request as booked -> Then I should see a message "has been booked"
730
731Approval Cancellation
732 Cancelling a ticketed Approval by traveller
733 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has an approval with state "trip_booked" -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Cancel Trip" -> And I choose "Proceed anyway" -> And I click on "Send Message" -> And I fill in "Message" with "Cant go, Grandmother being exhumed for police investigation" -> And I click on "Confirm Cancellation" -> Then I should see "Your travel request has been cancelled" within a modal -> When I "Submit" the modal -> Then I should see "TRIP CANCELLED" -> When I click on the last created approval -> Then I should see "cancelled" -> Then I will not see a "Request Change" link
734 Cancelling a non-ticketed Approval by traveller
735 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has an approval with state "pending_itinerary" -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Cancel Trip" -> And I fill in "Message" with "Cant go, Grandmother being exhumed for police investigation" -> And I click on "Confirm Cancellation" -> Then I should see "Your travel request has been cancelled" within a modal -> When I "Submit" the modal -> Then I should see "TRIP CANCELLED" -> When I click on the last created approval -> Then I should see "cancelled" -> Then I will not see a "Request Change" link
736 Cancelling an CBT Approval by traveller
737 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the "Cbt::CancellationQueueJob" is performed later -> And the Traveller has a cbt approval with approved itinerary -> And I am signed in as the Traveller -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I click on the last created approval -> And I click on "Cancel Trip" -> And I choose "Proceed anyway" -> And I click on "Send Message" -> And I fill in "Message" with "Cant go, Grandmother being exhumed for police investigation" -> And I click on "Confirm Cancellation" -> Then I should see "Your travel request has been cancelled" within a modal -> When I "Submit" the modal -> Then a cancel CBT itinerary quote job has been enqueued -> When I click on the last created approval -> Then I should see "cancelled" -> Then I will not see a "Request Change" link
738 Cancelling an Approval by tmc
739 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has an approval with state "pending_itinerary" -> And the Traveller is managed by a TMC Consultant -> And I am signed in as the TMC Consultant -> When I click on the last created approval -> And I click on "Cancel Trip" -> And I fill in "Message" with "Emergency reasons, cancelling the trip" -> And I click on "Confirm Cancellation" -> Then I should see "Trip request has been cancelled" within a modal -> When I "Submit" the modal -> Then I should see "TRIP CANCELLED" -> When I click on the last created approval -> Then I should see "cancelled" -> Then I will not see a "Request Change" link
740 Requesting an Approval cancellation fees by Traveller
741 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has an approval with state "trip_booked", uid "TMP-UID" and title "Approval title" -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Cancel Trip" -> And I choose "Request cancellation costs" -> And I click on "Send Message" -> Then I should see "Your message has been sent to a travel agent. They will be in contact with you shortly." within a modal -> And the Agency Department should have received a request fees email for an approval_uid "TMP-UID" -> When I "Submit" the modal -> Then I should not see "TRIP CANCELLED" -> When I click on the last created approval -> Then I will not see a "Request Change" link -> When I click on "Messages" -> Then I should see 'Agency Department' -> And I should see 'Could you please advise of any cancellation costs for this trip?'
742
743Edit Approval
744 Edit Approval
745 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "quote_issued" -> And the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Back to Trip Details" -> And I click the trip 'Edit' button -> Then I should see 'Request Change'
746 edit and submit a quote issued trip without any itinerary change
747 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "quote_issued" -> And the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Back to Trip Details" -> And I click the trip 'Edit' button -> And I click the trip 'Continue' button -> And I fill out International Visa -> And I fill out Declaration -> And I click the trip "Submit" button -> Then I should see an approval splash message "Your travel request has been updated"
748 edit and submit a quote issued trip with travel reason change
749 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "quote_issued" -> And the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Back to Trip Details" -> And I click the trip 'Edit' button -> And I choose the travel reason to be 'Board Meeting' -> And I choose the cost centre to be 'Marketing' -> And I click the trip 'Continue' button -> And I fill out International Visa -> And I fill out Declaration -> And I click the trip "Submit" button -> Then I should see an approval splash message "Your travel request has been updated"
750 Edit an Approval outside from Agency Branch working hours
751 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "quote_issued" -> And the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> Given there is Agency Branch not in working hours with warning message "WARNING!" -> When I click on the last created approval -> And I click on "Back to Trip Details" -> And I click the trip 'Edit' button -> Then I should see an danger message "WARNING!" -> When I click the trip 'Continue' button -> Then I should see an danger message "WARNING!"
752 Edit an Approval in Agency Branch working hours
753 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "quote_issued" -> And the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> Given there is Agency Branch in working hours -> When I click on the last created approval -> And I click on "Back to Trip Details" -> And I click the trip 'Edit' button -> Then I should not see any danger message
754 Edit an Approval disabled Agency Branch working hours
755 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "quote_issued" -> And the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> Given there is Agency Branch with disabled working hours -> When I click on the last created approval -> And I click on "Back to Trip Details" -> And I click the trip 'Edit' button -> Then I should not see any danger message
756
757Cost Approval CBT Workflow Traveller Steps
758 Forwarding CBT Trip to a Consultant
759I, [2017-07-18T00:27:41.442624 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
760I, [2017-07-18T00:27:42.770566 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
761 Given feature allow tmc forwarding enabled -> And single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> And the CBT Tool is loaded -> Then I will see a "send a request to your travel consultant" link -> When I click on 'send a request to your travel consultant' -> Then I should see the Forward to TMC dialog -> When I forward my approval to the TMC -> Then I should see a successfully forwarded to tmc message -> And the Agency Department should have received a 'pending_itinerary' email
762 Fowarding CBT trip to a Consultant will not display on mobile
763I, [2017-07-18T00:27:47.871828 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
764 Given feature allow tmc forwarding enabled -> And single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> And the CBT Tool is loaded -> And I resize my browser window to "767" width and "767" height -> Then I will not see a "send a request to your travel consultant" link
765
766Warning Display for an Incomplete Profile
767 Creating a new Approval with no Group Authorisation
768 Given there is a Traveller -> And the Traveller is in group "All Employees" -> Given there is a workflow "General Workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And I am signed in as the Traveller -> Then I should see a disabled "General Workflow" workflow button
769 Creating a new Approval with Pre Authorisation by Group
770 Given there is a Traveller -> And the Traveller is in group "All Employees" -> Given there is a pre authoriser group workflow "Pre Group Workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And I am signed in as the Traveller -> Then I should see a disabled "Pre Group Workflow" workflow button
771 Creating a new Approval with Cost Authorisation by Group
772 Given there is a Traveller -> And the Traveller is in group "All Employees" -> Given there is a cost authoriser group workflow "Cost Group Workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And I am signed in as the Traveller -> Then I should see a disabled "Cost Group Workflow" workflow button
773 Creating a new Approval with a assigned TMC
774 Given there is a Traveller -> And the Traveller is in group "All Employees" -> Given there is a workflow "General Workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And the Traveller is managed by a TMC Consultant -> And I am signed in as the Traveller -> Then I should see a disabled "General Workflow" workflow button
775
776Incomplete Trip Request Review
777 Completing Trip Details and saving as a Draft
778 Given there is a Traveller -> And there is a Travel Reason with name "Business Trip" -> And there is a Workflow named "Example Workflow" -> And the Workflow is allocated the "All Employees" group -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Example Workflow" -> And I fill in the trip title with "Happy Happy Travellers" -> And I complete the initial flight segment with: -> And I click on "Save as Draft" -> And I "Close" the modal -> Then I should see "Happy Happy Travellers" -> And I should see "SAVED"
779
780Itineraries Page for Authoriser
781 Viewing Passports and Frequent Flyer Points for a Itinerary Quote
782 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "quote_issued" -> And the Traveller has a passport and loyalty memberships -> Given I am signed in as the Authoriser -> When I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> And I click on "Quotes" -> And I click on "More" -> Then I should see "Passports" -> And I should see "Frequent Flyer Points"
783 Viewing CBT Itinerary Quotes without CBT SSO access
784 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "quote_issued" -> And the Traveller has a passport and loyalty memberships -> Given the approval has a cbt itinerary quote -> And the Traveller does not have CBT SSO access -> And I am signed in as the Authoriser -> When I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> And I click on "Quotes" -> Then I should see a warning message "Please contact your Administrator in order to view all Itinerary Quotes" -> And I should see "Quotes"
785 Viewing CBT Itinerary Quotes with CBT SSO access
786 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "quote_issued" -> And the Traveller has a passport and loyalty memberships -> Given the approval has a cbt itinerary quote -> And the Traveller has CBT SSO access -> And the Authoriser has CBT SSO access -> And I am signed in as the Authoriser -> When I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> And I click on "Quotes" -> Then I should not see "Please contact your Administrator in order to view all Itinerary Quotes" -> And I should see "Quotes"
787
788Itineraries Page for TMC
789 Validation messages on Quotes upload
790 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has a passport and loyalty memberships -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_itinerary" -> Given I am signed in as the TMC Consultant -> When I click on the last created approval -> And I click on "Quotes" -> Then I should see "Quotes" -> When I click on 'Submit Quotes' -> Then I should not see 'Itinerary Uploaded' -> And I should see an attachment errors notification -> And I should see "must be greater than 0" -> And I should see "Date can't be blank" -> And I should see "Time can't be blank"
791 Hide upload button while last form removed
792 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has a passport and loyalty memberships -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_itinerary" -> Given I am signed in as the TMC Consultant -> When I click on the last created approval -> And I click on "Quotes" -> Then I should see "Quotes" -> When I remove form from 'itinerary-upload' -> Then I should not see 'Submit Quotes'
793 Uploading and Viewing a Quote
794 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has a passport and loyalty memberships -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_itinerary" -> Given I am signed in as the TMC Consultant -> When I click on the last created approval -> And I click on "Quotes" -> Then I should see "Quotes" -> When I fill in 'Comments' with 'test comment' -> And I fill in 'Total cost' with '1000.0' -> And I date-pick in 'Authorisation Deadline' 1 days in the future -> And I fill in the timepicker with '05:00 PM' -> And I upload a quote pdf -> And I click on 'Submit Quotes' -> Then I should see a success message 'Itinerary Uploaded' -> And I should see 'test comment' -> And I should see 'AUD1,000.0' -> And I should see tomorrow at '05:00 PM'
795 Viewing An Approved Quote
796 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has a passport and loyalty memberships -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_itinerary" -> Given I am signed in as the TMC Consultant -> And the last created approval has an approved itinerary -> When I click on the last created approval -> And I click on "Quotes" -> Then I should see "Quotes" -> And I should see an approved itinerary quote
797 Viewing CBT Itinerary Quotes without CBT SSO access (a TMC does not have a traveller role)
798 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has a passport and loyalty memberships -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_itinerary" -> Given the approval has a cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I click on the last created approval -> And I click on "Quotes" -> Then I should not see "Please contact your Administrator in order to view all Itinerary Quotes"
799
800Itineraries Page for Traveller
801 Viewing CBT Itinerary Quotes in a modal window
802 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an approval with state "quote_issued" -> And the Traveller has a passport and loyalty memberships -> Given the Traveller has CBT SSO access -> And the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Quotes" -> And I click on "View" -> Then I should see an iframe inside of the itinerary modal body
803 Viewing Travel Details and Open Message Dialog
804 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an approval with state "quote_issued" -> And the Traveller has a passport and loyalty memberships -> Given the Traveller has CBT SSO access -> And the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Trip Details" -> Then I should see "Travel Details" -> When I click on "Request Change" -> Then I should see "Your itinerary segments can only be edited by a travel consultant. You can request changes via your trip’s messages page" within a modal -> When I "Cancel" the modal -> And I click on "Request Change" -> And I click on "Continue" -> Then I should see "Agency Department"
805 Viewing Travel Details when approval have a Itinerary
806 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an approval with state "quote_issued" -> And the Traveller has a passport and loyalty memberships -> Given the Traveller has CBT SSO access -> And the company setting "live_itinerary_service" is enabled -> And the approval has a cbt itinerary quote -> And the approval has Insight's UUID -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Trip Details" -> Then I should see "Travel Details" -> And I should not lookup "#module-travel-details .segment"
807 Viewing Itineary and Open Message Dialog
808 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an approval with state "quote_issued" -> And the Traveller has a passport and loyalty memberships -> Given the Traveller has CBT SSO access -> And the company setting "live_itinerary_service" is enabled -> And the approval has a cbt itinerary quote -> And the approval has Insight's UUID -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Itinerary" -> Then I should see "Request Change" -> When I click on "Request Change" -> Then I should see "Your itinerary segments can only be edited by a travel consultant. You can request changes via your trip’s messages page" within a modal -> When I "Cancel" the modal -> And I click on "Request Change" -> And I click on "Continue" -> Then I should see "Agency Department"
809 Editing Travel Details and Open Message Dialog
810 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an approval with state "quote_issued" -> And the Traveller has a passport and loyalty memberships -> Given the Traveller has CBT SSO access -> And the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Trip Details" -> And I click on "Edit Trip" -> Then I should see "Travel Details" -> When I click on "Request Change" -> Then I should see "Your itinerary segments can only be edited by a travel consultant. You can request changes via your trip’s messages page" within a modal -> When I "Cancel" the modal -> And I click on "Request Change" -> And I click on "Continue" -> Then I should see "Agency Department"
811
812Notify multiple travel arrangers if they are involved in a trip creation
813 Notify Arranger 1 and Arranger 2 about uploaded TMC quotes
814I, [2017-07-18T00:28:49.606047 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
815 Given there is a workflow 'MEL -> SYD' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there are travel reasons named: -> And there is a Traveller with: -> And "Jane" is in group "All Employees" -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an assigned Authoriser -> And there is a Travel Arranger named "Bert" -> And there is a Travel Arranger named "Ernie" -> And "Bert" is assigned to "Jane" as a "travel_arranger" -> And "Ernie" is assigned to "Jane" as a "travel_arranger" -> Given I am signed in as "Bert" -> When I switch identity to the Traveller -> And I click on "MEL -> SYD" -> And I fill in "approval_title" with "Domestic Multiple Travel Arrangers" -> And I complete the initial flight segment with: -> And I click the trip 'Continue' button -> And I fill out International Visa -> And I click the trip "Submit" button -> Then I should see 'trip has been submitted' -> And I set the current approval to the Approval with title 'Domestic Multiple Travel Arrangers' -> And the owner should have received a 'trip_submitted' email -> And the travel arrangers should have received a 'trip_submitted' email -> And the Agency Department should have received a 'pending_itinerary' email -> When I sign out -> Given I am signed in as "Ernie" -> When I switch identity to the Traveller -> And I click on the new approval -> And I click on 'Trip Details' -> And I click the trip 'Edit Trip' button -> And I click the trip 'Continue' button -> And I fill out International Visa -> And I click the trip "Submit" button -> Then I should see 'trip request has been updated' -> And the owner should have received a 'trip_updated' email -> And the travel arrangers should have received a 'trip_updated' email -> When I sign out -> Given I am signed in as the TMC Consultant -> When I go to the "home" page -> And I click on the new approval -> And I upload an Itinerary Quote -> Then I should see a success message 'Itinerary for Jane Smith has been submitted for approval' -> And the travel arrangers should have received a 'quote_issued' email -> And the all cost authorisers should have received a 'quote_issued' email
816
817Out of Working Hours Warning Message for CBT Booking Tool
818 Creating an Approval with CBT Booking Tool
819I, [2017-07-18T00:29:08.582869 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
820 Given there is a cbt workflow "Example Workflow" for traveller group "All Employees" -> And there is a Traveller -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> Given there is Agency Branch not in working hours with warning message "WARNING!" -> And single page workflows are disabled -> When I click on "Example Workflow" -> Then I should see an danger message "WARNING!" -> When I fill in the first page with a flight from Melbourne to London -> And I click on "Continue" -> Then I should see an danger message "WARNING!" -> When I fill in the international_visas module without any visa warnings -> And I click on "Continue" -> Then I should see an danger message "WARNING!"
821 Creating an Approval with a Single Page CBT Booking Tool
822 Given there is a cbt workflow "Example Workflow" for traveller group "All Employees" -> And there is a Traveller -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> Given there is Agency Branch not in working hours with warning message "WARNING!" -> And single page workflows are enabled -> When I click on "Example Workflow" -> Then I should see an danger message "WARNING!"
823
824Approval review for all authorisers
825 Viewing and declining the approval
826 Given there is a Workflow with selected modules: -> And there is a Traveller with: -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "pending_approval" -> Given I am signed in as the Authoriser -> When I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> Then I should see the following modules: -> And I should see "Cost Centre: HQ" -> And I should see "Department: N/A" -> And I should see disabled inputs within ".approvals-modules" -> When I click on "Decline Travel" -> And I fill in "Message" with "You ain't goin nowhere!!!" -> And I click on "Submit" -> Then I should see a success message "Request for Jane Smith has been declined!"
827 Viewing and declining the approval which has shared trip request
828 Given there is a Workflow with selected modules: -> And there is a Traveller with: -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "pending_approval" -> Given last created approval has shared trip request -> When I sign in as the Authoriser -> And I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> Then I should see the following modules:
829 Ensuring that the modal body renders properly the 2nd time after Close has been pressed
830 Given there is a Workflow with selected modules: -> And there is a Traveller with: -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "pending_approval" -> Given I am signed in as the Authoriser -> When I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> And I click on "Decline Travel" -> And I click on "Close" -> And I click on "Decline Travel" -> Then I should see a textarea inside of the modal body
831 Viewing the approval with not split cost centers
832 Given there is a Workflow with selected modules: -> And there is a Traveller with: -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "pending_approval" -> Given I am signed in as the Authoriser -> When I select 'Awaiting Authorisation' tab -> And last created approval have not split cost centers -> And I click on the last created approval -> Then I should see "Cost Centre: Name #1 ( CC1 )"
833
834Approval with deleted records
835 Deleted cost centre & authoriser group
836 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "pending_approval" -> And the last created approval has a deleted cost centre -> And the last created approval has a deleted authoriser group named "Crimson Dynamo" -> And I am signed in as the Traveller -> When I click on the last created approval -> Then I should see "HQ" -> And I should see "Crimson Dynamo"
837
838Approval Saving & Loading
839 Save the draft without flight segment
840 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And there are travel reasons named: -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> When I fill in the trip title -> And I click the trip "Save as Draft" button -> Then I should see "Your travel request has been saved" within a modal -> When I "Close" the modal -> And I click on the new approval -> Then I should see "Trip ID"
841 Save from the first page
842 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And there are travel reasons named: -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> When I fill in the trip title -> And I complete the initial flight segment with: -> And I click the trip "Save as Draft" button -> Then I should see "Your travel request has been saved" within a modal
843 Navigating to the previous page
844 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And there are travel reasons named: -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> When I fill in the trip title -> And I complete the initial flight segment with: -> And I click the trip 'Continue' button -> And I click on 'Previous Page' -> Then I should be on the approval's start page
845 Save from the second page and complete
846 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And there are travel reasons named: -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> When I fill in the trip title -> And I complete the initial flight segment with: -> And I click the trip 'Continue' button -> When I click the trip "Submit" button -> Then I should be notified of missing a mandatory field -> And I should not see "Changing your trip will require re-approval" -> When I click the trip "Save as Draft" button -> Then I should see "Your travel request has been saved" within a modal -> When I "Close" the modal -> And I click on the new approval -> And I click the trip 'Edit' button -> Then I should not see "Changing your trip will require re-approval" -> When I click the trip 'Continue' button -> And I fill out Vaccinations -> And I fill out International Visa -> And I fill out Declaration -> And I click the trip "Submit" button -> When I click on "Review Trip" -> When I click the trip 'Edit' button -> Then I should see a warning message "Changing your trip will require re-approval" -> When I click on "Continue Editing" -> Then I should see initialised fields within "flight" segment "1" -> And I should see "Alice in Wonderland" -> And I should not see "Save as Draft" -> When I click the trip 'Continue' button -> Then I should not see "Save as Draft" -> And I should not see "Changing your trip will require re-approval" -> When I uncheck "I agree with" -> And I click the trip "Submit" button -> Then I should be notified of missing a mandatory field -> When I check "I agree with" -> And I click the trip "Submit" button -> Then I should see an approval splash message "Your travel request has been updated"
847 Save the draft with partial segment
848 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And there are travel reasons named: -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> When I fill in "approval_title" with "Save as Draft with Partial Segments" -> Given I have started the initial flight segment with -> When I click the trip "Save as Draft" button -> Then I should see "Your travel request has been saved" within a modal -> When I "Close" the modal -> And I select an approval with title "Save as Draft with Partial Segments" -> Then the approval should not have segments
849 Save the draft with an invalid title
850 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And there are travel reasons named: -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> When I fill in "approval_title" with "John Thompson Fremantle Australia Plant Pathol Conference Nematology Field Trip, Pulse Pathol Workshop. USQ ‘The Light Fantastic - The science & Technology of Light’ event - 19 August 2015. To minimise the risk, keep the 1 line design. If the text is longer than 1 line, the extra part will be hidden." -> And I complete the initial flight segment with: -> And I click the trip 'Continue' button -> Then I should see an error message "Title is too long (maximum is 255 characters)"
851
852CBT Workflow - Approval Saving & Loading
853 Save the draft with incomplete details
854 Given there is a cbt workflow "CBT Workflow" for traveller group "All Employees" -> And there is a Traveller -> And there are travel reasons named: -> And the Traveller is in group "All Employees" -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> Given I have searched for a cbt travel request -> When I fill in the trip title -> And I click the trip "Save as Draft" button -> Then I should see "Your travel request has been saved" within a modal -> When I "Close" the modal -> And I click on the new approval -> Then I should see "Trip ID"
855 Load the approval and complete
856I, [2017-07-18T00:30:13.961812 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
857 Given there is a cbt workflow "CBT Workflow" for traveller group "All Employees" -> And there is a Traveller -> And there are travel reasons named: -> And the Traveller is in group "All Employees" -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> Given I have searched for a cbt travel request -> When I fill in the trip title -> And I fill in AutoSuggest "Reason for Travel" with "Board Meeting" -> And I fill in AutoSuggest "Cost Centre" with "Sales" -> And I click on "Continue" -> And I fill out International Visa -> And I click the trip "Continue" button -> Then I should see the CBT Booking Tool
858
859Approval Saving Templates
860 Save Template
861 Given there is a Traveller -> And there is a workflow "International Trip" with a set of modules -> And there are travel reasons named: -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "International Trip" -> And I complete the initial flight segment with: -> When I click on "Template" within ".approval-template-selector" -> And I click on "Save as Template" -> And I click on "Save" within ".new_approval_template" -> Then I should see a message "Name is too short" -> When I fill in "approval_template_name" with "Example Template" -> And I click on "Save" within ".new_approval_template" -> Then I should see a message "Trip Template has been saved" -> And I should see "Example Template" -> And I should see "MEL - Melbourne Airport, Melbourne, Australia" in "From" within "flight" segment "1" -> And I should see "SYD - Sydney Airport, Sydney, Australia" in "To" within "flight" segment "1" -> And I should see "Finance" in AutoSuggest "Cost Centre" -> When I click the trip 'Continue' button -> Then I should not see button "Save Template"
862
863Edit Approval for Single Page Workflow
864 edit trip without active quote
865 Given there is a cbt workflow "CBT Workflow" for traveller group "All Employees" -> And there is a Traveller -> And the Traveller has CBT SSO access -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "quote_issued" -> And the company setting 'single_page_cbt_bookings' is enabled -> Given the approval has a canceled cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Back to Trip Details" -> And I click the trip 'Edit' button -> Then I should see '< Edit Trip'
866 edit trip with active quote
867 Given there is a cbt workflow "CBT Workflow" for traveller group "All Employees" -> And there is a Traveller -> And the Traveller has CBT SSO access -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "quote_issued" -> And the company setting 'single_page_cbt_bookings' is enabled -> Given the approval has a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Back to Trip Details" -> And I click the trip 'Edit' button -> Then I should not see '< Edit Trip'
868
869Workflow Modules Submission
870 Filling in and Submitting all Travel Modules
871 Given there is an anz company -> And there are travel reasons named: -> And a traveller exists for the company -> And the Traveller belongs to a workflow "ANZ Module Submission" with selected modules: -> Given I am signed in as the Traveller -> When I click on "ANZ Module Submission" -> And I fill in the first page with a flight from Melbourne to London -> And I click on "Continue" -> And I fill in the second page -> And I click on "Submit" -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval" -> When I click on "Review Trip" -> Then I should see all second page modules
872 Completing Page 2 after correcting errors
873 Given there is an anz company -> And there are travel reasons named: -> And a traveller exists for the company -> And the Traveller belongs to a workflow "ANZ Module Submission" with selected modules: -> Given I am signed in as the Traveller -> When I click on "ANZ Module Submission" -> And I fill in the first page with a flight from Melbourne to London -> And I click on "Continue" -> And I click on "Submit" -> Then I should be notified of missing a mandatory field -> When I fill in the second page -> And I click on "Submit" -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval"
874
875Domestic Approval Submission
876 Submit for Itinerary
877I, [2017-07-18T00:30:43.606512 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
878 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Domestic Offline" of type "cost_auth_only" with a set of modules for traveller group "All Employees" and workflow country "AU" -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Domestic Offline" -> And I fill in "approval_title" with "Domestic trip to Sydney" -> And I complete the initial flight segment with: -> And I click the trip 'Continue' button -> And I fill out International Visa -> When I click on "Submit" -> Then I should see an approval splash message "Your travel request has been successfully submitted" -> When I click on "Review Trip" -> Then I should see "PENDING ITINERARY" -> When I click on "Trip Details" -> Then I should see "Trip Title: Domestic trip to Sydney" -> And I should see "Business Trip"
879 Pending Itinerary Notification Email
880I, [2017-07-18T00:30:49.424530 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
881 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Domestic Offline" of type "cost_auth_only" with a set of modules for traveller group "All Employees" and workflow country "AU" -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Domestic Offline" -> And I fill in "approval_title" with "Domestic trip to Sydney" -> And I complete the initial flight segment with: -> And I click the trip 'Continue' button -> And I fill out International Visa -> Given Trip Notifications are sent immediately -> And I have a existing Trip Notification with -> When I click on "Submit" -> Then I should see an approval splash message "Your travel request has been successfully submitted" -> And I should have sent all Trip Notification emails
882
883International Approval Submission
884 Submit for Approval
885 Given there is a Traveller -> And there is a workflow "International Trip" for traveller group "All Employees" with modules: -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "International Trip" -> And I fill in "approval_title" with "International business trip to Sydney" -> And I complete the initial flight segment with: -> And I complete a new hotel segment with: -> And I complete a new car segment with: -> And I click the trip "Continue" button -> And I fill out International Visa -> And I fill in the emergency_response module -> And I fill out Travel Insurance -> And I fill out Vaccinations -> And I fill out Travellers Guide -> And I fill out Declaration -> And I click the trip "Submit" button -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval" -> When I click on "Review Trip" -> Then I should see "Sydney Airport (SYD)" -> When I click on "Trip Details" -> Then I should see "Trip Title" -> And I should see "International business trip to Sydney"
886
887Approval with Travel Days [Regression]
888 Submitting an Approval with a Hotel Segment without a country code
889 Given there is an utas company -> And a traveller exists for the company -> And there is a workflow named "Test Workflow" with cost authorisation by group with modules: -> And there is an authoriser group "Authoriser Group" is in workflow "Test Workflow" -> And there is an Authoriser -> And the Authoriser is in membership group "Authoriser Group" -> Given I am signed in as the Traveller -> When I click on "Test Workflow" -> And I submit a single invalid Hotel Segment to a City without a local Time Zone -> And I click on "Continue" -> Then I should see an error message "You need to correct all Travel Details errors"
890
891Workflow Modules Submission
892 Filling in and Submitting all Travel Modules
893 Given there is an usq company -> And a traveller exists for the company -> And the Traveller belongs to a workflow "USQ Module Submission" with selected modules: -> Given I am signed in as the Traveller -> When I click on "USQ Module Submission" -> And I fill in the first page with a flight from Melbourne to London -> And I click on "Continue" -> And I fill in the second page -> And I click on "Submit" -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval" -> And the authorisation email should have been sent -> When I click on "Review Trip" -> Then I should see all second page modules
894
895Workflow Modules Submission
896 Filling in and Submitting all Travel Modules
897 Given there is an utas company -> And a traveller exists for the company -> And there are utas project numbers available for Sales cost centre -> And there are travel reasons named: -> And the Traveller belongs to a workflow "UTas Module Submission" with selected modules: -> Given I am signed in as the Traveller -> When I click on "UTas Module Submission" -> And I fill in the first page with a flight from Melbourne to London -> And I click on "Continue" -> And I fill in the second page -> And I click on "Submit" -> Then I should see "Thank You" -> And I should see an approval splash message like "Your travel request has been sent to .* for approval" -> And the authorisation email should have been sent -> When I click on "Review Trip" -> Then I should see all second page modules
898 Filling in and Saving and Submitting all Travel Modules
899 Given there is an utas company -> And a traveller exists for the company -> And there are utas project numbers available for Sales cost centre -> And there are travel reasons named: -> And the Traveller belongs to a workflow "UTas Module Submission" with selected modules: -> Given I am signed in as the Traveller -> When I click on "UTas Module Submission" -> And I fill in the first page with a flight from Melbourne to London -> And I click on "Continue" -> And I click on "Save as Draft" -> Then I should see "Your travel request has been saved" within a modal -> When I "Close" the modal -> And I click on the new approval -> And I click the trip 'Edit' button -> And I click on "Continue" -> And I fill in the second page -> And I click on "Submit" -> Then I should see "Thank You" -> And I should see an approval splash message like "Your travel request has been sent to .* for approval"
900
901Workflow Modules Submission
902 Filling in and Submitting all Travel Modules
903 Given a traveller exists for the company -> And there are travel reasons named: -> And the Traveller belongs to a workflow "Module Submission" with selected modules: -> And the workflow has additional info fields -> Given I am signed in as the Traveller -> And the travel justification setting with enabled goto meeting -> And the Traveller will have Risk and Visa warnings for London -> When I click on "Module Submission" -> And I fill in the first page with a flight from Melbourne to London -> And I click on "Continue" -> And I fill in the second page -> And I click on "Submit" -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval" -> And the authorisation email should have been sent -> When I click on "Review Trip" -> Then I should see all first page modules -> And I should see all second page modules
904 Saving Draft of all Travel Modules
905 Given a traveller exists for the company -> And there are travel reasons named: -> And the Traveller belongs to a workflow "Module Submission" with selected modules: -> And the workflow has additional info fields -> Given I am signed in as the Traveller -> And the travel justification setting with enabled goto meeting -> And the Traveller will have Risk and Visa warnings for London -> When I click on "Module Submission" -> And I fill in the trip title -> And I fill in the travel_details module with a flight from Melbourne to London -> And I click on "Continue" -> And I fill in the second page -> And I click on "Save as Draft" -> Then I should see "Your travel request has been saved" within a modal -> When I "Close" the modal -> And I click on the created approval -> And I wait for ajax requests -> Then I should see the travel_details module -> And I should see all second page modules
906 Completing Page 1 after correcting errors
907 Given a traveller exists for the company -> And there are travel reasons named: -> And the Traveller belongs to a workflow "Module Submission" with selected modules: -> And the workflow has additional info fields -> Given I am signed in as the Traveller -> And the Traveller will have Risk and Visa warnings for London -> When I click on "Module Submission" -> And I fill in the trip title -> And I click on "Continue" -> Then I should be notified of "Travel Details" errors -> When I fill in the travel_details module with a flight from Melbourne to London -> And I click on "Continue" -> Then I should see "To establish approximate cost please view" -> And I should be on the second page
908 Completing Page 2 after correcting errors
909 Given a traveller exists for the company -> And there are travel reasons named: -> And the Traveller belongs to a workflow "Module Submission" with selected modules: -> And the workflow has additional info fields -> Given I am signed in as the Traveller -> And the Traveller will have Risk and Visa warnings for London -> When I click on "Module Submission" -> And I fill in the trip title -> And I fill in the travel_details module with a flight from Melbourne to London -> And I click on "Continue" -> Then I should be on the second page -> When I click on "Submit" -> Then I should be on the second page -> And I should be notified of "Approximate Travel Cost" errors -> And I should be notified of "Additional Information" errors -> And I should be notified of "Declaration" errors -> And I should be notified of "International SOS Emergency Response" errors -> And I should be notified of "FBT Travel Diary" errors -> And I should be notified of "International Visas" errors -> And I should be notified of "In-Country Contact Details" errors -> And I should be notified of "Matter Related" errors -> And I should be notified of "Travellers Guide" errors -> Then I should be notified of "Travel Days" errors -> And I should be notified of "Business Case for Travel" errors -> And I should be notified of "Travel Insurance" errors -> And I should be notified of "Travel Justification" errors -> And I should be notified of "Billable / Non-Billable" errors -> And I should be notified of "Vaccinations" errors -> When I fill in the second page -> And I click on "Submit" -> And I wait for ajax requests -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval"
910
911Workflow Modules Submission
912 Filling in and Submitting all Travel Modules
913 Given there is an wvi company -> And a traveller exists for the company -> And there are travel reasons named: -> And the Traveller belongs to a workflow "ANZ Module Submission" with selected modules: -> Given I am signed in as the Traveller -> When I click on "ANZ Module Submission" -> And I fill in the first page with a flight from Melbourne to London -> And I click on "Continue" -> And I fill in the second page -> And I click on "Submit" -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval" -> And the authorisation email should have been sent -> When I click on "Review Trip" -> Then I should see all second page modules
914 Completing Page 2 after correcting errors
915 Given there is an wvi company -> And a traveller exists for the company -> And there are travel reasons named: -> And the Traveller belongs to a workflow "ANZ Module Submission" with selected modules: -> Given I am signed in as the Traveller -> When I click on "ANZ Module Submission" -> And I fill in the first page with a flight from Melbourne to London -> And I click on "Continue" -> And I click on "Submit" -> Then I should be notified of missing a mandatory field -> When I fill in the second page -> And I click on "Submit" -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval"
916
917Travel Details
918 Removing all segments then adding a segment
919 Given there is a workflow "Travel Details" with a set of modules -> Given there is a Traveller -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Travel Details" -> And I remove "flight" segment "1" -> And I add a Flight segment -> Then I should see a "flight" segment
920 Changing the declined approval
921 Given there is a workflow "Travel Details" with a set of modules -> Given there is a Traveller -> And the Traveller has a completed approval with a "request_declined" state -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I change the first flight segment -> And I click on "Continue" -> And I fill out International Visa -> And I click on "Submit" -> And I review the last created approval -> Then I should see a "CHANGES MADE" ribbon in the "flight" segment "1"
922 Add a new segment to the declined approval
923 Given there is a workflow "Travel Details" with a set of modules -> Given there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has a completed approval with a "pending_approval" state -> Given I am signed in as the Authoriser -> When I review the last created approval -> And I click on "Decline Travel" -> And I fill in "Message" with "Declined" -> And I click on "Submit" -> And I sign out -> Given I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I add a Hotel segment -> And I fill data for "hotel" segment "1" -> And I click on "Continue" -> And I fill out International Visa -> And I click on "Submit" -> And I review the last created approval -> Then I should see a "CHANGES MADE" ribbon in the "hotel" segment "1" -> And I should not see a "CHANGES MADE" ribbon in the "flight" segment "1"
924 Decline the changed approval
925 Given there is a workflow "Travel Details" with a set of modules -> Given there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has a completed approval with a "pending_approval" state -> And there is a change in travel details segments for approval -> And I am signed in as the Authoriser -> When I review the last created approval -> And I click on "Decline Travel" -> And I fill in "Message" with "You ain't goin nowhere!!!" -> And I "Submit" the modal -> And I review the last created approval -> Then I should not see a "CHANGES MADE" ribbon in the "flight" segment "1"
926
927Authoriser Group
928 When authoriser group allow authoriser to approve own trip, authoriser can able to see his/her name in authoriser group list
929 Given there is a cost authoriser group workflow "Authoriser Group Workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser Group Workflow" -> And there is an Authoriser with: -> And there is an Authoriser with: -> And "Andy" is in group "All Employees" -> And "Scott" is in group "All Employees" -> And "Andy" is in membership group "Authoriser Group" -> And "Scott" is in membership group "Authoriser Group" -> And "Andy" is assigned to "Andy" as an "authoriser" -> And "Scott" is assigned to "Andy" as an "authoriser" -> Given I am signed in as "Andy" -> When I click on "Authoriser Group Workflow" -> And I fill in AutoSuggest "Authoriser Group" with "Authoriser Group" -> Then I should see "Johnson, Scott" in AutoSuggest "Authoriser" dropdown list with ".travel_details_authoriser_id" -> And I should see "Smith, Andy" in AutoSuggest "Authoriser" dropdown list with ".travel_details_authoriser_id"
930 When authoriser group doesn't allow authoriser to approve own trip, authoriser can't see his/her name in authoriser group list
931 Given there is a cost authoriser group workflow "Authoriser Group Workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser Group Workflow" -> And there is an Authoriser with: -> And there is an Authoriser with: -> And "Andy" is in group "All Employees" -> And "Scott" is in group "All Employees" -> And "Andy" is in membership group "Authoriser Group" -> And "Scott" is in membership group "Authoriser Group" -> And "Andy" is assigned to "Andy" as an "authoriser" -> And "Scott" is assigned to "Andy" as an "authoriser" -> And I disable authoriser to approve their approvals -> Given I am signed in as "Andy" -> When I click on "Authoriser Group Workflow" -> And I fill in AutoSuggest "Authoriser Group" with "Authoriser Group" -> Then I should see "Johnson, Scott" in AutoSuggest "Authoriser" dropdown list with ".travel_details_authoriser_id" -> And I should not see "Smith, Andy" in AutoSuggest "Authoriser" dropdown list with ".travel_details_authoriser_id"
932 When trip is submitted, authoriser group can not be edited
933 Given there is a cost authoriser group workflow "Authoriser Group Workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser Group Workflow" -> And there is an Authoriser with: -> And there is an Authoriser with: -> And "Andy" is in group "All Employees" -> And "Scott" is in group "All Employees" -> And "Andy" is in membership group "Authoriser Group" -> And "Scott" is in membership group "Authoriser Group" -> And "Andy" is assigned to "Andy" as an "authoriser" -> And "Scott" is assigned to "Andy" as an "authoriser" -> Given "Andy" has an approval with state "quote_issued" group "Authoriser Group" and selected authoriser "Scott" -> And I am signed in as "Andy" -> When I review the last created approval -> And I click on "Edit Trip" -> Then I should see "Please use the Forward Authorisation functionality to change the Authoriser of your trip request"
934
935Travel Details Date Chaining
936 A non-hotel segment after a hotel segment uses the default 6 am time
937 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Date Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Date Chaining" -> When I add a Hotel segment -> And I add a Flight segment -> Then I should see value "6:00 AM" in "Time" within "flight" segment "2" -> And I should see a datepicker placeholder "Select date" in "Arrive" within "#module-travel-details .segment.hotel" of "1" -> And I should see a datepicker placeholder "Select date" in "Depart" within "#module-travel-details .segment.hotel" of "1" -> And I should see a datepicker placeholder "Select date" in "Date" within "#module-travel-details .segment.flight" of "1"
938 A new flight segment takes the departure date and time from the previous segment
939 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Date Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Date Chaining" -> Given I have completed the initial flight segment -> When I add a Flight segment -> Then I should see value "30-09-2040" in "Date" within "flight" segment "2" -> And I should see value "10:00 AM" in "Time" within "flight" segment "2"
940 A new car segment takes the departure date and time from the previous segment
941 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Date Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Date Chaining" -> Given I have completed the initial flight segment with: -> When I add a Car segment -> Then I should see value "30-09-2040" in "From" within "car" segment "1" -> And I should see value "9:00 AM" in index "1" of "input.timepicker" fields within "car" segment "1" -> And I should see value "30-09-2040" in "To" within "car" segment "1" -> And I should see value "9:00 AM" in index "2" of "input.timepicker" fields within "car" segment "1"
942 A new hotel segment takes the departure date and time from the previous flight segment
943 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Date Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Date Chaining" -> Given I have completed the initial flight segment with: -> When I add a Hotel segment -> Then I should see value "30-09-2040" in "Arrive" within "hotel" segment "1" -> And I should see value "30-09-2040" in "Depart" within "hotel" segment "1" -> When I fill in date "Depart" with "05-10-2040" of "hotel" segment "1"
944 A new car segment takes the departure date and time from the previous hotel segment
945 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Date Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Date Chaining" -> Given I have completed the initial flight segment with: -> And I have started a new hotel segment with -> When I add a Car segment -> Then I should see value "01-10-2040" in "From" within "car" segment "1" -> And I should see value "05-10-2040" in "To" within "car" segment "1"
946 A new flight segment takes the departure date and time from the previous car segment
947 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Date Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Date Chaining" -> Given I have completed the initial flight segment with: -> And I have started a new hotel segment with -> And I have started a new car segment with -> When I add a Flight segment -> Then I should see value "06-10-2040" in "Date" within "flight" segment "2"
948 A car segment will copy date / times from previous car segments
949 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Date Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Date Chaining" -> Given I have completed the initial flight segment -> And I have started a new car segment with -> When I add a Car segment -> Then I should see value "05-10-2040" in "From" within "car" segment "2" -> And I should see value "9:00 AM" in index "1" of "input.timepicker" fields within "car" segment "2" -> And I should see value "10-11-2040" in "To" within "car" segment "2" -> And I should see value "9:00 AM" in index "2" of "input.timepicker" fields within "car" segment "2"
950 A flight after a car uses the car's dropoff date and time
951 Given there is a Traveller -> And there are travel reasons named: -> And there is a workflow "Date Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Date Chaining" -> Given I have completed the initial flight segment -> And I have completed a new car segment with: -> When I add a Flight segment -> Then I should see value "31-10-2040" in "Date" within "flight" segment "2" -> And I should see value "4:00 PM" in "Time" within "flight" segment "2"
952
953Offline workflow with company department and cost centre
954 Department and Cost Centre Validation Errors
955 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> And the company setting "uses company departments" is enabled -> And there is a company department with cost centres: -> Given I am signed in as the Traveller -> When I click on "Offline Workflow" within ".action-menu" -> And I click on "Continue" -> Then I should see an inline error on select field "travel_details[department_id]" with message "can't be blank" -> And I wait for ajax requests -> And I should see an inline error on select field "travel_details[cost_centre_allocations_attributes][0][cost_centre_id]" with message "can't be blank"
956 Create and Edit Trip with Department and Cost Centre
957 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> And the company setting "uses company departments" is enabled -> And there is a company department with cost centres: -> Given I am signed in as the Traveller -> When I click on "Offline Workflow" within ".action-menu" -> And I select the current company department -> And I complete the initial flight segment with: -> And I click on "Continue" -> And I click on "Submit" -> Then I should see "Thank You" -> When I click on "Review Trip" -> Then I should see "Cost Centre: Sales ( 001 )" -> When I click on "Edit Trip" -> And I click on "Continue Editing" -> And I wait for ajax requests -> And I fill in AutoSuggest "Cost Centre" with "002" -> And I click on "Continue" -> And I click on "Submit" -> Then I should see "Thank You" -> When I click on "Review Trip" -> Then I should see "Cost Centre: Finance ( 002 )"
958
959Group Cost Centre
960 View the translated Other group in the Cost Centre
961 Given there is a workflow "Workflow" with a set of modules -> And there is an authoriser group "Authoriser Group" is in workflow "Workflow" -> And there is a Traveller -> And there is an Authoriser -> And the Authoriser is in group "All Employees" -> And the Authoriser is in membership group "Authoriser Group" -> And the Authoriser is assigned to the Traveller as an "authoriser" -> Given I am signed in as the Traveller -> When I click on "Workflow" within ".action-menu" -> Then I should see "Other" group in AutoSuggest "Cost Centre"
962
963Travel Details Location Chaining
964 A flight segment copies the previous value from a flight segment
965 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started a new flight segment with -> When I add a Flight segment -> Then I should see "MEL - Melbourne Airport, Melbourne, Australia" in "From" within "flight" segment "2" -> And I should see "Search" in "To" within "flight" segment "2"
966 A flight segment does not copy the previous value from a car segment
967 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started a new car segment with -> When I add a Flight segment -> Then I should see "Search" in "From" within "flight" segment "2" -> And I should see "Search" in "To" within "flight" segment "2"
968 A flight segment does not copy the previous value from a hotel segment
969 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started a new hotel segment with -> When I add a Flight segment -> Then I should see "Search" in "From" within "flight" segment "2" -> And I should see "Search" in "To" within "flight" segment "2"
970 A car segment copies the previous value from a flight segment
971 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started the initial flight segment with -> When I add a Car segment -> Then I should see "Melbourne, VI, Australia" in "Pickup" within "car" segment "1" -> And I should see "Melbourne, VI, Australia" in "Drop Off" within "car" segment "1"
972 A car segment copies the previous value from a car segment
973 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started a new car segment with -> When I add a Car segment -> Then I should see "Paris, France" in "Pickup" within "car" segment "1" -> And I should see "Paris, France" in "Drop Off" within "car" segment "1"
974 A car segment copies the previous value from a hotel segment
975 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started a new hotel segment with -> When I add a Car segment -> Then I should see "Paris, France" in "Pickup" within "car" segment "1" -> And I should see "Paris, France" in "Drop Off" within "car" segment "1"
976 A hotel segment copies the previous value from a flight segment
977 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started a new flight segment with -> When I add a Hotel segment -> Then I should see "Sydney, NS, Australia" in "City" within "hotel" segment "1"
978 A hotel segment copies the previous value from a car segment
979 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started a new car segment with -> When I add a Hotel segment -> Then I should see "Sydney, NS, Australia" in "City" within "hotel" segment "1"
980 A hotel segment copies the previous value from a hotel segment
981 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started a new hotel segment with -> When I add a Hotel segment -> Then I should see "Paris, France" in "City" within "hotel" segment "2"
982 The second chained segment takes its value from the first segment
983 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started the initial flight segment with -> When I add a Car segment -> Then I should see "Melbourne, VI, Australia" in "Drop Off" within "car" segment "1" -> And I should see "Melbourne, VI, Australia" in "Pickup" within "car" segment "1"
984 The third chained segment takes its value from the second segment
985 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started the initial flight segment with -> When I add a Car segment -> And I add a Hotel segment -> Then I should see "Melbourne, VI, Australia" in "City" within "hotel" segment "1"
986 Safely adding a car segment when the aiport does not have a city_code (Echuca)
987 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started the initial flight segment with -> When I add a Car segment -> Then I should see "Search" in "Drop Off" within "car" segment "1" -> And I should see "Search" in "Pickup" within "car" segment "1"
988 Safely adding a hotel segment when the aiport does not have a city_code (Echuca)
989 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started the initial flight segment with -> When I add a Hotel segment -> Then I should see "Search" in "City" within "hotel" segment "1"
990 Adding a segment after failed validation
991 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have started the initial flight segment with -> When I fill in the trip title -> And I click on 'Continue' -> And I add a Hotel segment -> Then I should see "Melbourne, VI, Australia" in "City" within "hotel" segment "1"
992 Adding a segment to a draft approval
993 Given there is a Traveller -> And there is a workflow "Location Chaining" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Location Chaining" -> Given I have completed the initial flight segment with: -> When I fill in the trip title -> And I click on 'Save as Draft' -> And I "Close" the modal -> And I click on the new approval -> And I click on 'Edit' -> And I add a Hotel segment -> Then I should see "Melbourne, VI, Australia" in "City" within "hotel" segment "1"
994
995Star/UnStar Authoriser Group/Authoriser
996 Can star/unstar the authoriser group/authoriser
997 Given there is a cost authoriser group workflow "Authoriser Group Workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser Group Workflow" -> And there is a Traveller -> And there is an Authoriser with: -> And "Scott" is in group "All Employees" -> And "Scott" is in membership group "Authoriser Group" -> And "Scott" is assigned to the Traveller as an "authoriser" -> Given I am signed in as the Traveller -> When I trigger click on ".btn-workflow" within ".action-menu" -> And I fill in AutoSuggest "Authoriser Group" with "Authoriser Group" -> And I fill in AutoSuggest "Authoriser" with "Smith, Scott" within ".travel_details_authoriser_id" -> And I trigger click on ".js-star-authoriser.icon-star" within ".travel_details_authoriser_id" -> And I click on "Save as Draft" -> And I trigger click on ".btn-workflow" within ".action-menu" -> Then I should see "Authoriser Group" in AutoSuggest "Authoriser Group" -> And I should see "Smith, Scott" in AutoSuggest "Authoriser" dropdown list with ".travel_details_authoriser_id" -> When I trigger click on ".js-star-authoriser.icon-star-on" within ".travel_details_authoriser_id"
998
999Star/UnStar Department/Cost Centre
1000 Can star/unstar the Cost Centre
1001 Given there is a workflow "Workflow" with a set of modules -> And there is an authoriser group "Authoriser Group" is in workflow "Workflow" -> And there is a Traveller -> And there is an Authoriser -> And the Authoriser is in group "All Employees" -> And the Authoriser is in membership group "Authoriser Group" -> And the Authoriser is assigned to the Traveller as an "authoriser" -> Given I am signed in as the Traveller -> When I click on "Workflow" within ".action-menu" -> And I fill in AutoSuggest "Cost Centre" with "Marketing" -> And I trigger click on ".js-star-cost-centre" -> Then I should lookup ".js-star-cost-centre.icon-star-on" -> When I click on the Dashboard link -> And I click on "Workflow" within ".action-menu" -> Then I should see "Marketing" in AutoSuggest "Cost Centre" -> And I should lookup ".js-star-cost-centre.icon-star-on" -> When I fill in AutoSuggest "Cost Centre" with "Finance" -> And I trigger click on ".js-star-cost-centre" -> Then I should lookup ".js-star-cost-centre.icon-star-on" -> When I fill in AutoSuggest "Cost Centre" with "Marketing" -> Then I should see "Marketing" in AutoSuggest "Cost Centre" -> And I should lookup ".js-star-cost-centre.icon-star" -> When I fill in AutoSuggest "Cost Centre" with "Finance" -> Then I should lookup ".js-star-cost-centre.icon-star-on" -> When I fill in AutoSuggest "Cost Centre" with "Marketing" -> And I click on "Continue" -> Then I should see "Marketing" in AutoSuggest "Cost Centre"
1002
1003International Trip Approval Flight Detail Entry
1004 A user clicks through without entering any data
1005 Given there is a Traveller -> And there is a workflow "International Trip" with a set of modules -> And the Traveller is in group "All Employees" -> And the Traveller is in time zone "Melbourne" -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "International Trip" -> When I click the trip "Continue" button -> Then I should be notified of missing a mandatory field
1006
1007Travel Diary
1008 add, edit, export and delete a travel diary
1009 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "pending_approval" -> Given I am signed in as the Traveller -> And emails are added to a queue 'ExportTravelDiariesMailer' with a method call 'travel_diaries_message' -> When I click on the last created approval -> And I click on "Travel Diary" -> And I fill in "Activity" with "Travel" -> And I fill in "Location" with "Melbourne" -> And I date-pick in "Start Date" 1000_of_days days in the future -> And I date-pick in "End Date" 1000_of_days days in the future -> And I fill in "Start Time" with "09:00 AM" -> And I fill in "End Time" with "09:30 AM" -> And I fill in "travel_diary_notes" with "Melbourne to Sydney" -> And I choose "Business" -> And I click on "Submit" -> Then I should see "Melbourne to Sydney" as a Travel Diary entry -> And I should see "Export Travel Diary" -> When I edit travel_diary -> And I fill in "Activity" with "Trip to Melbourne" -> And I click on "Update" -> Then I should see "Trip to Melbourne" -> When I click on "Export Travel Diary" -> And I fill in "authoriser@example.com,traveller@example.com" TagsInput -> And I fill in "Comments" with "Have a look the travel diary" -> Then I should see "authoriser@example.com" -> And I should see "traveller@example.com" -> When I click on "Send Report" -> Then I should see "Your travel diary report has been sent to authoriser@example.com and traveller@example.com" within a modal -> And an email job 'ExportTravelDiariesMailer' has been enqueued -> When I "Close" the modal -> And I remove travel_diary -> Then I should see "There are currently no travel diary entries"
1010 restrict the access of add/export a travel diary functionality based on user who creates approval
1011 Given there is a workflow with a set of modules -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "pending_approval" -> Given I am signed in as the Traveller -> When I click on the last created approval -> And I click on "Travel Diary" -> And I fill in "Activity" with "Travel" -> And I date-pick in "Start Date" 1000_of_days days in the future -> And I date-pick in "End Date" 1001_of_days days in the future -> And I fill in "Start Time" with "09:00 AM" -> And I fill in "End Time" with "09:30 AM" -> And I fill in "travel_diary_notes" with "Melbourne to Sydney" -> And I choose "Business" -> And I click on "Submit" -> And I sign out -> Given I am signed in as the Authoriser -> When I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> And I click on "Travel Diary" -> Then I should not see "Submit" -> And I should not see "Export Travel Diary"
1012
1013Approval Traveller Declaration
1014 I cannot continue without agreeing to the declarations first
1015 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And the Traveller is in group "All Employees" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> And I fill in the trip title -> Given I have completed the initial flight segment -> When I click the trip 'Continue' button -> When I click the trip "Submit" button -> Then I should be notified of missing a mandatory field
1016 I cannot continue without agreeing to all declarations
1017 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And the Traveller is in group "All Employees" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> And I fill in the trip title -> Given I have completed the initial flight segment -> When I click the trip 'Continue' button -> When I agree to one Declaration -> And I click the trip "Submit" button -> Then I should be notified of missing a mandatory field
1018 I can agree with declarations
1019 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And the Traveller is in group "All Employees" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> And I fill in the trip title -> Given I have completed the initial flight segment -> When I click the trip 'Continue' button -> When I fill out Declaration -> And I click the trip "Submit" button -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval"
1020 I can agree with all declarations at once
1021 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And the Traveller is in group "All Employees" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> And I fill in the trip title -> Given I have completed the initial flight segment -> When I click the trip 'Continue' button -> When I check the agree with all declarations field -> And I click the trip "Submit" button -> Then I should see an approval splash message like "Your travel request has been sent to .* for approval"
1022 I can change my mind and remove all agreed declarations
1023 Given there is a workflow "Alice in Wonderland" for traveller group "All Employees" with modules: -> And there is a Traveller -> And the Traveller is in group "All Employees" -> And there are travel reasons named: -> And the Traveller has an assigned Authoriser -> And I am signed in as the Traveller -> When I click on "Alice in Wonderland" -> And I fill in the trip title -> Given I have completed the initial flight segment -> When I click the trip 'Continue' button -> When I fill out Declaration -> And I uncheck the agree with all declarations field -> And I click the trip "Submit" button -> Then I should be notified of missing a mandatory field
1024
1025Approval Role Delegation
1026 Completing a Approval delegated to a Authoriser
1027 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And the Authoriser has an active role delegation -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see an approval splash message like 'Your travel request has been sent to .* for approval' -> And the delegated authoriser has been added as a stakeholder -> And a single authorisation delegated message should have been created -> And the delegated authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email
1028 Completing a Approval delegated to multiple Authorisers
1029 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And the authoriser has multiple active role delegations -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see an approval splash message like 'Your travel request has been sent to .* for approval' -> And the delegated authoriser has been added as a stakeholder -> And multiple authorisation delegated messages should have been created -> And all delegated authorisers should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email
1030 Completing a Approval with an expired delegation
1031 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And the authoriser has a expired role delegation -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email
1032 Cost Authorisation notifications for a role delegated approval
1033 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And the Authoriser has an active role delegation -> And the authoriser has forwarded the approval to the delegated cost authoriser -> And I am signed in as the TMC Consultant -> When I reupload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the delegated authoriser should have received a 'quote_issued' email
1034
1035Cost Authoriser Group Forward Approval
1036 Traveller Forward Approval
1037 Given there is a cost authoriser group workflow "Authoriser group workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser group workflow" -> And there is a Traveller -> And there is an Authoriser named "Scott" -> And "Scott" is in membership group "Authoriser Group" -> And there is an Authoriser named "Rey" -> And "Rey" is in membership group "Authoriser Group" -> Given the Traveller has an approval with state "quote_issued" group "Authoriser Group" and selected authoriser "Scott" -> And I am signed in as the Traveller -> When I click on the last created approval -> And I forward authorisation to "Rey" from group "Authoriser Group" -> Then I should see that authorisation was forwarded to "Rey"
1038 Authoriser Forward Approval
1039 Given there is a cost authoriser group workflow "Authoriser group workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser group workflow" -> And there is a Traveller -> And there is an Authoriser named "Scott" -> And "Scott" is in membership group "Authoriser Group" -> And there is an Authoriser named "Rey" -> And "Rey" is in membership group "Authoriser Group" -> Given the Traveller has an approval with state "quote_issued" group "Authoriser Group" and selected authoriser "Scott" -> And I am signed in as "Scott" -> When I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> And I forward authorisation to "Rey" from group "Authoriser Group" -> Then I should see that authorisation was forwarded to "Rey"
1040
1041Forward Approval
1042 Travel Arranger Forward Approval
1043 Given there is a workflow with a set of modules -> And there is a Traveller -> And there is an Authoriser named "Ernie" -> And there is an Authoriser named "Bert" -> And "Bert" is assigned to the Traveller as an "authoriser" -> Given the Traveller has an assigned Travel Arranger -> And the Traveller has an approval with state "pending_approval" -> And I am signed in as the Travel Arranger -> When I switch identity to the Traveller -> And I display all personal trips for the Traveller -> And I click on the last created approval -> And I forward authorisation to "Ernie" -> Then I should see that authorisation was forwarded to "Ernie"
1044 Authoriser Cost Authoriser Forward Approval
1045 Given there is a workflow with a set of modules -> And there is a Traveller -> And there is an Authoriser named "Ernie" -> And there is an Authoriser named "Bert" -> And "Bert" is assigned to the Traveller as an "authoriser" -> Given the Traveller has an approval with state "quote_issued" -> And I am signed in as the Authoriser -> When I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> And I forward authorisation to "Ernie" -> Then I should see that authorisation was forwarded to "Ernie"
1046 Traveller Pre Authoriser Forward Approval
1047 Given there is a workflow with a set of modules -> And there is a Traveller -> And there is an Authoriser named "Ernie" -> And there is an Authoriser named "Bert" -> And "Bert" is assigned to the Traveller as an "authoriser" -> Given the Traveller has an approval with state "pending_approval" -> And I am signed in as the Traveller -> When I click on the last created approval -> And I forward authorisation to "Ernie" -> Then I should see that authorisation was forwarded to "Ernie"
1048 Traveller Cost Authoriser Forward Approval
1049 Given there is a workflow with a set of modules -> And there is a Traveller -> And there is an Authoriser named "Ernie" -> And there is an Authoriser named "Bert" -> And "Bert" is assigned to the Traveller as an "authoriser" -> Given the Traveller has an approval with state "quote_issued" -> And I am signed in as the Traveller -> When I click on the last created approval -> And I forward authorisation to "Ernie" -> Then I should see that authorisation was forwarded to "Ernie"
1050
1051Authoriser Group Forward Approval
1052 Traveller Forward Approval
1053 Given there is a group workflow "Authoriser group workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser group workflow" -> And there is a Traveller -> And there is an Authoriser named "Scott" -> And there is an Authoriser named "Rey" -> And "Scott" is in membership group "Authoriser Group" -> And "Rey" is in membership group "Authoriser Group" -> Given the Traveller has an approval with state "pending_approval" group "Authoriser Group" and selected authoriser "Scott" -> And I am signed in as the Traveller -> When I click on the last created approval -> And I forward authorisation to "Rey" from group "Authoriser Group" -> Then I should see that authorisation was forwarded to "Rey"
1054 Authoriser Forward Approval
1055 Given there is a group workflow "Authoriser group workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser group workflow" -> And there is a Traveller -> And there is an Authoriser named "Scott" -> And there is an Authoriser named "Rey" -> And "Scott" is in membership group "Authoriser Group" -> And "Rey" is in membership group "Authoriser Group" -> Given the Traveller has an approval with state "quote_issued" group "Authoriser Group" and selected authoriser "Scott" -> And I am signed in as "Scott" -> When I select 'Awaiting Authorisation' tab -> And I click on the last created approval -> And I forward authorisation to "Rey" from group "Authoriser Group" -> Then I should see that authorisation was forwarded to "Rey"
1056
1057Pre Authoriser Group Forward Approval
1058 Traveller Forward Approval
1059 Given there is a pre authoriser group workflow "Authoriser group workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser group workflow" -> And there is a Traveller -> And there is an Authoriser named "Scott" -> And "Scott" is in membership group "Authoriser Group" -> And there is an Authoriser named "Rey" -> And "Rey" is in membership group "Authoriser Group" -> Given the Traveller has an approval with state "pending_approval" group "Authoriser Group" and selected authoriser "Scott" -> And I am signed in as the Traveller -> When I click on the last created approval -> And I forward authorisation to "Rey" from group "Authoriser Group" -> Then I should see that authorisation was forwarded to "Rey"
1060 Authoriser Forward Approval
1061 Given there is a pre authoriser group workflow "Authoriser group workflow" of type "default_workflow" with a set of modules for traveller group "All Employees" -> And there is an authoriser group "Authoriser Group" is in workflow "Authoriser group workflow" -> And there is a Traveller -> And there is an Authoriser named "Scott" -> And "Scott" is in membership group "Authoriser Group" -> And there is an Authoriser named "Rey" -> And "Rey" is in membership group "Authoriser Group" -> Given the Traveller has an approval with state "pending_approval" group "Authoriser Group" and selected authoriser "Scott" -> And I am signed in as "Scott" -> And tab "My Trips" is selected -> When I select "Awaiting Authorisation" tab -> And I click on the last created approval -> And I forward authorisation to "Rey" from group "Authoriser Group" -> Then I should see that authorisation was forwarded to "Rey"
1062
1063Company Credit Cards
1064 Adding new company credit card
1065 Given the company setting "company financial" is enabled -> And I am signed in as a Company Admin -> When I visit the admin "Credit Cards" page -> And I click on "Add Credit Card" -> Then I should not see "Card Owner" (FAILED - 1)
1066
1067Company Department
1068 Creating new company deparment
1069 Given the company setting "uses company departments" is enabled -> And the company setting "department financial" is enabled -> And I am signed in as a Company Admin -> When I visit the admin "Department" page -> And I click on "Create a new Company Department" -> And I click on "Add Credit Card" -> Then I should not see "Card Owner"
1070
1071Company Admin Forward Approval
1072 Forward Pre Authorisation to Authoriser
1073 Given there is a workflow with a set of modules -> And there is a Traveller -> And there is an Authoriser -> And there is a Company Admin -> Given the Traveller has an approval with state "pending_approval" -> And I am signed in as the Company Admin -> When I switch identity to the Traveller -> And I display all personal trips for the Traveller -> And I click on the last created approval -> And I forward authorisation to the Authoriser -> Then I should see that authorisation was forwarded to the Authoriser -> When I click on the last created approval -> And I click on "Messages" -> Then I should see an authorisation forwared to the Authoriser message by the Company Admin with a "company_admin" role
1074 Forward Cost Authorisation to Authoriser
1075 Given there is a workflow with a set of modules -> And there is a Traveller -> And there is an Authoriser -> And there is a Company Admin -> Given the Traveller has an approval with state "quote_issued" -> And I am signed in as the Company Admin -> When I switch identity to the Traveller -> And I display all personal trips for the Traveller -> And I click on the last created approval -> And I forward authorisation to the Authoriser -> Then I should see that authorisation was forwarded to the Authoriser
1076
1077Company Admin sidebar behavior
1078 Sidebar with disabled Simplified travel diary feature
1079 Given there is a Company Admin -> And there is a Traveller -> And the Traveller has an approval with state "quote_issued" -> And I am signed in as the Company Admin -> Given the company setting "simplified_fbt_travel_diary" is disabled -> When I switch identity to the Traveller -> And I display all personal trips for the Traveller -> And I click on the last created approval -> Then I should see "Travel Diary"
1080 Sidebar with enabled Simplified travel diary feature
1081 Given there is a Company Admin -> And there is a Traveller -> And the Traveller has an approval with state "quote_issued" -> And I am signed in as the Company Admin -> Given the company setting "simplified_fbt_travel_diary" is enabled -> When I switch identity to the Traveller -> And I display all personal trips for the Traveller -> And I click on the last created approval -> Then I should not see "Travel Diary"
1082
1083Displaying Approval Company Department
1084 Trip Details Displays the Department Code and Name
1085 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> And the company setting "uses company departments" is enabled -> And there is a company department with cost centres: -> And there is a Traveller -> And the Traveller has a booked approval -> And I am signed in as the Traveller -> When I visit the current department approval trip details -> Then I should see the travel details department code and name in the "travel details" section
1086 Approval Quotes displays the Department Code and Name
1087 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> And the company setting "uses company departments" is enabled -> And there is a company department with cost centres: -> And there is a Traveller -> And the Traveller has a booked approval -> And I am signed in as the Traveller -> When I visit the current department approval quotes -> Then I should see the travel details department code and name in the "additional details" section
1088
1089Cancel Expired Itinerary Quotes Cron Task
1090 Cancelling an Expired Itinerary Quote
1091 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has CBT SSO access -> And there is a expired cbt itinerary quote -> And the cbt api successfully cancels itinerary quotes -> And expired quote jobs are performed immediately -> When the cancel expired cbt itinerary quotes service is run -> Then the expired itinerary quote should be cancelled -> And the Traveller should have received an itinerary expired email -> And the authoriser should have received an itinerary expired email
1092
1093Company Logo
1094 No logo, upload a logo, view logo
1095 Given I am signed in as a Company Admin -> When I go to the "home" page -> And I do not see a logo -> When I go to the "admin company logo" page -> And I upload logo 'sample_logo2.png' -> And I go to the "home" page -> Then I should see a logo
1096 Upload an invalid image
1097 Given I am signed in as a Company Admin -> When I go to the "home" page -> And I do not see a logo -> When I go to the "admin company logo" page -> And I upload logo 'sample_bad_mime_type.jpg' -> Then I should see "application/zip files are not supported."
1098
1099Dashboard for Authoriser
1100 The trip request is visible beneath All Trips tab afterward
1101I, [2017-07-18T00:39:06.334960 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1102 Given there is a Workflow with selected modules: -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an approval with state "pending_approval" -> Given I am signed in as the Authoriser -> Then the Approval should be visible on the 'Awaiting Authorisation' tab -> And I should not see "Travel History" -> When the Authoriser transitions the "pending_approval" with "approve_request" -> And I click on the Dashboard link -> Then the Approval should be visible on the 'All Authorisations' tab -> And I should see 'PENDING ITINERARY' -> And I should see "Travel History"
1103
1104Trips that were cancelled should show in "past" travel section regardless of their dates
1105 The traveller has a cancelled trip that's in the past
1106 Given there is a Traveller -> And there is a workflow "Travel Details" with a set of modules -> And I am signed in as the Traveller -> And the Traveller has a completed approval with a "trip_cancelled" state -> Given all Travel Segments have a return date earlier than today -> When I go to the "home" page -> Then the trip should be in the "past" travel section
1107 The traveller has a cancelled trip that's in the future
1108 Given there is a Traveller -> And there is a workflow "Travel Details" with a set of modules -> And I am signed in as the Traveller -> And the Traveller has a completed approval with a "trip_cancelled" state -> Given all Travel Segments have a return date later than today -> When I go to the "home" page -> Then the trip should be in the "past" travel section
1109
1110Past travel trips should be based on return date + 1 day of all segments
1111 The traveller has a past trip
1112 Given there is a Traveller -> And I am signed in as the Traveller -> And there is a complete approval with travel segments for the Traveller -> Given all Travel Segments have a return date earlier than today -> When I go to the "home" page -> Then the trip should be in the "past" travel section
1113 The traveller has a future trip
1114 Given there is a Traveller -> And I am signed in as the Traveller -> And there is a complete approval with travel segments for the Traveller -> Given all Travel Segments have a return date later than today -> When I go to the "home" page -> Then the trip should be in the "upcoming" travel section
1115 The traveller has a past trip, except for one current segment
1116 Given there is a Traveller -> And I am signed in as the Traveller -> And there is a complete approval with travel segments for the Traveller -> Given all Travel Segments have a return date earlier than today -> And the last non-flight Travel Segment is updated to have a return date later than today -> When I go to the "home" page -> Then the trip should be in the "upcoming" travel section
1117
1118Dashboard Role Delegation Reminder
1119 Active Role Delegations display a Reminder
1120 Given there is an Authoriser -> And the Authoriser has the Risk Authoriser Role -> And I am signed in as the Authoriser -> Given the Authoriser has an active role delegation -> When I click on the Dashboard link -> Then I should see a role delegation reminder
1121 Pending Role Delegations do not display a Reminder
1122 Given there is an Authoriser -> And the Authoriser has the Risk Authoriser Role -> And I am signed in as the Authoriser -> Given the Authoriser has a pending role delegation -> When I click on the Dashboard link -> Then I should not see a role delegation reminder
1123
1124Dashboard Auto Update for Traveller with ATPI Account
1125 Traveller views the dashboard with a pending ATPI User Export Record
1126 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has a pending ATPI User Export Record -> And there is a cbt workflow "CBT Workflow" for traveller group "All Employees" -> And the Traveller is in group "All Employees" -> And I am signed in as the Traveller -> When I go to the "home" page -> Then I should see a disabled "CBT Workflow" workflow button -> And I should not see a SSO Button -> When the ATPI User Export Record for the Traveller has successfully finished exporting -> And I go to the "home" page -> Then I should see a disabled "CBT Workflow" workflow button -> And I should not see a SSO Button
1127 Traveller views the dashboard with an exported ATPI User Export Record
1128 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has an exported ATPI User Export Record -> And I am signed in as the Traveller -> Then I should not see a SSO Button
1129
1130Dashboard Auto Update for Traveller with Cbt Account
1131 Traveller views the dashboard with a pending CBT User Export Record
1132 Given there is a cbt workflow "CBT Workflow" for traveller group "All Employees" -> And there is a Traveller -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> Given the Traveller has a pending CBT User Export Record -> And I am signed in as the Traveller -> When I go to the "home" page -> Then I should see a disabled "CBT Workflow" workflow button -> And I should not see the Serko SSO Button -> When the CBT User Export Record for the Traveller has successfully finished exporting -> And I go to the "home" page -> Then I should see an enabled "CBT Workflow" workflow button -> And I should not see the Serko SSO Button
1133 Travel Arranger views the dashboard with a pending CBT User Export Record
1134 Given there is a cbt workflow "CBT Workflow" for traveller group "All Employees" -> And there is a Traveller -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> Given the Traveller has an assigned Travel Arranger -> And the Traveller has a pending CBT User Export Record -> And the Travel Arranger has a pending CBT User Export Record -> And I am signed in as the Travel Arranger -> When I switch identity to the Traveller -> And I go to the "home" page -> Then I should see a disabled "CBT Workflow" workflow button -> When the CBT User Export Record for the Traveller has successfully finished exporting -> And I go to the "home" page -> Then I should see a disabled "CBT Workflow" workflow button -> When the CBT User Export Record for the Travel Arranger has successfully finished exporting -> And I go to the "home" page -> Then I should see an enabled "CBT Workflow" workflow button
1135
1136Dashboard Auto Update for Traveller with Serko Account
1137 Traveller views the dashboard with a pending Serko User Export Record
1138 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has a pending Serko User Export Record -> And there is a cbt workflow "CBT Workflow" for traveller group "All Employees" -> And the Traveller is in group "All Employees" -> And I am signed in as the Traveller -> When I go to the "home" page -> Then I should see a disabled "CBT Workflow" workflow button -> And I should not see the Serko SSO Button -> When the Serko User Export Record for the Traveller has successfully finished exporting -> And I go to the "home" page -> Then I should see a disabled "CBT Workflow" workflow button -> And I should see the Serko SSO Button
1139 Traveller views the dashboard with an exported Serko User Export Record
1140 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has an exported Serko User Export Record -> And I am signed in as the Traveller -> Then I should see the Serko SSO Button
1141
1142Dashboard Auto Update for Traveller with Tramada Account
1143 Traveller views the dashboard with a pending Tramada User Export Record
1144 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has a pending Tramada User Export Record -> And there is a cbt workflow "CBT Workflow" for traveller group "All Employees" -> And the Traveller is in group "All Employees" -> And I am signed in as the Traveller -> When I go to the "home" page -> Then I should see a disabled "CBT Workflow" workflow button -> And I should not see a SSO Button -> When the Tramada User Export Record for the Traveller has successfully finished exporting -> And I go to the "home" page -> Then I should see a disabled "CBT Workflow" workflow button -> And I should not see a SSO Button
1145 Traveller views the dashboard with an exported Tramada User Export Record
1146 Given there is a Traveller -> And the Traveller has an assigned Authoriser -> Given the Traveller has an exported Tramada User Export Record -> And I am signed in as the Traveller -> Then I should not see a SSO Button
1147
1148Dashboard for Super Authoriser
1149 The trip request is visible beneath All Approvals tab afterward
1150I, [2017-07-18T00:39:59.304720 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1151 Given there is a Workflow with selected modules: -> And there is a Traveller -> And the Traveller has an assigned Authoriser -> And the Traveller has an assigned Risk Authoriser -> And the Traveller has an approval with state "pending_approval" -> And the trip request's country is dangerous -> And the Authoriser transitions the "pending_approval" with "approve_request" -> Given I am signed in as the Risk Authoriser -> Then the Approval should be visible on the 'High Risk Trips' tab -> When the Risk Authoriser transitions the "risk_approval_required" with "authorise_request" -> And I click on the Dashboard link -> Then the Approval should be visible on the 'All Authorisations' tab -> And I should see 'PENDING ITINERARY'
1152
1153Dashboard Filtering for TMC
1154 Filtering Approvals
1155 Given there is a Traveller with: -> And there is a Traveller with: -> And "Jane" is managed by a TMC Consultant -> And "Alan" is managed by a TMC Consultant -> And "Jane" has an approval with state "pending_booking", uid "TMP-JKH" and title "NYC->MEL" -> And "Jane" has an approval with state "pending_itinerary", uid "TMP-ALK" and title "SYD->NYC" -> And "Jane" has an approval with state "pending_booking", uid "TMP-JHH" and title "JFC->MEL" -> And "Alan" has an approval with state "pending_booking", uid "TMP-AHH" and title "MEL->SYD" -> Given I am signed in as the TMC Consultant -> Then I should see "4" Approvals -> When I filter by "Pending Itinerary" approvals -> Then I should see a Approval -> When I filter by "Pending Booking" approvals -> Then I should see "3" Approvals
1156 Filtering archived/unarchived travellers approvals
1157 Given there is a Traveller with: -> And there is a Traveller with: -> And "Jane" is managed by a TMC Consultant -> And "Alan" is managed by a TMC Consultant -> And "Jane" has an approval with state "pending_booking", uid "TMP-JKH" and title "NYC->MEL" -> And "Jane" has an approval with state "pending_itinerary", uid "TMP-ALK" and title "SYD->NYC" -> And "Jane" has an approval with state "pending_booking", uid "TMP-JHH" and title "JFC->MEL" -> And "Alan" has an approval with state "pending_booking", uid "TMP-AHH" and title "MEL->SYD" -> Given "Jane" has been archived -> When I sign in as the TMC Consultant -> Then I should see "4" Approvals -> And I should see Approval "TMP-ALK" -> And I should see Approval "TMP-JKH" -> And I should see Approval "TMP-JHH" -> And I should see Approval "TMP-AHH" -> When I filter by "Pending Itinerary" approvals -> Then I should see a Approval -> And I should see Approval "TMP-ALK" -> When I filter by "Pending Booking" approvals -> Then I should see "3" Approvals -> And I should see Approval "TMP-JKH" -> And I should see Approval "TMP-JHH" -> And I should see Approval "TMP-AHH" -> When I sign out -> And the archived user "Jane" is restored -> And I sign in as the TMC Consultant -> Then I should see "4" Approvals -> And I should see Approval "TMP-ALK" -> And I should see Approval "TMP-JKH" -> And I should see Approval "TMP-JHH" -> And I should see Approval "TMP-AHH"
1158
1159Dashboard for Traveller
1160 The trip request is visible to the Traveller
1161 Given there is a Workflow with the "declaration" module -> And there is a Traveller -> And there is a 'quote_issued' approval with a cbt itinerary quote and insight_uuid -> Given I am signed in as the Traveller -> Then the Approval should be visible
1162 Approval should point to the live itinerary UI
1163 Given there is a Workflow with the "declaration" module -> And there is a Traveller -> And there is a 'quote_issued' approval with a cbt itinerary quote and insight_uuid -> Given the company setting "Live itinerary service" is enabled -> And I am signed in as the Traveller -> Then Approval should point to the live itinerary UI
1164 The trip request with a deleted workflow is visible to the Traveller
1165 Given there is a Workflow with the "declaration" module -> And there is a Traveller -> And there is a 'quote_issued' approval with a cbt itinerary quote and insight_uuid -> Given the approval workflow has been soft deleted -> And I am signed in as the Traveller -> Then the Approval should be visible
1166 The trip request with departure time earlier today is displayed within upcoming trips
1167 Given there is a Workflow with the "declaration" module -> And there is a Traveller -> And there is a 'quote_issued' approval with a cbt itinerary quote and insight_uuid -> Given the approval has departure time earlier today -> And I am signed in as the Traveller -> Then the Approval should be displayed within upcoming travels
1168
1169Default company
1170 Preferences tab
1171 Given there is a Traveller -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> When I click on "Preferences" tab -> Then I should see "Special Service Requests" -> And I should see "Add Airline Preference" -> And I should see "Add Hotel Preference" -> And I should see "Add Car Preference"
1172 Documents tab
1173 Given there is a Traveller -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> When I click on "Documents" tab -> Then I should see "Add Passport" -> And I should see "Document Attachments"
1174 Personal tab
1175 Given there is a Traveller -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> When I click on "Personal" tab -> Then I should not see "Booking Tool"
1176 Financial tab
1177 Given there is a Traveller -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> Then I should not see "Financial"
1178
1179Adding Additional CBT Quotes by Traveller
1180 Adding an additional CBT Itinerary Quote to an expired approval
1181 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with an expired cbt itinerary quote -> And I am signed in as the Traveller -> And the "Cbt::ImportItineraryJob" is performed later -> When I enter and submit a cbt itinerary -> Then I should see a 'itinerary_importing' message for traveller
1182 Quote Issued Continue Button
1183 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with an expired cbt itinerary quote -> And I am signed in as the Traveller -> When I visit the current approval quotes -> Then I should see "Continue Booking"
1184 Trip Booked Regression Test
1185 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'trip_booked' approval with an expired cbt itinerary quote -> And I am signed in as the Traveller -> When I visit the current approval quotes -> Then I should not see "Continue Booking"
1186
1187Expired Itinerary Quotes Warning
1188 Authoriser is preventing from approving expired Itinerary Quotes
1189 Given there are all workflow users -> And there is a offline workflow with 'cost_auth_only' -> Given there is a 'quote_issued' approval with an expired cbt itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I click on the approval -> Then I should see a disabled Authorise Itinerary Quote button -> And I should see the expired itinerary quotes warning
1190 Authoriser can't make a forward authorisation on an expired Itinerary Quote
1191 Given there are all workflow users -> And there is a offline workflow with 'cost_auth_only' -> Given there is a 'quote_issued' approval with an expired cbt itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I click on the approval -> Then I should see a disabled Forward Authorisation button
1192 Warning is only displayed when a itinerary quote is expired
1193 Given there are all workflow users -> And there is a offline workflow with 'cost_auth_only' -> Given there is a 'quote_issued' approval with an itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I click on the approval -> Then I should see a enabled Authorise Itinerary Quote button -> And I should not see the expired itinerary quotes warning
1194
1195Preferred Itinerary Quotes
1196 Travaller reviews a Prefered Itinerary Quotes
1197 Given there are all workflow users -> And there is a offline workflow with 'cost_auth_only' -> And there is a traveller -> Given there is a 'quote_issued' approval with a preferred itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should see the highlighted preferred itinerary quote
1198
1199Retry Failed CBT Itinerary Import
1200 Retrying a failed Itinerary Import
1201 Given there is a Traveller -> And there are all cbt workflow users -> And the "Cbt::ImportItineraryJob" is performed later -> Given there is a cbt workflow with 'no_approval' -> And there is a 'itinerary_importing' approval with a failed itinerary import -> And I am signed in as the Traveller -> When I click on the approval -> And I click on "Retry Import" -> Then I should see a success message "The Itinerary Quote is being imported again."
1202
1203TMC can mark partially issued quotes as booked
1204 Marking an Approval without No Cost Authorsation as Booked
1205I, [2017-07-18T00:41:17.089146 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1206 Given there are all cbt workflow users -> And I am signed in as the TMC Consultant -> Given there is a cbt workflow with "no_approval" -> And there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> And the itinerary quote is imported as a partial quote -> When I mark the trip request as booked -> Then I should see a "trip_booked" message for tmc
1207 Approvals with Cost Authorisation cannot be Marked as Booked
1208 Given there are all cbt workflow users -> And I am signed in as the TMC Consultant -> Given there is a cbt workflow with "cost_auth_only" -> And there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> And the itinerary quote is imported as a partial quote -> When I visit the current approval quotes -> Then I should not be able to mark the trip request as booked
1209
1210Travel Details section
1211 Visit the Quote page when Approval has a live itinerary
1212 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And the company setting "live_itinerary_service" is enabled -> And the approval has Insight's UUID -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not see "Travel Details"
1213 Visit the Quote page when Approval has not a live itinerary
1214 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And the company setting "live_itinerary_service" is enabled -> And I am signed in as the Traveller -> When I click on the approval -> Then I should see "Travel Details"
1215
1216View CBT Itinerary Quote
1217 Traveller view CBT itinerary
1218 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I expect to be able to preview the itinerary quote
1219 Company admin can not view CBT itinerary
1220 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And there is a Company Admin -> And I am signed in as the Company Admin -> When I switch identity to the Traveller -> And I click on the approval -> Then I expect to not be able to preview the itinerary quote
1221
1222Passport expiration warning
1223 Traveller is warned if their passport is expiring soon
1224 Given there is a Traveller -> And I am signed in as the Traveller -> Given the Traveller has a Passport good for 1 year -> When I go to the "home" page -> Then I expect to not see a Passport Expiry warning for the Traveller with: -> When the Passport for the Traveller will expire in 6 months -> And I go to the "home" page -> Then I expect to see a Passport Expiry warning for the Traveller with: -> And I expect to see a link to my profile page in the warning -> When the Traveller renews their expiring passport for 10 years -> And I go to the "home" page -> Then I expect to not see a Passport Expiry warning for the Traveller with:
1225 Traveller is warned that their passport has expired
1226 Given there is a Traveller -> And I am signed in as the Traveller -> Given the Traveller has a Passport good for 1 year -> When I go to the "home" page -> Then I expect to not see a Passport Expiry error for the Traveller with: -> When the Passport for the Traveller expired 1 day ago -> And I go to the "home" page -> Then I expect to see a Passport Expiry error for the Traveller with: -> And I expect to see a link to my profile page in the error -> When the Traveller renews their expired passport for 10 years -> And I go to the "home" page -> Then I expect to not see a Passport Expiry error for the Traveller with:
1227
1228Authoriser search
1229 Search assigned approvals by uid, title and name
1230I, [2017-07-18T00:41:42.059059 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1231 Given there is a Traveller with: -> And there is a Traveller with: -> And there is an Authoriser with: -> And the Authoriser is assigned to "Jane" as an "authoriser" -> Given "Jane" has an approval with state "pending_approval", uid "TMP-KLJ" and title "MEL->NYC" -> And "Jane" has an approval with state "quote_issued", uid "TMP-JKL" and title "SYD->NYC" -> And "Alan" has an approval with state "quote_issued", uid "TMP-ALA" and title "LON->NYC" -> And I am signed in as the Authoriser -> When I click search icon -> And I search and verify uid 'TMP-KLJ' with search result count '1' -> And I search uid "TMP-KLJ" and verify profile_status "PROFILE ACTIVE" with search result count "1" -> And I search and verify title 'MEL->NYC' with search result count '1' -> And I search and verify last_name "Smith" with search result count '2' -> And I search and verify first_name "Jane" with search result count '2' -> And I search and verify uid 'TMP-JKL' with search result count '1' -> And I search and verify title 'SYD->NYC' with search result count '1' -> And the Authoriser transitions the "pending_approval" with "approve_request" -> And I click search icon -> And I search and verify uid 'TMP-KLJ' with search result count '1' -> And I search and verify title 'MEL->NYC' with search result count '1' -> And I search and verify last_name "Smith" with search result count '2' -> And I search and verify first_name "Jane" with search result count '2' -> And I search and verify uid 'TMP-JKL' with search result count '1' -> And I search and verify title 'SYD->NYC' with search result count '1' -> And I search uid "TMP-JKL" and verify profile_status "PROFILE ACTIVE" with search result count "1" -> And I search and verify uid 'TMP-ALA' with search result count '0' -> And I search and verify title 'LON->NYC' with search result count '0' -> And I search and verify first_name "Alan" with search result count '0'
1232 Search authoriser approvals by uid, title and name
1233 Given there is a Traveller with: -> And there is a Traveller with: -> And there is an Authoriser with: -> And the Authoriser is assigned to "Jane" as an "authoriser" -> Given the Authoriser has an approval with state "pending_approval", uid "TMP-AAA" and title "SYD->MEL" -> And I am signed in as the Authoriser -> When I click search icon -> And I search and verify uid "TMP-AAA" with search result count '1' -> And I search and verify title "SYD->MEL" with search result count '1' -> And I search and verify first_name "Simon" with search result count '1' -> And I search and verify last_name "Smith" with search result count '1' -> And I search uid "TMP-AAA" and verify profile_status "PROFILE ACTIVE" with search result count "1"
1234
1235company admin approvals search
1236 Search approvals by uid, title and name
1237 Given there is a Company Admin -> And the Company Admin has an approval with state "quote_issued", uid "TMP-KLJ" and title "LON->NYC" -> And the Company Admin has an approval with state "pending_approval", uid "TMP-MKL" and title "LON->NYC" -> Given I am signed in as the Company Admin -> When I click search icon -> Then I search and verify uid "TMP-KLJ" with search result count '1' -> And I search and verify title "LON->NYC" with search result count '2' -> And I search and verify uid "TMP-MKL" with search result count '1' -> And I search and verify for the Company Admin with search result count '2' -> And I search uid "TMP-KLJ" and verify profile_status "PROFILE ACTIVE" with search result count "1" -> And I search uid "TMP-MKL" and verify profile_status "PROFILE ACTIVE" with search result count "1"
1238
1239Risk Authoriser search
1240 Search assigned approvals by uid, title and name
1241I, [2017-07-18T00:41:54.431135 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1242 Given there is a Traveller with: -> And there is a Traveller with: -> And there is an Authoriser -> And the Authoriser is assigned to "Jane" as an "authoriser" -> And the Authoriser is assigned to "Alan" as an "authoriser" -> And there is a Risk Authoriser with: -> And the Risk Authoriser is assigned to "Jane" as an "risk_authoriser" -> Given "Jane" has an approval with state "pending_approval", uid "TMP-ALN" and title "SYD->NYC" -> And the trip request's country is dangerous -> And "Jane" has an approval with state "pending_approval", uid "TMP-KLJ" and title "MEL->NYC" -> And the trip request's country is dangerous -> And the Authoriser transitions the "pending_approval" with "approve_request" -> And I am signed in as the Risk Authoriser -> When I click search icon -> And I search and verify uid "TMP-KLJ" with search result count "1" -> And I search and verify title "MEL->NYC" with search result count "1" -> And I search and verify last_name "Smith" with search result count "1" -> And I search uid "TMP-KLJ" and verify profile_status "PROFILE ACTIVE" with search result count "1" -> And the Risk Authoriser transitions the "risk_approval_required" with "authorise_request" -> And I click search icon -> And I search and verify uid "TMP-KLJ" with search result count "1" -> And I search and verify title "MEL->NYC" with search result count "1" -> And I search and verify last_name "Smith" with search result count "1" -> And I search uid "TMP-KLJ" and verify profile_status "PROFILE ACTIVE" with search result count "1" -> And I search and verify uid "TMP-ALN" with search result count "0" -> And I search and verify title "SYD->NYC" with search result count "0" -> And I search and verify last_name "Alan" with search result count "0"
1243 Search risk authoriser approvals by uid, title and name
1244 Given there is a Traveller with: -> And there is a Traveller with: -> And there is an Authoriser -> And the Authoriser is assigned to "Jane" as an "authoriser" -> And the Authoriser is assigned to "Alan" as an "authoriser" -> And there is a Risk Authoriser with: -> And the Risk Authoriser is assigned to "Jane" as an "risk_authoriser" -> Given the Risk Authoriser has an approval with state "pending_approval", uid "TMP-AAA" and title "SYD->MEL" -> And I am signed in as the Risk Authoriser -> When I click search icon -> And I search and verify uid "TMP-AAA" with search result count "1" -> And I search and verify title "SYD->MEL" with search result count "1" -> And I search and verify last_name "Thompson" with search result count "1" -> And I search and verify first_name "Andy" with search result count "1" -> And I search uid "TMP-AAA" and verify profile_status "PROFILE ACTIVE" with search result count "1"
1245
1246TMC approvals search
1247 Search traveller approvals by uid, title and name
1248 Given there is a Traveller with: -> And "Jane" is managed by a TMC Consultant -> And there is a Traveller with: -> And "Alan" is managed by a different Agency Department -> Given "Jane" has an approval with state "pending_itinerary", uid "TMP-KLJ" and title "MEL->NYC" -> And "Jane" has an approval with state "pending_booking", uid "TMP-JKH" and title "NYC->MEL" -> And "Jane" has an approval with state "pending_booking", uid "TMP-JHH" and title "NYC->MEL" -> And "Alan" has an approval with state "pending_itinerary", uid "TMP-ALK" and title "SYD->NYC" -> And "Alan" has an approval with state "pending_booking", uid "TMP-AJJ" and title "NYC->SYD" -> And I am signed in as the TMC Consultant -> Then I search and verify uid "TMP-KLJ" with search result count '1' -> And I search and verify title "MEL->NYC" with search result count '1' -> And I search and verify uid "TMP-JKH" with search result count '1' -> And I search and verify title "NYC->MEL" with search result count '2' -> And I search and verify uid "TMP-ALK" with search result count '0' -> And I search and verify title "SYD->NYC" with search result count '0' -> And I search and verify uid "TMP-AJJ" with search result count '0' -> And I search and verify title "NYC->SYD" with search result count '0' -> And I search and verify first_name "Alan" with search result count '0' -> And I search and verify first_name "Jane" with search result count '3' -> And I search and verify last_name "Smith" with search result count '3'
1249 Search archived traveller approvals by uid, title and name
1250 Given there is a Traveller with: -> And "Jane" is managed by a TMC Consultant -> And there is a Traveller with: -> And "Alan" is managed by a different Agency Department -> Given "Jane" has an approval with state "pending_itinerary", uid "TMP-KLJ" and title "MEL->NYC" -> And "Jane" has been archived -> When I sign in as the TMC Consultant -> Then I search and verify uid "TMP-KLJ" with search result count '1' -> And I search and verify title "MEL->NYC" with search result count '1' -> And I search uid "TMP-KLJ" and verify profile_status "PROFILE INACTIVE" with search result count "1"
1251
1252traveller approvals search
1253 Search approvals by uid, title and name
1254 Given there is a Traveller -> And the Traveller has an approval with state "pending_approval", uid "TMP-YKL" and title "MEL->SYD" -> And the Traveller has an approval with state "pending_approval", uid "TMP-KLJ" and title "SYD->MEL" -> And the Traveller has an approval with state "pending_approval", uid "TMP-KKJ" and title "SYD->MEL" -> Given I am signed in as the Traveller -> When I click search icon -> Then I search and verify uid "TMP-YKL" with search result count '1' -> And I search and verify title "MEL->SYD" with search result count '1' -> And I search and verify title "SYD->MEL" with search result count '2' -> And I search and verify uid "TMP-KLJ" with search result count '1' -> And I search and verify for the Traveller with search result count '3' -> And I search uid "TMP-YKL" and verify profile_status "PROFILE ACTIVE" with search result count "1"
1255
1256travel arranger approvals search
1257 Search traveller approvals by uid, title and name
1258 Given there is a Traveller with: -> And "Jane" has an approval with state "pending_approval", uid "TMP-KLJ" and title "MEL->NYC" -> And there is a Traveller with: -> And "Scott" has an approval with state "pending_approval", uid "TMP-KKL" and title "MEL->NYC" -> And there is a Travel Arranger with: -> And "Alan" has an approval with state "quote_issued", uid "TMP-AJK" and title "SYD-MEL" -> And "Alan" is assigned to "Jane" as a "travel_arranger" -> And "Alan" is assigned to "Scott" as a "travel_arranger" -> And "Alan" is in group "All Employees" -> Given I am signed in as "Alan" -> When I switch identity to "Jane" -> And I click search icon -> And I search and verify uid "TMP-KLJ" with search result count '1' -> And I search and verify uid "TMP-AJK" with search result count '1' -> And I search and verify title "MEL->NYC" with search result count '1' -> And I search and verify title "SYD-MEL" with search result count '1' -> And I search and verify first_name "Jane" with search result count '1' -> And I search and verify last_name "Smith" with search result count '2' -> And I search and verify uid "TMP-KKL" with search result count '0' -> And I search and verify first_name "Scott" with search result count '0' -> And I search uid "TMP-KLJ" and verify profile_status "PROFILE ACTIVE" with search result count "1" -> When I switch identity to "Scott" -> And I search and verify uid "TMP-KLJ" with search result count '0' -> And I search and verify uid "TMP-AJK" with search result count '1' -> And I search and verify title "MEL->NYC" with search result count '1' -> And I search and verify title "SYD-MEL" with search result count '1' -> And I search and verify first_name "Jane" with search result count '0' -> And I search and verify first_name "Scott" with search result count '1' -> And I search and verify last_name "Smith" with search result count '2' -> And I search and verify uid "TMP-KKL" with search result count '1' -> And I search uid "TMP-AJK" and verify profile_status "PROFILE ACTIVE" with search result count "1"
1259
1260Agency Branch CBT API Credentials
1261 Creating new credentials
1262 Given I am signed in as a Site Admin -> And an Agency already exists -> When I visit the Agency management page -> And I edit the Agency Branch -> When I view the CBT Credentials -> Then I should see that no CBT Credentials are defined -> When I create new CBT Credentials -> And I create CBT Credentials with API Key "UBER_COOL_API_KEY_D00D" -> Then I should see CBT Credentials configured with API Key "UBER_COOL_API_KEY_D00D"
1263 Editing existing credentials
1264 Given I am signed in as a Site Admin -> And an Agency already exists -> When I visit the Agency management page -> And I edit the Agency Branch -> Given There exist CBT Credentials configured with API Key "SOME_OLD_API_KEY" -> When I view the CBT Credentials -> Then I should see CBT Credentials configured with API Key "SOME_OLD_API_KEY" -> When I edit the CBT Credentials -> And I save CBT Credentials with API Key "A_NEW_API_KEY" -> Then I should see CBT Credentials configured with API Key "A_NEW_API_KEY"
1265
1266Agency Branch Set Default
1267 Setting a default Agency Branch
1268 Given I am signed in as a Site Admin -> And an Agency already exists -> When I visit the Agency management page -> And I open the edit Agency page -> When I nominate the Agency Branch as the default -> Then I should be able to Update the Agency Branch -> And I should see a default in the Agency Branch list
1269
1270Site Admin Agency Company Management
1271 Manage Agency Company
1272 Given I am signed in as a Site Admin -> And an Agency already exists -> Given there is a Company -> When I visit the Agency Companies Tab -> And I associate the Company with the Agency -> And I check "Use working hours" -> And I check "Saturday" -> And I fill in "agency_company_work_week_saturday_from" with "5:00 AM" -> And I fill in "agency_company_work_week_saturday_to" with "3:00 PM" -> And I fill in "agency_company_working_hours_warning_message" with "Warning!" -> And I click on "Submit" -> Then I should see a success message "Agency Company was successfully created." -> And I should have associated a Company -> When I click on "Edit" -> Then the "Use working hours" input should be checked -> And I should see disabled inputs within ".agency_company_company_id" -> And I should see "5:00 AM" in "agency_company_work_week_saturday_from" -> And I should see "3:00 PM" in "agency_company_work_week_saturday_to" -> And I should see "Warning!" in "agency_company_working_hours_warning_message" -> When I uncheck "Monday" -> And I click on "Update" -> Then I should see a success message "Agency Company was successfully updated." -> When I click on "Edit" -> Then I should see checkbox "monday" unchecked
1273 Removing a Company from an Agency
1274 Given I am signed in as a Site Admin -> And an Agency already exists -> Given the Agency has an associated Company -> When I visit the Agency Companies Tab -> And I remove the Company from the Agency -> Then I should see a success message "Agency Company was successfully destroyed." -> And I should have removed a Company association
1275
1276Site Admin Consultant Management
1277 Adding a Consultant to an Agency
1278 Given I am signed in as a Site Admin -> And an Agency already exists -> And the Agency has an associated Company -> When I visit the Consultants Tab -> And I add a new Consultant -> Then I should see a success message "Consultant was successfully created." -> And I should have added a Consultant
1279 Updating a Consultant
1280 Given I am signed in as a Site Admin -> And an Agency already exists -> And the Agency has an associated Company -> Given the Agency has a Consultant -> When I visit the Consultants Tab -> And I update the Consultant -> Then I should see a success message "Consultant was successfully updated." -> And I should have updated the Consultant
1281 Removing an Consultant
1282 Given I am signed in as a Site Admin -> And an Agency already exists -> And the Agency has an associated Company -> Given the Agency has a Consultant -> When I visit the Consultants Tab -> And I archive the Consultant -> Then I should see a success message "Consultant was successfully archived." -> And I should have archived the Consultant -> When I restore the archived Consultant -> Then I should see a success message "Consultant was successfully unarchived." -> And I should have restored the Consultant
1283
1284Site Admin agency department Management
1285 Adding a agency department to an Agency
1286 Given I am signed in as a Site Admin -> And an Agency already exists -> And the Agency has an associated Company -> When I add a new Agency Department -> Then I should see a success message "Agency Department was successfully created." -> And I should have added a Agency Department
1287 Updating an agency department
1288 Given I am signed in as a Site Admin -> And an Agency already exists -> And the Agency has an associated Company -> Given the Agency has an Agency Department -> When I update the Agency Department -> Then I should see a success message "Agency Department was successfully updated." -> And I should have updated the Agency Department
1289 Removing an agency department
1290 Given I am signed in as a Site Admin -> And an Agency already exists -> And the Agency has an associated Company -> Given the Agency has an Agency Department -> And I am on the Agency Departments Tab -> When I archive the Agency Department -> Then I should see a success message "Agency Department was successfully archived." -> And I should have archived the Agency Department -> When I restore the archived agency department -> Then I should see a success message "Agency Department was successfully unarchived." -> And I should have restored the Agency Department
1291
1292Site Admin Agency Management
1293 Add Agency with Errors
1294 Given I am signed in as a Site Admin -> When I visit the Agency management page -> And I click on "Add New" -> Then I should see "New Agency" -> And I click on "Submit" -> Then I should see an error message "Name can't be blank" -> And I should see an error message "Billing category can't be blank"
1295 Add Agency
1296 Given I am signed in as a Site Admin -> When I visit the Agency management page -> And I click on "Add New" -> Then I should see "New Agency" -> When I fill in "Name" with "ACME Travel" -> And I select "Preferred TMC" from "Billing category" -> And I select "(GMT+10:00) Melbourne" from "Time zone" -> And I click on "Submit" -> Then I should see a success message "Agency was successfully created." -> When I click on "Edit" -> Then I should see "ACME Travel" in "Name" -> And I should see "preferred_tmc" in "Billing category" -> And I should see "Melbourne" selected from "Time zone"
1297 Update Agency
1298 Given I am signed in as a Site Admin -> Given an Agency already exists -> When I visit the Agency management page -> And I open the edit Agency page -> When I fill in "Name" with "ACME Travel" -> And I select "Travelport Reseller" from "Billing category" -> And I select "(GMT+10:00) Melbourne" from "Time zone" -> And I click on "Update" -> Then I should see a success message "Agency was successfully updated." -> When I click on "Edit" -> Then I should see "ACME Travel" in "Name" -> And I should see "tvp_reseller" in "Billing category" -> And I should see "Melbourne" selected from "Time zone"
1299 Delete Agency
1300 Given I am signed in as a Site Admin -> Given an Agency already exists -> When I visit the Agency management page -> And I archive the existing Agency -> Then I should see a success message "Agency was successfully archived." -> And I should have archived the Agency -> When I restore the archived Agency -> Then I should see a success message "Agency was successfully unarchived." -> And I should have restored the Agency
1301 Show disabled archive button if agency is assigned to a company
1302 Given I am signed in as a Site Admin -> Given an Agency already exists -> And the Agency has an associated Company -> When I visit the Agency management page -> Then I should see disabled archive button for the Agency
1303
1304Add/Remove consultant from agency department
1305 Should see assigned consultant to the Agency Department
1306 Given I am signed in as a Site Admin -> And an Agency already exists -> And the Agency has an associated Company -> And the Agency has a Consultant -> And the Agency has an Agency Department -> Given I am on the consultant's Departments page -> When I assign the Consultant to the Agency Department -> Then I should see the Agency Department in the assignments -> And the Consultant should be assigned to the Agency Department
1307 Remove assigned consultant from the Agency Department
1308 Given I am signed in as a Site Admin -> And an Agency already exists -> And the Agency has an associated Company -> And the Agency has a Consultant -> And the Agency has an Agency Department -> Given the Consultant is assigned to the Agency Department -> And I am on the consultant's Departments page -> When I remove the Consultant from the Agency Department -> Then I should not see the Agency Department in the assignments -> And the Consultant should not be assigned to the Agency Department
1309
1310Bulk Resource Exporting
1311 Bulk Exporting Users to a ATPI User Resource Exporter
1312 Given I am signed in as a Site Admin -> Given there is a Company with a ATPI User Resource Exporter -> And all Create User Requests to the ATPI User Resource Exporter will be successful -> And the Company has Travellers exported to the ATPI User Resource Exporter -> And the Company has Un-Exported Travellers -> When I visit the Edit Company page -> And I click on Bulk Export Profiles for the ATPI User Resource Exporter -> Then I should see a warning for exporting ATPI Profiles -> When I "Continue" the modal -> Then I should see a success message like "Bulk Exporting user profiles commenced" -> Then all Un-Exported Travellers should be exported to the ATPI User Resource Exporter
1313 Bulk Exporting Users to a CBT User Resource Exporter
1314I, [2017-07-18T00:43:19.376131 #46702] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
1315I, [2017-07-18T00:43:19.563474 #46702] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
1316I, [2017-07-18T00:43:19.749526 #46702] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
1317 Given I am signed in as a Site Admin -> Given there is a Company with a CBT User Resource Exporter -> And all Create User Requests to the CBT User Resource Exporter will be successful -> And the Company has Travellers exported to the CBT User Resource Exporter -> And the Company has Un-Exported Travellers -> When I visit the Edit Company page -> And I click on Bulk Export Profiles for the CBT User Resource Exporter -> Then I should see a warning for exporting CBT Profiles -> When I "Continue" the modal -> Then I should see a success message like "Bulk Exporting user profiles commenced" -> And all Un-Exported Travellers should be exported to the CBT User Resource Exporter
1318 Bulk Exporting Users to a Tramada User Resource Exporter
1319 Given I am signed in as a Site Admin -> Given there is a Company with a Tramada User Resource Exporter -> And all Create User Requests to the Tramada User Resource Exporter will be successful -> And the Company has Travellers exported to the Tramada User Resource Exporter -> And the Company has Un-Exported Travellers -> When I visit the Edit Company page -> And I click on Bulk Export Profiles for the Tramada User Resource Exporter -> Then I should see a warning for exporting Tramada Profiles -> When I "Continue" the modal -> Then I should see a success message like "Bulk Exporting user profiles commenced" -> And all Un-Exported Travellers should be exported to the Tramada User Resource Exporter
1320
1321Company HR Feeds
1322 Edit HR Feeds
1323 Given I am signed in as a Site Admin -> Given there exists a Company named "Feed Me" with hr feeds -> When I visit the Companies page -> And I click on Edit for the Company named "Feed Me" -> And I view the Company HR Feeds -> And I should be on the HR Feeds page for Company named "Feed Me" -> And I fill in tag input ".hr_feed_failure_emails" with "failure@example.com,failure1@example.com" -> And I fill in tag input ".hr_feed_success_emails" with "success@example.com,success1@example.com" -> And I click on "Update" -> Then I should see a success message "HR Feeds have been updated" -> And within ".hr_feed_resources" I should not see "departments" -> And within ".hr_feed_resources" I should see "profiles" -> And within ".hr_feed_resources" I should not see "cost_centres" -> And I should see "failure@example.com" -> And I should see "failure1@example.com" -> And I should see "success@example.com" -> And I should see "success1@example.com"
1324
1325Company Resource Exporters
1326 View Resource Exporters
1327 Given I am signed in as a Site Admin -> Given there exists a Company named "WHAMCOR" with "atpi_user_exporter" exporter -> When I visit the Companies page -> And I click on Edit for the Company named "WHAMCOR" -> And I view the Company Resource Exporters -> Then I should be on the Resource Exporters page for Company named "WHAMCOR" -> And I should see "Users::Atpi" -> And I should see ":license_key"
1328 View Resource Exporters
1329 Given I am signed in as a Site Admin -> Given there exists a Company named "COOLCOR" with "cbt_user_exporter" exporter -> When I visit the Companies page -> And I click on Edit for the Company named "COOLCOR" -> And I view the Company Resource Exporters -> Then I should be on the Resource Exporters page for Company named "COOLCOR" -> And I should see "Users::Cbt" -> And I should see "{}"
1330 View Resource Exporters
1331 Given I am signed in as a Site Admin -> Given there exists a Company named "ZERCORP" with "serko_user_exporter" exporter -> When I visit the Companies page -> And I click on Edit for the Company named "ZERCORP" -> And I view the Company Resource Exporters -> Then I should be on the Resource Exporters page for Company named "ZERCORP" -> And I should see "Users::Serko" -> And I should see "{}"
1332 View Resource Exporters
1333 Given I am signed in as a Site Admin -> Given there exists a Company named "TRADCORP" with "tramada_user_exporter" exporter -> When I visit the Companies page -> And I click on Edit for the Company named "TRADCORP" -> And I view the Company Resource Exporters -> Then I should be on the Resource Exporters page for Company named "TRADCORP" -> And I should see "Users::Tramada" -> And I should see ":company_auth"
1334 View Resource Exporters
1335 Given I am signed in as a Site Admin -> Given there exists a Company named "ACMECORP" with "cbt_company_exporter" exporter -> When I visit the Companies page -> And I click on Edit for the Company named "ACMECORP" -> And I view the Company Resource Exporters -> Then I should be on the Resource Exporters page for Company named "ACMECORP" -> And I should see "Companies::Cbt" -> And I should see "{}"
1336 View Resource Exporters
1337 Given I am signed in as a Site Admin -> Given there exists a Company named "ACMECORP2" with "cbt_company_department_exporter" exporter -> When I visit the Companies page -> And I click on Edit for the Company named "ACMECORP2" -> And I view the Company Resource Exporters -> Then I should be on the Resource Exporters page for Company named "ACMECORP2" -> And I should see "CompanyDepartments::Cbt" -> And I should see "{}"
1338
1339Company
1340 Cannot Add Company outside an agency context
1341 Given I am signed in as a Site Admin -> When I click on "Companies" -> Then I should not see "Add New"
1342 Add Company inside an agency context
1343 Given I am signed in as a Site Admin -> And there is an Agency Branch named "Travel Plan" with cbt agency credential -> And there is an Agency Branch named "OG Travel" with tramada agency settings -> And there is an Agency Branch named "Atpi" with atpi agency settings -> When I visit the Agency management page -> And I click on "Travel Plan" -> And I click on the Agency Companies Tab -> Then I should see "Add New Company" -> When I click on "Add New Company" -> Then I should see "New Company" -> When I fill in "Name" with "ABC Client" -> And I fill in "Code" with "abc_client" -> And I fill in "Subdomain" with "abcclient" -> And I select "TMC Agency" from "Billing category" -> And I select "Premium" from "Pricing tier" -> And I add a "Travel Plan" CBT User Exporter with "9876543210" as the company id -> And I add an "OG Travel" Tramada User Exporter with credentials "COMPANY-ID" and "COMPANY-KEY" -> And I add an "atpi" Atpi User Exporter with license_key "abc123" -> And I click on "Submit" -> Then I should see a success message "Company was successfully created." -> When I click on "Companies" -> And I click on "Edit" -> Then I should see "ABC Client" in "Name" -> And I should see "tmc_agency" in "Billing category" -> And I should see "premium" in "Pricing tier" -> And I should see a "Travel Plan" CBT User Exporter with "9876543210" as the company id -> And I should see an "OG Travel" Tramada User Exporter with credentials "COMPANY-ID" and "COMPANY-KEY" -> And I should see an "atpi" Atpi User Exporter with license_key "abc123"
1344 Edit Company
1345 Given I am signed in as a Site Admin -> And there exists a Company named "Recalcitrant School" -> When I click on "Companies" -> And I click on "Edit" -> Then I should see "Edit Company (Recalcitrant School)" -> When I select "Corporate Direct" from "Billing category" -> And I select "Premium Plus" from "Pricing tier" -> And I click on "Update" -> Then I should see a success message "Company was successfully updated." -> When I click on "Edit" -> Then I should see "corporate_direct" in "Billing category" -> And I should see "premium_plus" in "Pricing tier"
1346
1347Archived Companies
1348 Archiving a Company
1349 Given I am signed in as a Site Admin -> And there exists a Company named "Recalcitrant School" -> When I visit the Companies page -> And I click on "Archive" -> Then I should see "Company was archived successfully."
1350 With a deleted Company
1351 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" -> And the Company named "Perfidious College" is archived -> When I visit the Companies page -> And I select "Archived" from "Archived" -> And I click on "Search" -> Then I should see "Perfidious College" -> When I click on Edit for the Company named "Perfidious College" -> Then I should see an error message "This Company is Archived."
1352
1353Company Search
1354 Default filtering Archived Companies
1355 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" with code "perfc" -> And the Company named "Perfidious College" is archived -> And there exists a Company named "Bastion of Truth" with code "trthb" -> And there exists a Company named "Ministry of Truth" with code "trthm" -> When I visit the Companies page -> Then I should see "Bastion of Truth" -> And I should see "Ministry of Truth" -> And I should see "Filtered to 2 of 4 total"
1356 Filtering by Archived
1357 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" with code "perfc" -> And the Company named "Perfidious College" is archived -> And there exists a Company named "Bastion of Truth" with code "trthb" -> And there exists a Company named "Ministry of Truth" with code "trthm" -> When I visit the Companies page -> And I select "Archived" from "Archived" -> And I click on "Search" -> Then I should see "Perfidious College" -> And I should see "Filtered to 1 of 4 total"
1358 Viewing "all"
1359 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" with code "perfc" -> And the Company named "Perfidious College" is archived -> And there exists a Company named "Bastion of Truth" with code "trthb" -> And there exists a Company named "Ministry of Truth" with code "trthm" -> When I visit the Companies page -> And I select "All" from "Archived" -> And I click on "Search" -> Then I should see "Perfidious College" -> And I should see "Bastion of Truth" -> And I should see "Ministry of Truth" -> And I should see "Filtered to 3 of 4 total"
1360 Searching and Filtering by Archived
1361 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" with code "perfc" -> And the Company named "Perfidious College" is archived -> And there exists a Company named "Bastion of Truth" with code "trthb" -> And there exists a Company named "Ministry of Truth" with code "trthm" -> When I visit the Companies page -> And I fill in "Name" with "Truth" -> And I select "Archived" from "Archived" -> And I click on "Search" -> Then I should not see "Ministry of Truth" -> And I should not see "Bastion of Truth" -> And I should see "Filtered to 0 of 4 total"
1362 Filtering by search field
1363 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" with code "perfc" -> And the Company named "Perfidious College" is archived -> And there exists a Company named "Bastion of Truth" with code "trthb" -> And there exists a Company named "Ministry of Truth" with code "trthm" -> When I visit the Companies page -> And I fill in "Name" with "Bast" -> And I click on "Search" -> Then I should see "Bastion of Truth" -> And I should see "" -> And I should see "Filtered to 1 of 4 total" -> And I should not see "Perfidious"
1364 Filtering by search field
1365 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" with code "perfc" -> And the Company named "Perfidious College" is archived -> And there exists a Company named "Bastion of Truth" with code "trthb" -> And there exists a Company named "Ministry of Truth" with code "trthm" -> When I visit the Companies page -> And I fill in "Name" with "Bastion of Truth" -> And I click on "Search" -> Then I should see "Bastion of Truth" -> And I should see "" -> And I should see "Filtered to 1 of 4 total" -> And I should not see "Perfidious"
1366 Filtering by search field
1367 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" with code "perfc" -> And the Company named "Perfidious College" is archived -> And there exists a Company named "Bastion of Truth" with code "trthb" -> And there exists a Company named "Ministry of Truth" with code "trthm" -> When I visit the Companies page -> And I fill in "Name" with "Truth" -> And I click on "Search" -> Then I should see "Bastion of Truth" -> And I should see "Ministry of Truth" -> And I should see "Filtered to 2 of 4 total" -> And I should not see "Perfidious"
1368 Filtering by search field
1369 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" with code "perfc" -> And the Company named "Perfidious College" is archived -> And there exists a Company named "Bastion of Truth" with code "trthb" -> And there exists a Company named "Ministry of Truth" with code "trthm" -> When I visit the Companies page -> And I fill in "Code" with "perfc" -> And I click on "Search" -> Then I should see "" -> And I should see "" -> And I should see "Filtered to 0 of 4 total" -> And I should not see "Perfidious"
1370 Filtering by search field
1371 Given I am signed in as a Site Admin -> And there exists a Company named "Perfidious College" with code "perfc" -> And the Company named "Perfidious College" is archived -> And there exists a Company named "Bastion of Truth" with code "trthb" -> And there exists a Company named "Ministry of Truth" with code "trthm" -> When I visit the Companies page -> And I fill in "Code" with "trth" -> And I click on "Search" -> Then I should see "Bastion of Truth" -> And I should see "Ministry of Truth" -> And I should see "Filtered to 2 of 4 total" -> And I should not see "Perfidious"
1372
1373Export Errors Details
1374 Filtering timeout errors
1375 Given I am signed in as a Site Admin -> Given there is a Traveller -> And the Traveller has a timeout CBT User Export Record -> When I click on "Export Errors" -> And I select "timeout" from the State filter -> Then I should see the timeout export record
1376 Retrying CBT Errored Export Jobs
1377I, [2017-07-18T00:44:04.157824 #46702] INFO -- : Call to _post /v1/identities/sync has been disabled. Set InsightClient.config.enabled to true to enable
1378 Given I am signed in as a Site Admin -> Given there is a Traveller -> And the Traveller has a errored CBT User Export Record that can be succesfully retried -> When I click on "Export Errors" -> And I click on "Retry" -> Then I should see a success message "User has been queued for re-export" -> And the CBT User Export Record for the Traveller should be exported
1379 Retrying ATPI Timeout Export Errors
1380 Given I am signed in as a Site Admin -> Given there is a Traveller -> And the Traveller has a timeout ATPI User Export Record that can be succesfully retried -> When I click on "Export Errors" -> And I click on "Retry" -> Then I should see a success message "User has been queued for re-export" -> And the ATPI User Export Record for the Traveller should be exported
1381
1382Loyalty Providers Listing
1383 Viewing Loyalty Providers
1384 Given I am signed in as a Site Admin -> When I click on "Loyalty Providers" -> Then I should see "AC" -> And I should see "airline" -> And I should see "Air Canada"
1385 Filtering by Category
1386 Given I am signed in as a Site Admin -> When I click on "Loyalty Providers" -> And I fill in "IATA Code" with "AC" -> And I select "hotel" from "Category" -> And I click on "Search" -> Then I should see "AC" -> And I should see "hotel" -> And I should see "Atel Hotels" -> And I should not see "Air Canada" -> And I should see "Filtered to 1 of"
1387 Filtering Loyalty Providers
1388 Given I am signed in as a Site Admin -> When I click on "Loyalty Providers" -> And I fill in "IATA Code" with "QF" -> And I click on "Search" -> Then I should see "QF" -> And I should see "Qantas Frequent Flyer" -> And I should see "Filtered to 1 of" -> And I should not see "AC" -> And I should not see "Air Canada"
1389 Filtering Loyalty Providers
1390 Given I am signed in as a Site Admin -> When I click on "Loyalty Providers" -> And I fill in "IATA Code" with "AC" -> And I click on "Search" -> Then I should see "Air Canada" -> And I should see "Atel Hotels" -> And I should see "Filtered to 3 of" -> And I should not see "QF" -> And I should not see "Qantas Frequent Flyer"
1391 Filtering Loyalty Providers
1392 Given I am signed in as a Site Admin -> When I click on "Loyalty Providers" -> And I fill in "Name" with "Qantas" -> And I click on "Search" -> Then I should see "QF" -> And I should see "Qantas Frequent Flyer" -> And I should see "Filtered to 1 of" -> And I should not see "AC" -> And I should not see "Air Canada"
1393 Filtering Loyalty Providers
1394 Given I am signed in as a Site Admin -> When I click on "Loyalty Providers" -> And I fill in "Name" with "Frequent" -> And I click on "Search" -> Then I should see "Emirates Frequent Flyer" -> And I should see "Frequent Flyer Merpati" -> And I should see "Filtered to 14 of" -> And I should not see "AC" -> And I should not see "Air Canada"
1395
1396Profiles Listing
1397 Viewing All Profiles
1398 Given I am signed in as a Site Admin -> And the Company has employees with: -> When I click on "Profiles" -> Then I should see "Amanda" -> And I should see "Rene" -> And I should see "Volkmanny" -> And I should see "Wilbert" -> And I should see "Keon" -> And I should see "Rodrick" -> And I should see "Jennifer" -> And I should see "Antone" -> And I should see "Noemy" -> And I should see "Kyra" -> And I should see "Showing all of 10"
1399 No results
1400 Given I am signed in as a Site Admin -> And the Company has employees with: -> When I click on "Profiles" -> And I fill in "Email" with "albert@skyline.com" -> And I click on "Search" -> Then I should see "— No results —" -> And I should see "Filtered to 0 of 10 total."
1401 Searching Profiles
1402 Given I am signed in as a Site Admin -> And the Company has employees with: -> When I click on "Profiles" -> And I fill in "Email" with "VOLKMAN" -> And I click on "Search" -> Then I should see "amanda.volkman@schaden.co.uk" -> And I should see "Amanda" -> And I should see "Filtered to 1 of 10" -> And I should not see "Rene"
1403 Searching Profiles
1404 Given I am signed in as a Site Admin -> And the Company has employees with: -> When I click on "Profiles" -> And I fill in "Email" with "Yundt" -> And I click on "Search" -> Then I should see "yundt.antone@wilderman.biz" -> And I should see "noemy_yundt@hettingerrowe.biz" -> And I should see "Filtered to 2 of 10" -> And I should not see "Jennifer"
1405 Searching Profiles
1406 Given I am signed in as a Site Admin -> And the Company has employees with: -> When I click on "Profiles" -> And I fill in "Email" with "co.uk" -> And I click on "Search" -> Then I should see "boyer.co.uk" -> And I should see "willrippin.co.uk" -> And I should see "Filtered to 4 of 10" -> And I should not see ".biz"
1407 Searching Profiles
1408 Given I am signed in as a Site Admin -> And the Company has employees with: -> When I click on "Profiles" -> And I fill in "Last name" with "Volkman" -> And I click on "Search" -> Then I should see "Amanda" -> And I should see "Rene" -> And I should see "Filtered to 2 of 10" -> And I should not see "Wyman"
1409
1410Support
1411 Support user can log in to support
1412 Given There is a support user with email "bob@example.com" -> When I go to the "support" page -> And I fill in "Username" with "bob@example.com" -> And I fill in "Password" with "P@ssw0rd" -> And I click on "Sign In" -> Then I should be on the "support" page -> And I should see "Welcome Support User"
1413 Support user signs out
1414 Given I am signed in to TMP support -> When I go to the "support" page -> And I click on "Sign out" -> Then I should be on the "site admin sign in" page
1415
1416Support user switcher
1417 Support user can see the user switcher form
1418 Given I am signed in to TMP support -> When I go to the "support" page -> Then I should see a "new support session" form -> And I should see a "Sign in as" field in the "new support session" form -> And I should see a "Sign in" button in the "new support session" form
1419 Support user logs in as an arbitrary traveller then returns to support
1420 Given I am signed in to TMP support -> And there is a company "ACME" -> And there is an "ACME" traveller "alice@acme.com" -> And there is an "ACME" traveller "betty@acme.com" -> And I am on the "support" page -> When I fill in "Sign in as" with "alice@acme.com" -> And I click on "Sign in" -> Then I should be signed in as "alice@acme.com" -> When I switch to user "betty@acme.com" -> Then I should be signed in as "betty@acme.com" -> When I click on "Account" -> And I click on "Logout" -> Then I should be on the "support" page
1421 Support user uses an invalid user email
1422 Given I am signed in to TMP support -> And there is a company "ACME" -> And there is an "ACME" traveller "alice@acme.com" -> And I am on the "support" page -> When I switch to user "bob@acme.com" -> Then I should see "User not found" -> And I should be on the "support" page
1423
1424Add/Remove agency from agency department
1425 Should see assigned agency to the Agency Department
1426 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> And my Agency has an Agency Department -> Given I am on the "Groups" tab on my profile page -> When I assign myself to the Agency Department -> Then I should see the Agency Department in the assignments -> And I should be assigned to the Agency Department
1427 Remove assigned agency from agency department
1428 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> And my Agency has an Agency Department -> Given I am assigned to the Agency Department -> And I am on the "Groups" tab on my profile page -> When I remove myself from the Agency Department -> Then I should not see the Agency Department in the assignments -> And I should not be assigned to the Agency Department
1429
1430Allow TMC to view and upload itinerary for booking required approvals
1431 View approvals & upload Quotes
1432 Given there is a Traveller -> And the Traveller is managed by a TMC Consultant -> And the Traveller has an approval with state "pending_cbt_itinerary" -> When I sign in as the TMC Consultant -> Then I should see "BOOKING REQUIRED" -> When I click on the last created approval -> And I fill in 'Comments' with 'MEL -> SYD' -> And I fill in 'Total cost' with '800.0' -> And I date-pick in 'Authorisation Deadline' 1 days in the future -> And I fill in the timepicker with '10:00 AM' -> And I upload a quote pdf -> And I click on 'Submit Quotes' -> Then I should see a message 'Itinerary Uploaded' -> And I should see 'MEL -> SYD' -> And I should see tomorrow at '10:00 AM'
1433
1434TMC Company Switching
1435 Changing Company from the Dashboard and submitting an Itinerary Quote
1436 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> Given I am assigned to an agency department belonging to another company -> And there is a pending itinerary approval belonging to the other company -> When I click on the Dashboard link -> Then I should not see the approval -> When I select the other company from the Company Selector -> Then I should have changed to the other company -> And I should see the approval -> When I visit the approval quotes page -> And I upload an Itinerary Quote -> Then I should have submitted a Approval
1437 Visiting an Approval from another Company via a Link
1438 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> Given I am assigned to an agency department belonging to another company -> And there is a pending itinerary approval belonging to the other company -> When I visit a link to the Approval -> Then I should have changed to the other company
1439
1440TMC personal profile
1441 Updating my Profile
1442 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> When I go to the "edit profile" page -> And I fill in "First Name" with "Janette" -> And I fill in "Last Name" with "Travelconsultant" -> And I select "Ms" from "Title" -> And I select "Female" from "Gender" -> And I click on "Profile" -> And I fill in "Organisation" with "Example TMC Consultant" -> And I select "(GMT-06:00) Guadalajara" from "Preferred Time Zone" -> And I click on "Update Profile" -> Then I should see a success message "Your profile was updated successfully."
1443
1444Allow TMC to view pre trip approved itineraries
1445 TMC can see pre trip approved approval
1446 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> And there is a 'pending_approval' approval -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the trip -> Then I should see a success message like "Request for .* has been authorised!" -> When I sign out -> And I sign in as the TMC Consultant -> Then I should see 'PRE TRIP AUTHORISED'
1447
1448TMC Profiles List Filtering
1449 Display all users by default
1450 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> Given the Company has employees with: -> When I visit the Traveller Profiles page -> Then I should see the active tab "Managed Profiles" -> And I should not see "All Profiles" -> And I should not see "Archived Profiles" -> And I should see the profile for "George" on tab "managed_profiles" -> And I should see the profile for "Janet" on tab "managed_profiles"
1451 Filter users by first name
1452 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> Given the Company has employees with: -> When I visit the Traveller Profiles page -> And I filter profiles by "Name" with "Geor" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles"
1453 Filter users by last name
1454 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> Given the Company has employees with: -> When I visit the Traveller Profiles page -> And I filter profiles by "Name" with "Tes" on tab "managed_profiles" -> Then I should see the profile for "Janet" on tab "managed_profiles" -> And I should not see the profile for "George" on tab "managed_profiles"
1455 Filter users by email
1456 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> Given the Company has employees with: -> When I visit the Traveller Profiles page -> And I filter profiles by "Email" with "george@example" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles"
1457 Filter users by employee id
1458 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> Given the Company has employees with: -> When I visit the Traveller Profiles page -> And I filter profiles by "Employee ID" with "4321" on tab "managed_profiles" -> Then I should see the profile for "Janet" on tab "managed_profiles" -> And I should not see the profile for "George" on tab "managed_profiles"
1459 Filter uses name by default
1460 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> Given the Company has employees with: -> When I visit the Traveller Profiles page -> And I filter profiles with "orge" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles"
1461 Filter updates when type is changed
1462 Given there is a TMC Consultant -> And I am signed in as the TMC Consultant -> Given the Company has employees with: -> When I visit the Traveller Profiles page -> And I filter profiles with "example.com" on tab "managed_profiles" -> And I change the profile filter type to "Email" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles" -> And I should not see "Nothing found" on tab "managed_profiles"
1463
1464TMC travellers profile
1465 Creating a traveller
1466 Given there is an Agency Department named "Royalty" -> And there is a TMC Consultant -> And the TMC Consultant is assigned to the "Royalty" Agency Department -> And I am signed in as the TMC Consultant -> When I visit the Traveller Profiles page -> And I click on "Add New Profile" -> When I fill in "First Name" with "Funky" -> And I fill in "Last Name" with "Medina" -> And I select "Ms" from "Title" -> And I select "Female" from "Gender" -> And I fill in "user[emergency_contact_full_name]" with "James Boags" -> And I fill in "Relationship" with "Hairdresser" -> And I fill in "Contact Number" with "(04)7113335" -> And I select "(GMT-06:00) Guadalajara" from "Preferred Time Zone" -> And I check "VIP" -> When I fill in "Employee ID" with "XX5090X" -> And I fill in "Organisation" with "Some Company" -> And I select "Head Office" from "Office" -> And I add a "Preferred Cost Centres" tag with "Sales" -> And I fill in AutoSuggest "Assigned Agency Department" with "Royalty" -> And I fill in "user[email]" with a random email address -> And I fill in "Job Title" with "CEO" -> And I fill in AutoSuggest "Country" with "New Zealand" within '#work-details' searching for "new" -> And I fill in "user[work_address]" with "1 Street St" -> And I fill in "user[work_suburb]" with "The Hague" -> And I fill in "user[work_mobile]" with "+6447113335" -> And I fill in AutoSuggest "State / Province" with "Wellington" within '#work-details' searching for "Well" -> And I fill in "user[work_post_code]" with "1111" -> When I click on "Home" tab -> And I fill in AutoSuggest "Country" with "Australia" within '#row-home-details' searching for "Aust" -> And I fill in "user[home_address]" with "1 Street St" -> And I fill in "user[home_suburb]" with "The Hague" -> And I fill in AutoSuggest "State / Province" with "Victoria" within '#row-home-details' searching for "Vic" -> And I fill in "user[home_post_code]" with "2222" -> When I click on "Documents" tab -> And I add a new Passport -> And I fill in AutoSuggest "Issuing Nation" with "Mexico" for passport "1" -> And I fill in AutoSuggest "Nationality" with "Russia" for passport "1" -> And I fill in "Number" with "424242" for passport "1" -> And I fill in date "Effective From" with "01-01-2020" for passport "1" -> And I fill in date "Date of Birth" with "01-01-1990" for passport "1" -> And I fill in date "Expires On" with "01-01-2020" for passport "1" -> When I add a new Visa for passport "1" -> And I select option "2" from "type" for passport "1" visa "1" -> And I fill in AutoSuggest "Issuing Nation" with "Belgium" for passport "1" visa "1" -> And I fill in AutoSuggest "Nationality" with "New Zealand" for passport "1" visa "1" -> And I fill in "Number" with "Z-VISA-578236734925" for passport "1" visa "1" -> And I fill in date "Effective From" with "04-02-2016" for passport "1" visa "1" -> And I fill in date "Expires On" with "04-03-2016" for passport "1" visa "1" -> When I click on "Create Profile" -> Then I should see a success message "User's profile was created successfully."
1467
1468Allow TMC to upload itinerary for pending booking/booking complete approvals
1469 Uploading a Itinerary Quote to a Pending Booking Approval
1470 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> Given there is a 'pending_booking' approval with a cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I upload an itinerary and verify warning message -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
1471 Uploading a Itinerary Quote to a Booking Complete Approval
1472 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> Given there is a 'trip_booked' approval with a cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I upload an itinerary and verify warning message -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
1473
1474Allow TMC to upload itinerary for pending booking/booking complete approvals
1475 Uploading a Itinerary Quote to a Pending Booking Approval
1476 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval -> And I am signed in as the TMC Consultant -> When I upload an itinerary and verify warning message -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
1477 Uploading a Itinerary Quote to a Booking Complete Approval
1478 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'trip_booked' approval -> And I am signed in as the TMC Consultant -> When I upload an itinerary and verify warning message -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
1479
1480Profile User Assignments
1481 Assigning & Removing an Risk Authoriser, Authoriser, Employee Group & Travel Arranger
1482 Given there is a Traveller -> And there is a Travel Arranger -> And there is a Risk Authoriser -> And there is an Authoriser named "Jo" -> And there is a traveller group "Employee Group" -> And there is a TMC Consultant -> And I am signed in as the TMC Consultant -> When I visit the Traveller Profiles page -> And I click on the edit profile link for the Traveller -> Then I should see "Edit Traveller Profile" -> When I click on "Assignments" -> Then I should be able to assign the Risk Authoriser as a "risk_authoriser" -> And I should be able to assign the Authoriser as an "authoriser" -> And I should be able to assign the Travel Arranger as a "travel_arranger" -> And I should be able to assign the employee group "Employee Group"
1483
1484Allow TMC to view all the state itineraries
1485 View approvals & upload Quotes for booking required approvals
1486 Given there is a Traveller with: -> And "Alan" is managed by a TMC Consultant -> And "Alan" has an approval with state "pending_cbt_itinerary", uid "TMP-AHA" and title "MEL->SYD" -> And "Alan" has an approval with state "draft_saved", uid "TMP-AHB" and title "MEL->SYD" -> And "Alan" has an approval with state "change_saved", uid "TMP-AHC" and title "MEL->SYD" -> And "Alan" has an approval with state "itinerary_importing", uid "TMP-AHD" and title "MEL->SYD" -> And "Alan" has an approval with state "pending_approval", uid "TMP-AHE" and title "MEL->SYD" -> And "Alan" has an approval with state "request_declined", uid "TMP-AHF" and title "MEL->SYD" -> And "Alan" has an approval with state "risk_approval_required", uid "TMP-AHG" and title "MEL->SYD" -> And "Alan" has an approval with state "request_forbidden", uid "TMP-AHH" and title "MEL->SYD" -> When I sign in as the TMC Consultant -> Then I should see "BOOKING REQUIRED" -> And I should see "SAVED" -> And I should see "CHANGE SAVED" -> And I should see "IMPORTING ITINERARY" -> And I should see "PENDING AUTHORISATION" -> And I should see "REQUEST DECLINED" -> And I should see "RISK AUTHORISATION REQD" -> And I should see "REQUEST FORBIDDEN"
1487 View approvals of archived travellers
1488 Given there is a Traveller with: -> And "Alan" is managed by a TMC Consultant -> And "Alan" has an approval with state "pending_cbt_itinerary", uid "TMP-AHA" and title "MEL->SYD" -> And "Alan" has an approval with state "draft_saved", uid "TMP-AHB" and title "MEL->SYD" -> And "Alan" has an approval with state "change_saved", uid "TMP-AHC" and title "MEL->SYD" -> And "Alan" has an approval with state "itinerary_importing", uid "TMP-AHD" and title "MEL->SYD" -> And "Alan" has an approval with state "pending_approval", uid "TMP-AHE" and title "MEL->SYD" -> And "Alan" has an approval with state "request_declined", uid "TMP-AHF" and title "MEL->SYD" -> And "Alan" has an approval with state "risk_approval_required", uid "TMP-AHG" and title "MEL->SYD" -> And "Alan" has an approval with state "request_forbidden", uid "TMP-AHH" and title "MEL->SYD" -> Given "Alan" has been archived -> When I sign in as the TMC Consultant -> Then I should see "BOOKING REQUIRED" -> And I should see "SAVED" -> And I should see "CHANGE SAVED" -> And I should see "IMPORTING ITINERARY" -> And I should see "PENDING AUTHORISATION" -> And I should see "REQUEST DECLINED" -> And I should see "RISK AUTHORISATION REQD" -> And I should see "REQUEST FORBIDDEN" -> When I review the approval "TMP-AHA" -> Then I should see "This profile has been archived. Do not make any changes to this booking as this may corrupt this archived trip" -> When I click on "Messages" -> Then I should see "This profile has been archived. Do not make any changes to this booking as this may corrupt this archived trip" -> When I click on "Trip Details" -> Then I should see "This profile has been archived. Do not make any changes to this booking as this may corrupt this archived trip" -> When I click on "Travel Diary" -> Then I should see "This profile has been archived. Do not make any changes to this booking as this may corrupt this archived trip"
1489
1490Traveler Add Profile
1491 Traveller Arranger can add new profile
1492 Given there is a Travel Arranger -> Given the company setting "travel_arranger_profile_create_ability" is enabled -> And I am signed in as the Travel Arranger -> When I visit the Traveller Profiles page -> Then I should see "Add New Profile"
1493 Traveller Arranger cannot add new profile
1494 Given there is a Travel Arranger -> Given the company setting "travel_arranger_profile_create_ability" is disabled -> And I am signed in as the Travel Arranger -> When I visit the Traveller Profiles page -> Then I should not see "Add New Profile"
1495
1496Travel Arranger Profile
1497 My profile should always link to travel arranger profile
1498 Given there is a Traveller -> And the Traveller has an assigned Travel Arranger -> And I am signed in as the Travel Arranger -> And I am on the "home" page -> When I switch identity to the Traveller -> And I go to the "edit profile" page -> Then I should be editing the profile of the Travel Arranger
1499
1500Traveller Profile List Filtering
1501 Display all travellers by default
1502 Given there is a Travel Arranger -> And I am signed in as the Travel Arranger -> Given the Travel Arranger is a travel arranger for travellers with: -> When I visit the Traveller Profiles page -> Then I should see the active tab "Managed Profiles" -> And I should not see "All Profiles" -> And I should not see "Archived Profiles" -> And I should see the profile for "George" on tab "managed_profiles" -> And I should see the profile for "Janet" on tab "managed_profiles"
1503 Filter travellers by first name
1504 Given there is a Travel Arranger -> And I am signed in as the Travel Arranger -> Given the Travel Arranger is a travel arranger for travellers with: -> When I visit the Traveller Profiles page -> And I filter profiles by "Name" with "Geor" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles"
1505 Filter travellers by last name
1506 Given there is a Travel Arranger -> And I am signed in as the Travel Arranger -> Given the Travel Arranger is a travel arranger for travellers with: -> When I visit the Traveller Profiles page -> And I filter profiles by "Name" with "Tes" on tab "managed_profiles" -> Then I should see the profile for "Janet" on tab "managed_profiles" -> And I should not see the profile for "George" on tab "managed_profiles"
1507 Filter travellers by email
1508 Given there is a Travel Arranger -> And I am signed in as the Travel Arranger -> Given the Travel Arranger is a travel arranger for travellers with: -> When I visit the Traveller Profiles page -> And I filter profiles by "Email" with "george@example" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles"
1509 Filter travellers by employee id
1510 Given there is a Travel Arranger -> And I am signed in as the Travel Arranger -> Given the Travel Arranger is a travel arranger for travellers with: -> When I visit the Traveller Profiles page -> And I filter profiles by "Employee ID" with "4321" on tab "managed_profiles" -> Then I should see the profile for "Janet" on tab "managed_profiles" -> And I should not see the profile for "George" on tab "managed_profiles"
1511 Filter uses name by default
1512 Given there is a Travel Arranger -> And I am signed in as the Travel Arranger -> Given the Travel Arranger is a travel arranger for travellers with: -> When I visit the Traveller Profiles page -> And I filter profiles with "orge" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles"
1513 Filter updates when type is changed
1514 Given there is a Travel Arranger -> And I am signed in as the Travel Arranger -> Given the Travel Arranger is a travel arranger for travellers with: -> When I visit the Traveller Profiles page -> And I filter profiles with "example.com" on tab "managed_profiles" -> And I change the profile filter type to "Email" on tab "managed_profiles" -> Then I should see the profile for "George" on tab "managed_profiles" -> And I should not see the profile for "Janet" on tab "managed_profiles" -> And I should not see "Nothing found" on tab "managed_profiles"
1515
1516Profile User Assignments
1517 Assigning & Removing an Risk Authoriser, Authoriser, Employee Group & Travel Arranger
1518 Given there is a Traveller -> And there is a Travel Arranger named "Alan" -> And there is a Travel Arranger named "John" -> And there is an Authoriser -> And there is a Risk Authoriser -> And there is a traveller group "Employee Group" -> And "Alan" is assigned to the Traveller as a "travel_arranger" -> And I am signed in as "Alan" -> When I visit the Traveller Profiles page -> And I click on the edit profile link for the Traveller -> Then I should see "Edit Traveller Profile" -> When I click on "Assignments" -> Then I should be able to assign the Risk Authoriser as a "risk_authoriser" -> And I should be able to assign the Authoriser as an "authoriser" -> And I should be able to assign "John" as a "travel_arranger" -> And I should be able to assign the employee group "Employee Group"
1519
1520navigate steps of cbt single page booking
1521 Traveller can navigation forward
1522 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> Then I should see '< Edit Trip'
1523
1524Traveller Edit CBT Approval
1525 Editing an Approval
1526 Given there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> Then I should not see '< Edit Trip'
1527 Editing an Approval with a CBT Itinerary Quote
1528 Given there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> When I resubmit the approval -> Then I should see an approval splash message "Your travel request has been updated" (FAILED - 2)
1529 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-00-46-51.896.html
1530 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-00-46-51.896.png
1531 Editing an Approval with Itinerary Quote
1532I, [2017-07-18T00:47:00.142951 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1533 Given there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> Given there is a 'quote_issued' approval with an itinerary quote -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> When I edit and submit the cbt approval -> Then I should see the CBT Booking Tool
1534 Editing an Approval without Itinerary Quote
1535I, [2017-07-18T00:47:06.967132 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1536 Given there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> Given there is a 'pending_cbt_itinerary' approval -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> When I edit and submit the cbt approval -> Then I should see the CBT Booking Tool
1537 Editing an Approval when Single Page Bookings are enabled
1538 Given there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> Given single page workflows are enabled -> And there is a 'draft_saved' approval with a placeholder cbt itinerary quote -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> When I edit the approval -> Then I should not see the Travel Details table
1539 Editing an Approval when Single Page Bookings are disabled
1540 Given there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> Given single page workflows are disabled -> And there is a 'draft_saved' approval with a placeholder cbt itinerary quote -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> When I edit the approval -> Then I should see the Travel Details table
1541
1542Traveller Retry Declined Approval
1543 Editing and Submmiting a failed Approval
1544 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is an 'itinerary_declined' approval -> And the approval has stakeholder actions -> And I am signed in as the Traveller -> When I edit and resubmit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email
1545 Editing and Submmiting a failed approval with itinerary quote
1546 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'itinerary_declined' approval with an itinerary quote -> And the approval has stakeholder actions -> And I am signed in as the Traveller -> When I edit and resubmit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email
1547 Editing a failed approval
1548 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'itinerary_declined' approval with an itinerary quote -> And the approval has stakeholder actions -> And I am signed in as the Traveller -> When I click on the approval -> And I click on "Trip Details" in the sidebar -> And I click on "Edit" -> Then I should not see "Save as Draft"
1549
1550Sidebar
1551 Itinerary tab is visible when quote issued
1552 Given there is a cbt workflow with 'default_workflow' -> And the company setting "Live itinerary service" is enabled -> And there are all cbt workflow users -> Given there is a 'quote_issued' approval with a cbt itinerary quote and insight_uuid -> And I am signed in as the Traveller -> When I am reviewing the current approval -> Then within '.sidebar' I should see "Itinerary"
1553 Itinerary tab is not visible when quote is not issued
1554 Given there is a cbt workflow with 'default_workflow' -> And the company setting "Live itinerary service" is enabled -> And there are all cbt workflow users -> Given there is a 'pending_approval' approval -> And I am signed in as the Traveller -> When I am reviewing the current approval -> Then within '.sidebar' I should not see "Itinerary"
1555
1556Admin
1557 Dashboard
1558 Given I am signed in as a Company Admin -> When I go to the "admin" page -> Then I should see "Administration - Dashboard" -> And I should not see "Traveller Profiles" -> Given there is dashboard link -> When I go to the "home" page -> And I click on "Add Dashboard Link" -> Then I should see "New Dashboard Link"
1559 Deleting and Restoring Profiles
1560 Given I am signed in as a Company Admin -> Given there is a Traveller -> When I go to the "admin profiles" page -> And I click on "Archived" -> Then I should see "Nothing found" -> When I visit the admin profile page for the Traveller -> And I click on "Archive User" -> And I click on "Confirm" -> Then I should see "User's profile was archived successfully." -> When I click on "Archived" -> Then I should see profile details for the Traveller -> When I visit the admin profile page for the Traveller -> And I click on "Unarchive User" -> Then I should see "User's profile was unarchived successfully." -> And I should see profile details for the Traveller
1561 Show profile count
1562 Given I am signed in as a Company Admin -> Given I am on the "admin profiles" page -> Then I should see "1 Profile" -> Given there is a Traveller -> When I go to the "admin profiles" page -> Then I should see "2 Profiles" -> When I click on "Archived" -> Then I should see "Nothing found" -> When I visit the admin profile page for the Traveller -> And I click on "Archive User" -> And I click on "Confirm" -> Then I should see "1 Profile" -> When I click on "Archived" -> Then I should see profile details for the Traveller -> When I visit the admin profile page for the Traveller -> Then I should see "Unarchive User" -> And I click on "Unarchive User" -> Then I should see "2 Profiles"
1563 Show profile Audit
1564 Given I am signed in as a Company Admin -> Given there is a Traveller -> When I go to the "admin profiles" page -> And I update the profile of the Traveller leaving a paper trail -> And I visit the admin profile page for the Traveller -> And I click on "Audit" -> Then I should see "Updated Profile"
1565 Admin to arrange booking for a traveller
1566 Given I am signed in as a Company Admin -> Given there is a Traveller -> And the Traveller has an approval with state "pending_approval" -> When I go to the "home" page -> And I switch identity to the Traveller -> And I click on the last created approval -> Then I should see "Edit Trip" -> And I should see "Cancel Trip" -> And I should see "Forward Authorisation"
1567
1568Change password
1569 Access Change Password from Menu
1570 Given there is a Traveller -> And I am signed in as the Traveller -> When I click on "Change Password" -> Then I should see "Change your password"
1571 Change User Password
1572 Given there is a Traveller -> And I am signed in as the Traveller -> When I click on "Change Password" -> And I enter valid change password details -> And I click on "Update Password" -> Then I should see a success message "Your password was updated."
1573 Display Password Change Errors
1574 Given there is a Traveller -> And I am signed in as the Traveller -> When I click on "Change Password" -> And I click on "Update Password" -> Then within '.modal' I should see "Current password can't be blank"
1575
1576Traveller Credit Cards
1577 Add credit card
1578 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> And the company setting "profile financial" is enabled -> When I go to the "edit profile" page -> And I click on "Financial" tab -> And I click on "Add Credit Card" -> And I select "Company" from "Card Owner" -> And I fill in "Name On Card" with "Jan L. Travellerette" -> And I fill in "Number" with "4111111111111111" -> And I fill in date "Expiry" with "23-03-2020" -> And I select "Visa" from "Issuer" -> And I click on "Update Profile" -> Then within ".alert-success" I should see "Your profile was updated successfully" -> And the Traveller should have a credit card
1579 Expense ID required
1580 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> And the company setting "profile financial" is enabled -> Given the company setting "expensify_policy_id" is set to "some value" -> When I go to the "edit profile" page -> And I click on "Financial" tab -> And I click on "Add Credit Card" -> Then I should see "Expense ID"
1581 Expense ID not required
1582 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> And the company setting "profile financial" is enabled -> Given the company setting "expensify_policy_id" is set to "" -> When I go to the "edit profile" page -> And I click on "Financial" tab -> And I click on "Add Credit Card" -> Then I should not see "Expense ID"
1583
1584First Time Video
1585 traveller can see first time video
1586 Given there is a Traveller -> And the Traveller has never signed in -> When I sign in as the Traveller -> Then I should see "Welcome" -> When I click on "Check Profile" -> And I click on "Dashboard" -> Then I should see "2 Minute Overview"
1587 tmc can't see first time video
1588 Given there is a TMC Consultant -> And the TMC Consultant has never signed in -> When I sign in as the TMC Consultant -> And I click on "Check Profile" -> And I click on "Dashboard" -> Then I should not see "2 Minute Overview"
1589
1590Admin Invite Users
1591 Invite new user
1592 Given there is a Company Admin -> Given I am signed in as the Company Admin -> When I go to the "home" page -> Then I should see "Invite New User" -> When I click on "Invite New User" -> Then I should see "Invite Users" -> And I should see "Enter multiple email addresses" -> When I fill in "user[emails]" with "funky.medina@locomote.com,johhny.five@locomote.com" -> And I click on "Add Invitees" -> Then I should see a success message "An invitation email has been sent to funky.medina@locomote.com and johhny.five@locomote.com."
1593 Fail to invite
1594 Given there is a Company Admin -> Given I am signed in as the Company Admin -> When I go to the "home" page -> And I click on "Invite New User" -> And I fill in "user[emails]" with "funky.medina@locomote.com,johhny.five" -> And I click on "Add Invitees" -> Then I should see a message "Email 'johhny.five' is invalid"
1595 Invite existing user
1596 Given there is a Company Admin -> Given I am signed in as the Company Admin -> When I go to the "home" page -> And I click on "Invite New User" -> And I fill in "user[emails]" with the email of the Company Admin -> And I click on "Add Invitees" -> Then I should see a message "is already in use"
1597 Multiple invites
1598 Given there is a Company Admin -> Given the Company Admin has sent an invitation to "funky.medina@locomote.com" -> When I confirm "funky.medina@locomote.com" -> Then I should see "You have been invited" -> When I sign in as the Company Admin -> And I go to the "home" page -> And I click on "Invite New User" -> And I fill in "user[emails]" with "funky.medina@locomote.com" -> And I click on "Add Invitees" -> Then I should see a success message "An invitation email has been sent to funky.medina@locomote.com"
1599 Accept invitation
1600 Given there is a Company Admin -> Given the Company Admin has sent an invitation to "funky.medina@locomote.com" -> When I confirm "funky.medina@locomote.com" -> Then I should not see "errors" -> When I fill in "First Name" with "Funky" -> And I fill in "Last Name" with "Medina" -> And I enter new password -> And I click on "CREATE YOUR ACCOUNT" -> Then I should see a success message "Thank you! You email has been verified." -> When I click on "Check Profile" -> And I sign out -> When I sign in as the Company Admin -> And I go to the "home" page -> And I click on "Invite New User" -> And I fill in "user[emails]" with "funky.medina@locomote.com" -> And I click on "Add Invitees" -> Then I should see a message "Email 'funky.medina@locomote.com' is already in use"
1601
1602Password Reset
1603 User requests a password reset
1604 Given there is a Traveller named "Jane" -> Given my recaptcha attempt will be successful -> When I go to the "new user password" page -> Then I should see "To reset your password, enter the username that you use to sign in. This can be your email address or your employee id within your organisation." -> When I fill in "Email" with the "email" of "Jane" -> And I click on "Submit" -> Then I should see a message "You will receive an email with instructions about how to reset your password in a few minutes."
1605 User edit a password
1606 Given there is a Traveller named "Jane" -> When I visit a edit password page for "Jane" -> Then I should see "Create a new password for" -> And I should see "Password Requirements"
1607
1608User profile
1609 View and edit
1610 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> And I fill in "First Name" with "Janette" -> And I select "Ms" from "Title" -> And I fill in "Last Name" with "Travellerette" -> And I select "Head Office" from "Office (Faculty)" -> And I select "(GMT-06:00) Guadalajara" from "Preferred Time Zone" -> When I click on "Documents" tab -> And I add a new Passport -> And I fill in AutoSuggest "Issuing Nation" with "New Zealand" for passport "1" -> And I fill in AutoSuggest "Nationality" with "Germany" for passport "1" -> And I fill in "Number" with "424242" for passport "1" -> And I fill in date "Effective From" with "23-03-2010" for passport "1" -> And I fill in date "Date of Birth" with "01-01-1990" for passport "1" -> And I fill in date "Expires On" with "23-03-2020" for passport "1" -> When I add a new Visa for passport "1" -> And I select option "2" from "type" for passport "1" visa "1" -> And I fill in AutoSuggest "Issuing Nation" with "Belgium" for passport "1" visa "1" -> And I fill in AutoSuggest "Nationality" with "Australia" for passport "1" visa "1" -> And I fill in date "Effective From" with "04-02-2016" for passport "1" visa "1" -> And I fill in date "Expires On" with "04-03-2016" for passport "1" visa "1" -> And I fill in "Number" with "Z-VISA-578236734925" for passport "1" visa "1" -> When I click on "Loyalty" tab -> And I click on "Add Membership" -> And I fill in AutoSuggest "Club / Provider" with "Jetstar" for membership "1" -> And I fill in "Account Number" with "3456543" -> And I fill in "Membership Name" with "Guy Incognito" -> And I fill in date "Expires On" with "15-07-2020" for membership "1" -> And I fill in "Level" with "Gold" -> When I click on "Add Membership" -> And I fill in AutoSuggest "Club / Provider" with "Jetstar" for membership "1" -> And I fill in "Account Number" with "4567654" for membership "2" -> And I fill in "Membership Name" with "Fred Funk" for membership "2" -> And I fill in date "Expires On" with "07-07-2033" for membership "2" -> And I fill in "Level" with "Plastic" for membership "2" -> And I remove membership "2" -> When I click on "Preferences" tab -> And I click on "Add Special Service Request" -> And I fill in AutoSuggest "Request" with "Baby Meal" within '#special_service_requests' -> And the "Comments" input should be disabled -> And I fill in AutoSuggest "Request" with "Special Meal" within '#special_service_requests' -> And I fill in "Comments" with "Special service comments" -> And I click on "Add Seat Preference" -> And I select "Window" from "user_seat_preferences_attributes__seat_type" -> When I click on "Documents" tab -> And I add another Document Attachment with comments "Here is an additional copy of my Passport" -> And I click on "Update Profile" -> Then I should see proflie updated flash -> When I go to the "edit profile" page -> Then I should see "Janette" in "First Name" -> And I should see "Travellerette" in "Last Name" -> And I should see "Ms" selected from "Title" -> When I click on "Documents" tab -> Then I should see "New Zealand" in "Issuing Nation" for passport "1" -> And I should see "Germany" in "Nationality" for passport "1" -> And I should see placeholder "**4242" in "number" for passport "1" -> And I should see "01-01-1990" in "date_of_birth" for passport "1" -> And I should see "23-03-2020" in "expiry" for passport "1" -> When I click on "Loyalty" tab -> Then I should see "3456543" in "account_number" for membership "1" -> And I should see "Gold" in "level" for membership "1" -> And I should see "Jetstar" in "Club" for membership "1" -> And I should see "15-07-2020" in "expires" for membership "1" -> When I click on "Preferences" tab -> Then I should see "Special Meal" in AutoSuggest "Request" -> And I should see "Special service comments" in "Comments" -> And I should see "window" in "Seat type" -> When I click on "Documents" tab -> Then within ".user_document" I should see "Download" -> And within ".user_document" I should see "Here is an additional copy of my Passport"
1611 Uneditable Fields
1612 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> Then I should see "Employee ID" as uneditable -> And I should see "Email" as uneditable
1613 Passport and Visa datepickers contain placeholder hint
1614 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> And I click on "Documents" tab -> And I click on "Add Passport" -> And I click on "Add Visa" -> Then I should see a datepicker placeholder "Select date" in "Date of Birth" within "#passports .passport.item" of "1" -> And I should see a datepicker placeholder "Select date" in "Effective From" within "#passports .passport.item" of "1" -> And I should see a datepicker placeholder "Select date" in "Expires On" within "#passports .passport.item" of "1" -> And I should see a datepicker placeholder "Select date" in "Effective From" within "#passports .passport.item .visa.item" of "1" -> And I should see a datepicker placeholder "Select date" in "Expires On" within "#passports .passport.item .visa.item" of "1"
1615 Passport numbers upon validation error
1616 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> And I click on "Documents" tab -> And I click on "Add Passport" -> And I fill in "Number" with "424242" for passport "1" -> And I click on "Update Profile" -> And I click on "Documents" tab -> Then I should see placeholder "" in "Number" for passport "1"
1617 Validation of dates
1618 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> And I click on "Documents" tab -> And I add a new Passport -> And I fill in AutoSuggest "Issuing Nation" with "New Zealand" for passport "1" -> And I fill in AutoSuggest "Nationality" with "Germany" for passport "1" -> And I fill in "Number" with "424242" for passport "1" -> And I add a new Visa for passport "1" -> And I select option "2" from "type" for passport "1" visa "1" -> And I fill in AutoSuggest "Issuing Nation" with "Belgium" for passport "1" visa "1" -> And I fill in AutoSuggest "Nationality" with "Australia" for passport "1" visa "1" -> And I fill in "Number" with "Z-VISA-578236734925" for passport "1" visa "1" -> And I click on "Update Profile" -> Then I should be notified of missing a mandatory field -> And I should see an inline error on input field named "user[passports_attributes][][effective_date]" -> And I should see an inline error on input field named "user[passports_attributes][][date_of_birth]" -> And I should see an inline error on input field named "user[passports_attributes][][expiry_date]" -> And I should see an inline error on input field named "user[passports_attributes][][visas_attributes][][expiry_date]"
1619
1620Regus Invite
1621 Invite new user
1622I, [2017-07-18T00:49:03.612652 #46702] INFO -- omniauth: (regus) Callback phase initiated.
1623 Given there is a Regus company managed by the Default Agency Branch -> Given all CBT Api Requests for a Company Export are successful -> And site admin has configured a default agency branch with cbt credential -> And regus api service is available -> And I am signed in as regus user "company_admin" -> When I go to the "home" page -> Then I should see '2 Minute Overview' -> When I click on '×' -> Then I should see "Invite New User" -> And I should see "Invite your team to Locomote and we will handle the rest." -> When I sign out
1624
1625Regus User Login
1626 non-existing regus account login
1627I, [2017-07-18T00:49:07.089847 #46702] INFO -- omniauth: (regus) Callback phase initiated.
1628E, [2017-07-18T00:49:07.093538 #46702] ERROR -- omniauth: (regus) Authentication failure! invalid_credentials encountered.
1629 Given there is a Regus company managed by the Default Agency Branch -> When I sign in with my regus account -> Then I should see a message 'Could not authenticate you from Regus because "Invalid credentials".'
1630 regular user login first
1631I, [2017-07-18T00:49:07.788688 #46702] INFO -- omniauth: (regus) Callback phase initiated.
1632 Given there is a Regus company managed by the Default Agency Branch -> Given regus api service is available with IsMyRegusAdmin to be false -> When I sign in with my regus account -> Then I should see a message "Please let Locomote admin sign in first."
1633 inactive user login
1634I, [2017-07-18T00:49:08.390471 #46702] INFO -- omniauth: (regus) Callback phase initiated.
1635 Given there is a Regus company managed by the Default Agency Branch -> Given regus api service is available with IsActive to be false -> When I sign in with my regus account -> Then I should see a message "IsActive is required"
1636 admin first login without cbt service
1637I, [2017-07-18T00:49:09.069250 #46702] INFO -- omniauth: (regus) Callback phase initiated.
1638 Given there is a Regus company managed by the Default Agency Branch -> Given all CBT Api Requests for a Company Export are treated as invalid -> And site admin has configured a default agency branch with cbt credential -> And regus api service is available with IsMyRegusAdmin to be true -> When I sign in with my regus account -> Then I should see a message "Successfully authenticated from Regus account."
1639 admin first login
1640I, [2017-07-18T00:49:10.560222 #46702] INFO -- omniauth: (regus) Callback phase initiated.
1641 Given there is a Regus company managed by the Default Agency Branch -> Given all CBT Api Requests for a Company Export are successful -> And site admin has configured a default agency branch with cbt credential -> And regus api service is available with IsMyRegusAdmin to be true -> When I sign in with my regus account -> Then I should see a message "Successfully authenticated from Regus account." -> When I fill in "Subdomain" with "abc" -> And I click on 'CREATE COMPANY' -> And I click on 'Accept & Continue' -> Then I should see a logo -> And I should see "My Profile" -> When I visit the admin "Profiles" page -> Then I should see "Add New Profile"
1642 admin login with invalid optional profile
1643I, [2017-07-18T00:49:14.307451 #46702] INFO -- omniauth: (regus) Callback phase initiated.
1644 Given there is a Regus company managed by the Default Agency Branch -> Given all CBT Api Requests for a Company Export are successful -> And site admin has configured a default agency branch with cbt credential -> And regus api service is available with WorkPhone to be 123XYZ -> When I sign in with my regus account -> Then I should see a message "Successfully authenticated from Regus account."
1645
1646Role Delegation Tab
1647 Traveller can't see role delegation
1648 Given there is a Traveller -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> Then I should not see "Role Delegation"
1649 Authoriser can see role delegation
1650 Given there is an Authoriser -> And I am signed in as the Authoriser -> When I go to the "edit profile" page -> Then I should see "Role Delegation"
1651 Travel Arranger can't see role delegation
1652 Given there is a Travel Arranger -> And I am signed in as the Travel Arranger -> When I go to the "edit profile" page -> Then I should not see "Role Delegation"
1653 Company Admin can't see role delegation
1654 Given there is a Company Admin -> And I am signed in as the Company Admin -> When I go to the "edit profile" page -> Then I should not see "Role Delegation"
1655 Risk Authoriser can't see role delegation
1656 Given there is a Risk Authoriser -> And I am signed in as the Risk Authoriser -> When I go to the "edit profile" page -> Then I should see "Role Delegation"
1657
1658User session
1659 Sign in page with subdomain
1660 Given there is a company with subdomain 'example' -> When I visit Sign in page with subdomain 'example' -> Then I should see placeholder 'Employee ID or Email' for field 'user[username]'
1661 Sign in page without subdomain
1662 When I visit Sign in page without subdomain -> Then I should see placeholder 'Email' for field 'user[username]' -> And the page should pass the "html-has-lang, html-lang-valid" accessibility checks
1663 Sign in
1664 Given there is a Traveller -> When I sign in as the Traveller -> Then I should be signed in
1665 Sign out
1666 Given there is a Traveller -> And I am signed in as the Traveller -> When I sign out -> Then I should be signed out
1667 When I require Support
1668 When I visit Sign in page without subdomain -> Then I should see a support link
1669
1670User sign up
1671 sign up & confirm & login
1672 Given I have an IP that denotes I reside in "AU" -> And there is a Default Agency Branch -> Given my recaptcha attempt will be successful -> And site admin has configured a default agency branch with cbt credential -> And all CBT Api Requests for a Company Export are successful -> When I sign up with "funky.medina@locomote.com" of company "ANZ" -> Then I should see "We have sent a confirmation email with further instructions to funky.medina@locomote.com" -> And I confirm "funky.medina@locomote.com" -> Then I should see a message "Your account was successfully confirmed. Please sign in." -> When I sign in with 'funky.medina@locomote.com' 'Newp@ssw0rd' -> Then I should see a message "You have successfully signed in." -> And I should see "Terms & Conditions"
1673 sign up multiple times
1674 Given I have an IP that denotes I reside in "AU" -> And there is a Default Agency Branch -> Given my recaptcha attempt will be successful -> And site admin has configured a default agency branch with cbt credential -> And all CBT Api Requests for a Company Export are successful -> When I sign up with "funky1.medina@locomote.com" of company "ANZ" -> Then I should see "We have sent a confirmation email with further instructions to funky1.medina@locomote.com" -> And I confirm "funky1.medina@locomote.com" -> And I should see a message "Your account was successfully confirmed. Please sign in." -> When I sign up with "funky2.medina@locomote.com" of company "USQ" -> Then I should see "Someone with your email domain has already signed up. Please contact your admin to invite you. For further help please contact our support center." -> When I sign in with 'funky1.medina@locomote.com' 'Newp@ssw0rd' -> And I click on 'Accept & Continue' -> Then I should see "Admin" -> When I go to the "admin profiles" page -> Then I should see "1 Profile" -> When I sign out -> Then I should see "You have successfully signed out"
1675 User fails the recaptcha test
1676 Given I have an IP that denotes I reside in "AU" -> And there is a Default Agency Branch -> Given my recaptcha attempt will fail -> When I go to the "new user registration" page -> And I sign up with "funky.medina@locomote.com" of company "ANZ" -> Then I should see a message "We could not verify the CAPTCHA, Please try again" -> And I should see "Create your account"
1677 use blocked email domain
1678 Given I have an IP that denotes I reside in "AU" -> And there is a Default Agency Branch -> Given my recaptcha attempt will be successful -> And site admin has configured a default agency branch with cbt credential -> And all CBT Api Requests for a Company Export are successful -> And email domain "locomote.com" is white-listed -> When I sign up with "funky1.medina@locomote.com" of company "ANZ" -> Then I should see "Unfortunately you cannot sign up using a Gmail, Live, Yahoo or any other type of consumer email accounts as your business must own the email domain."
1679
1680CBT/Serko SSO
1681 CBT user able to see SSO button
1682 Given there is a Default Agency Branch -> And there is a Traveller with traits "with_cbt_sso" -> When I sign in as the Traveller -> Then I should not see "Locomote CBT"
1683 Serko user able to see SSO button
1684 Given there is a Traveller with traits "with_serko_sso" -> When I sign in as the Traveller -> Then I should see "Domestic Trans-Tasman"
1685 Serko user shouldn't able to see SSO button if company unit is SG-ANZ
1686 Given there is a Traveller with traits "with_serko_sso_with_singapore_company_unit" -> When I sign in as the Traveller -> Then I should not see "Domestic Trans-Tasman"
1687
1688TMC Consultant
1689 Dashboard and viewing a request
1690 Given there is a Traveller -> And the Traveller is managed by a TMC Consultant -> And the Traveller has a trip ready for booking -> Given I am signed in as the TMC Consultant -> Then I should see the trips table -> And I should not see any Dashboard Links -> And I should not see any Workflow Buttons -> And I should see "Upcoming Travel" -> And I should see "Travel History" -> When I click on the last created approval -> Then I should see "Trip Details"
1691
1692Travel arranger
1693 Booking a trip for themselves
1694 Given there is a Traveller with: -> And the Traveller has an assigned Travel Arranger -> And the Travel Arranger is in group "All Employees" -> And there is an Authoriser -> And the Authoriser is assigned to the Traveller as an "authoriser" -> And the Authoriser is assigned to the Travel Arranger as an "authoriser" -> And there is a workflow "Domestic" with a set of modules -> Given I am signed in as the Travel Arranger -> When I switch identity to the Traveller -> And I switch identity to the Travel Arranger -> And I click on "Domestic" in the sidebar -> Then I should see "Travel Details"
1695 Select by auto-suggest when too many travellers
1696 Given there is a Traveller with: -> And the Traveller has an assigned Travel Arranger -> And the Travel Arranger is in group "All Employees" -> And there is an Authoriser -> And the Authoriser is assigned to the Traveller as an "authoriser" -> And the Authoriser is assigned to the Travel Arranger as an "authoriser" -> And there is a workflow "Domestic" with a set of modules -> Given there are large number of travellers arranged by the Travel Arranger -> And I am signed in as the Travel Arranger -> And I am able to select the Travel Arranger from the Identity Switcher
1697 Dashboard, view & create travellers
1698 Given there is a Traveller with: -> And the Traveller has an assigned Travel Arranger -> And the Travel Arranger is in group "All Employees" -> And there is an Authoriser -> And the Authoriser is assigned to the Traveller as an "authoriser" -> And the Authoriser is assigned to the Travel Arranger as an "authoriser" -> And there is a workflow "Domestic" with a set of modules -> Given there is an Agency Department named "Royalty" -> And there is a TMC Consultant -> And the TMC Consultant is assigned to the "Royalty" Agency Department -> And I am signed in as the Travel Arranger -> When I switch identity to the Traveller -> Then I should see the announcement "You are currently arranging trips for user Jane Smith" -> And I should see "Jane's Trips" -> When I visit the Traveller Profiles page -> Then I should not see "Archived" -> And I should see "Travellers" -> When I click on "Add New Profile" -> When I fill in "First Name" with "Funky" -> And I fill in "Last Name" with "Medina" -> And I select "Ms" from "Title" -> And I select "Female" from "Gender" -> And I fill in "user[emergency_contact_full_name]" with "James Boags" -> And I fill in "Relationship" with "Hairdresser" -> And I fill in "Contact Number" with "(04)7113335" -> And I select "(GMT-06:00) Guadalajara" from "Preferred Time Zone" -> And I check "VIP" -> When I fill in "Employee ID" with "XX5090X" -> And I fill in "Organisation" with "Some Company" -> And I select "Head Office" from "Office" -> And I add a "Preferred Cost Centres" tag with "Sales" -> And I fill in AutoSuggest "Assigned Agency Department" with "Royalty" -> And I fill in "user[email]" with a random email address -> And I fill in "Job Title" with "CEO" -> And I fill in AutoSuggest "Country" with "New Zealand" within '#work-details' searching for "new" -> And I fill in "user[work_address]" with "1 Street St" -> And I fill in "user[work_suburb]" with "The Hague" -> And I fill in "user[work_mobile]" with "+6447113335" -> And I fill in AutoSuggest "State / Province" with "Wellington" within '#work-details' searching for "Well" -> And I fill in "user[work_post_code]" with "1111" -> When I click on "Home" tab -> And I fill in AutoSuggest "Country" with "Australia" within '#row-home-details' searching for "Aust" -> And I fill in "user[home_address]" with "1 Street St" -> And I fill in "user[home_suburb]" with "The Hague" -> And I fill in AutoSuggest "State / Province" with "Victoria" within '#row-home-details' searching for "Vic" -> And I fill in "user[home_post_code]" with "2222" -> When I click on "Documents" tab -> And I add a new Passport -> And I fill in AutoSuggest "Issuing Nation" with "Mexico" for passport "1" -> And I fill in AutoSuggest "Nationality" with "Russia" for passport "1" -> And I fill in "Number" with "424242" for passport "1" -> And I fill in date "Effective From" with "01-01-2020" for passport "1" -> And I fill in date "Expires On" with "01-01-2020" for passport "1" -> And I fill in date "Date of Birth" with "23-03-1972" -> When I add a new Visa for passport "1" -> And I select option "2" from "type" for passport "1" visa "1" -> And I fill in AutoSuggest "Issuing Nation" with "Belgium" for passport "1" visa "1" -> And I fill in AutoSuggest "Nationality" with "New Zealand" for passport "1" visa "1" -> And I fill in "Number" with "Z-VISA-578236734925" for passport "1" visa "1" -> And I fill in date "Effective From" with "04-02-2016" for passport "1" visa "1" -> And I fill in date "Expires On" with "04-03-2016" for passport "1" visa "1"
1699
1700Traveller loyalty membership
1701 A Loyalty Membership can be added
1702 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> And I enter a new Loyalty Membership -> And I click on "Update Profile" -> Then I should see proflie updated flash -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> Then I should see the previous Loyalty Membership I entered
1703 A Loyalty Membership requires validation
1704 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> And I click on "Add Membership" -> And I click on "Update Profile" -> And I click on "Loyalty" tab -> Then I should be notified of missing a mandatory field
1705 A newly created Loyalty Membership can be cancelled
1706 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> And I enter a new Loyalty Membership -> And I delete the previous Loyalty Membership -> And I click on "Update Profile" -> And I go to the "edit profile" page -> And I click on "Loyalty" tab -> Then I should not see any Loyalty Memberships
1707 A existing Loyalty Membership should appear on the Profile page
1708 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> And I enter a new Loyalty Membership -> And I click on "Update Profile" -> Then I should see a success message "Your profile was updated successfully" -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> Then I should see the previous Loyalty Membership I entered
1709 A existing Loyalty Membership can be updated on the Profile page
1710 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> Given the Traveller has a Loyalty Membership -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> And I update the previous Loyalty Membership -> And I click on "Update Profile" -> Then I should see a success message "Your profile was updated successfully" -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> Then I should see the previous Loyalty Membership I entered
1711 A existing Loyalty Membership can be removed from the Profile page
1712 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> Given the Traveller has a Loyalty Membership -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> And I delete the previous Loyalty Membership -> And I click on "Update Profile" -> Then I should see a success message "Your profile was updated successfully" -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> Then I should not see any Loyalty Memberships
1713 An attempt to remove a Loyalty Membership remains hidden after validation errors
1714 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> Given the Traveller has a Loyalty Membership -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> And I delete the previous Loyalty Membership -> And I click on "Personal" tab -> And I submit invalid profile information -> And I click on "Loyalty" tab -> Then I should be notified of missing a mandatory field -> And I should not see any Loyalty Memberships
1715 A Loyalty Membership is removed after validation errors have been resolved
1716 Given there is a Traveller -> And the Traveller has no existing passports or visas -> And I am signed in as the Traveller -> Given the Traveller has a Loyalty Membership -> When I go to the "edit profile" page -> And I click on "Loyalty" tab -> And I delete the previous Loyalty Membership -> And I click on "Personal" tab -> And I submit invalid profile information -> And I submit corrected profile information -> And I go to the "edit profile" page -> And I click on "Loyalty" tab -> Then I should not see any Loyalty Memberships
1717
1718Profile User Assignments
1719 Assigning & Removing an Authoriser & Travel Arranger
1720 Given I am signed in as a Company Admin -> And there is a Traveller named "Joker" -> And there is a Risk Authoriser named "Superman" -> And there is an Authoriser named "Batman" -> And there is a Travel Arranger named "Robin" -> And there is a traveller group "Traveller Group" -> When I visit the admin profile page for "Joker" -> And I click on "Assignments" -> Then I should see "Edit Employee Profile" -> Then I should be able to assign "Superman" as a "risk_authoriser" -> And I should be able to assign "Batman" as an "authoriser" -> And I should be able to assign "Robin" as a "travel_arranger" -> And I should be able to assign the employee group "Traveller Group" -> And I should not able to search text "invalid" on role "risk_authoriser" -> And I should not able to search text "invalid" on role "authoriser" -> And I should not able to search text "invalid" on role "travel_arranger" -> And I should not able to search text "invalid" on role "employee-groups"
1721
1722Welcome Page
1723 welcome message and click edit profile button
1724 Given there is a Traveller -> And the Traveller has never signed in -> When I sign in as the Traveller -> Then I should see "Welcome" -> When I click on "Check Profile" -> Then I should see "My Profile"
1725 Agree terms and conditions in welcome page and click edit profile button
1726 Given there is terms and conditions for the company -> And there is a Traveller -> And the Traveller has never signed in -> When I sign in as the Traveller -> Then I should see "Welcome" -> And I should see "Terms & Conditions" -> When I click on "Accept & Continue" -> Then I should see "My Profile"
1727
1728Additional Info Fields with Input Format validation
1729 Entering an Additional Info field with Input Format Validation
1730 Given there is a Traveller -> And there is a Workflow with the "additional_info" module -> And the Traveller has a draft Approval with complete travel details -> Given the additional information module has a field "Approval Authority" with input format "AAA/AANNNN/AA" -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click on "Continue" -> And I fill in the "Approval Authority" info field with "ABC/DEF234/YZ" -> And I click on "Submit" -> Then I should see "must be in the format: AAA/AANNNN/AA (for example: ABC/DE1234/FG)" -> When I fill in the "Approval Authority" info field with "ABC/DE1234/YZ" -> And I click on "Submit" -> Then I should see "Your travel request has been successfully submitted" -> When I review the last created approval -> Then I should see the "Approval Authority" field is set to "ABC/DE1234/YZ"
1731
1732Additional Info Module Predefined Values Settings
1733 Adding an Input Format to a new Additional Info Field
1734 Given I am signed in as a Company Admin -> And there is a Workflow with the "additional_info" module -> When I visit the additional info settings page -> And I add a new additional info field with: -> And I click on "Save" -> Then I should see "cannot be successfully entered by a user" -> When I fill in Input Format with "AAA/AANNNN/AA" -> And I click on "Save" -> Then I should see a success message "Additional Information Settings were successfully updated" -> When I visit the additional info settings page -> Then I should see that "AAA/AANNNN/AA" is the input format for "Association Code"
1735
1736Additional Info Fields with Predefined Values
1737 Entering an Additional Info field with Input Format Validation
1738 Given there is a Traveller -> And there is a Workflow with the "additional_info" module -> And the Traveller has a draft Approval with complete travel details -> Given the additional information module has a field "Billable?" with options: -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click on "Continue" -> And I fill in AutoSuggest "Billable?" with "Yes" -> And I click on "Submit" -> Then I should see "Your travel request has been successfully submitted" -> When I review the last created approval -> Then I should see the "Billable?" field is set to "Yes"
1739
1740Additional Info Module Predefined Values Settings
1741 Adding Predefined Values to a new Additional Info Field
1742 Given I am signed in as a Company Admin -> And there is a Workflow with the "additional_info" module -> When I visit the additional info settings page -> And I add a new additional info field with: -> And I add "Central Office" as a predefined value -> And I add "Remote Office" as a predefined value -> And I add "ABC@DEF!!!" as a predefined value -> And I click on "Save" -> Then I should see "contains invalid characters: '@' and '!'" -> When I remove "ABC@DEF!!!" as a predefined value -> And I click on "Save" -> Then I should see a success message "Additional Information Settings were successfully updated" -> When I visit the additional info settings page -> Then I should see that "Central Office" is a predefined value for "Finance Department" -> And I should see that "Remote Office" is a predefined value for "Finance Department"
1743 Adding Predefined Values to an existing Additional Info Field
1744 Given I am signed in as a Company Admin -> And there is a Workflow with the "additional_info" module -> Given there is an additional info field with: -> When I visit the additional info settings page -> And I add "Yes" as a predefined value -> And I add "No" as a predefined value -> And I click on "Save" -> Then I should see a success message "Additional Information Settings were successfully updated" -> When I visit the additional info settings page -> Then I should see that "Yes" is a predefined value for "Billable?" -> And I should see that "No" is a predefined value for "Billable?"
1745
1746Additional Info Module Settings
1747 Adding an Additional Info Module
1748 Given I am signed in as a Company Admin -> And there is a Workflow with the "additional_info" module -> When I visit the additional info settings page -> And I add a new additional info field with: -> And I click on "Save" -> Then I should see a success message "Additional Information Settings were successfully updated" -> When I visit the additional info settings page -> Then I should see an additional info field with:
1749 Adding an Additional Info Field with duplicate label
1750 Given I am signed in as a Company Admin -> And there is a Workflow with the "additional_info" module -> When I visit the additional info settings page -> And I click on "Add another field" -> Then I should see an empty info field title -> When I complete the additional info field with: -> Then I should see an info field title with "Account Number" -> When I click on "Add another field" -> Then I should see an empty info field title -> And I should see an info field title with "Account Number" -> When I complete the additional info field with: -> And I click on "Save" -> Then I should see "has already been taken"
1751 Updating an Additional Info Field with duplicate label
1752 Given I am signed in as a Company Admin -> And there is a Workflow with the "additional_info" module -> When I visit the additional info settings page -> And I click on "Add another field" -> Then I should see an empty info field title -> When I complete the additional info field with: -> Then I should see an info field title with "Account Number" -> When I click on "Add another field" -> Then I should see an empty info field title -> And I should see an info field title with "Account Number" -> When I complete the additional info field with: -> And I click on "Save" -> And I visit the additional info settings page -> And I fill in "additional_info_additional_info_fields_attributes_1_label" with "Account Number" -> And I click on "Save" -> Then I should see "has already been taken"
1753 Removing an Additional Info Module
1754 Given I am signed in as a Company Admin -> And there is a Workflow with the "additional_info" module -> Given there is an additional info field with: -> And there is an additional info field with: -> When I visit the additional info settings page -> And I remove the "Account Number" additional info field -> And I click on "Save" -> Then I should see a success message "Additional Information Settings were successfully updated" -> When I visit the additional info settings page -> Then I should see an additional info field with: -> And I should not see the "Account Number" additional info field
1755 Updating a Dynamic Label
1756 Given I am signed in as a Company Admin -> And there is a Workflow with the "additional_info" module -> When I visit the additional info settings page -> And I click on "Add another field" -> Then I should see an empty info field title -> When I complete the additional info field with: -> Then I should see an info field title with "Billing Address" -> When I click on "Add another field" -> Then I should see an empty info field title -> And I should see an info field title with "Billing Address" -> When I complete the additional info field with: -> And I click on "Save" -> Then I should see a success message "Additional Information Settings were successfully updated" -> When I visit the additional info settings page -> Then I should see an info field title with "Account Number" -> And I should see an info field title with "Billing Address"
1757 Removing a new Additional Info Module
1758 Given I am signed in as a Company Admin -> And there is a Workflow with the "additional_info" module -> When I visit the additional info settings page -> And I click on "Add another field" -> Then I should see an empty info field title -> When I remove the newly added additional info field -> And I click on "Save" -> Then I should see a success message "Additional Information Settings were successfully updated"
1759
1760Country Risk Review Segments
1761 I review a aproval with country risks
1762 Given there is a Workflow "Country Risk Workflow" with the "country_risk" module -> And there is a Traveller -> Given the Traveller has a completed approval with country risk segments -> And I am signed in as the Traveller -> When I review the last created approval -> Then I should see country risk messages for all segments
1763 I delete CountryRiskList which is using in an aproval
1764 Given there is a Workflow "Country Risk Workflow" with the "country_risk" module -> And there is a Traveller -> Given there is a default country risk list -> And the workflow is configured on custom country risk list -> And the Traveller has a completed approval with country risk segments -> And I am signed in as the Traveller -> When there is deleted CountryRiskList which is using in the approval -> Then I should be able review the last created approval
1765
1766FBT Travel Declaration Workflow
1767 Traveller declares that their trip is not primarily for business
1768 Given there is a Traveller -> And there is a Workflow "FBT Travel Declaration Workflow" with the "fbt_travel_declaration" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I edit the last created approval -> Then I should see "FBT Declaration" -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_true" unchecked -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_false" unchecked -> When I choose "fbt_travel_declaration_primary_purpose_business_false" -> And I click on "Submit" -> And I review the last created approval -> Then I should see "FBT Declaration" -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_false" checked -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_true" unchecked
1769 Traveller declares that their trip is primarily for business
1770 Given there is a Traveller -> And there is a Workflow "FBT Travel Declaration Workflow" with the "fbt_travel_declaration" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I edit the last created approval -> Then I should see "FBT Declaration" -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_true" unchecked -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_false" unchecked -> When I choose "fbt_travel_declaration_primary_purpose_business_true" -> And I click on "Submit" -> And I review the last created approval -> Then I should see "FBT Declaration" -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_true" checked -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_false" unchecked
1771 Traveller must declare whether their trip is primarily for business or not
1772 Given there is a Traveller -> And there is a Workflow "FBT Travel Declaration Workflow" with the "fbt_travel_declaration" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I edit the last created approval -> Then I should see "FBT Declaration" -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_true" unchecked -> And I should see radio button "fbt_travel_declaration_primary_purpose_business_false" unchecked -> When I click on "Submit" -> Then within '.fbt-travel-declaration' I should see "can't be blank"
1773
1774FBT Travel Diary Workflow Module
1775 Validations
1776 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "fbt_travel_diary" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> When I click on "Submit" -> Then I should see "Please select travel type" -> When I select a domestic travel type -> And I click on "Submit" -> Then I should see "Please select Yes or No" -> When I select a domestic travel type -> And I select a trip less than 5 days -> And I select private travel activities -> And I select start and end dates for FBT travel diary -> When I add the activity with dates before trip start -> And I click on "Submit" -> Then I should see "can't be before the start of your trip" -> When I add the activity with dates after trip end -> And I click on "Submit" -> Then I should see "can't be after the end of your trip"
1777 FBT Travel Diary date picker with a placeholder hint
1778 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "fbt_travel_diary" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I empty the "Start Date" field -> And I empty the "End Date" field -> Then I should see a datepicker placeholder "Select date" in "Start Date" within "#module-fbt-travel-diary .fbt_checklist" -> And I should see a datepicker placeholder "Select date" in "End Date" within "#module-fbt-travel-diary .fbt_checklist"
1779 Entering the Travel Details for a Single Day Trip
1780 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "fbt_travel_diary" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> When I select a domestic travel type -> And I select a trip less than 5 days -> And I select private travel activities -> When I add the trip to the meeting -> Then I should see the expected summary values for the trip to the meeting -> And I should see a 60 percent private time alert -> When I add the business meeting -> And I add the private activities -> Then I should see the expected summary values for the meeting -> And I should see a 40 percent private time alert -> When I add the trip home -> Then I should see the expected summary values after returning back home -> And I should see the mostly business time alert -> When I click on "Submit" -> And I review the last created approval -> Then I should see the expected summary values after returning back home -> And I should see the mostly business time alert
1781 Displaying Travel Activities Table and Summary
1782 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "fbt_travel_diary" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> When I select a international travel type -> Then I should see the activities table -> And I should see a 60 percent private time alert -> When I select a domestic travel type -> And I select a trip greater than 5 days -> Then I should see the activities table -> And I should see a 60 percent private time alert -> When I select a trip less than 5 days -> And I select no private travel activities -> Then I should not see the activities table -> And I should see a short term domestic business travel alert -> When I select private travel activities -> Then I should see the activities table -> And I should see a 60 percent private time alert -> When I begin a travel activity -> Then I should see the summary results with errors -> When I click on "Submit" -> And I select no private travel activities -> Then I should see the activities table -> And I should see "can't be blank" -> When I begin a travel activity -> Then the latest activity should be on the next day
1783 Updating Travel Activities
1784 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "fbt_travel_diary" module -> Given the Traveller has a completed approval with a 'trip_booked' state -> And there is a completed fbt travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I add the business meeting -> And I click on "Update" -> Then I should see a success message "FBT Travel Diary was successfully updated." -> And I should see the business trip
1785 Enabled users to submit their travel diary
1786 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "fbt_travel_diary" module -> Given the Traveller has a completed approval with a 'trip_booked' state -> And there is a completed fbt travel details -> And I am signed in as the Traveller -> And the company setting "submit travel diary" is enabled -> When I review the last created approval -> Then I should see "Submit FBT Travel Diary"
1787 Disabled users to submit their travel diary
1788 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "fbt_travel_diary" module -> Given the Traveller has a completed approval with a 'trip_booked' state -> And there is a completed fbt travel details -> And I am signed in as the Traveller -> And the company setting "submit travel diary" is disabled -> When I review the last created approval -> Then I should not see "Submit FBT Travel Diary"
1789
1790Simplified FBT Travel Diary Workflow Module
1791 Validations
1792 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "simplified_fbt_travel_diary" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> When I click on "Submit" -> Then I should see "Please select Yes or No" -> When I select a trip greater than 5 days -> And I mark trip as for business purposes -> And I select start and end dates for FBT travel diary -> When I add the activity with dates before trip start -> And I click on "Submit" -> Then I should see "can't be before the start of your trip" -> When I add the activity with dates after trip end -> And I click on "Submit" -> Then I should see "can't be after the end of your trip"
1793 Entering the Travel Details for a Single Day Trip
1794 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "simplified_fbt_travel_diary" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> When I select a trip less than 5 days -> And I mark trip as for business purposes -> Then I should not see the activities table -> When I select a trip less than 5 days -> And I mark trip as not for business purposes -> Then I should not see the activities table -> When I select a trip greater than 5 days -> And I mark trip as for business purposes -> Then I should see the activities table -> When I select a trip greater than 5 days -> And I mark trip as not for business purposes -> Then I should see the activities table -> When I add the trip to the meeting -> Then I should see the expected summary values for the trip to the meeting -> When I add the business meeting -> And I add the private activities -> Then I should see the expected summary values for the meeting -> When I add the trip home -> Then I should see the expected summary values after returning back home -> When I click on "Submit" -> And I review the last created approval -> Then I should see the expected summary values after returning back home
1795 Updating Travel Activities
1796 Given there is a Traveller -> And there is a Workflow "FBT Calculator Workflow" with the "simplified_fbt_travel_diary" module -> Given the Traveller has a completed approval with a 'trip_booked' state -> And there is a completed simplified fbt travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I add the business meeting -> And I click on "Update" -> Then I should see a success message "Simplified FBT Travel Diary was successfully updated." -> And I should see the business trip
1797
1798Supporting Documents Workflow Module
1799 The user receives the error message when the fields are not filled
1800 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I add a row on workflow module 'module-supporting-documents' -> And I click on "Submit" -> Then within attachment inline help I should see "can't be blank" -> And within comment inline help I should see "can't be blank"
1801 The user receives the error message when tries to upload file with banned extension
1802 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I add a row on workflow module 'module-supporting-documents' -> And I fill supporting document details -> And I fill supporting document path with json file -> And I click on "Submit" -> Then within attachment inline help I should see '"json" files are not supported'
1803 The user receives the error message when tries to upload file with banned MIME type
1804 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I add a row on workflow module 'module-supporting-documents' -> And I fill supporting document details -> And I fill supporting document path with executable pretending an image -> And I click on "Submit" -> Then within attachment inline help I should see "application/x-executable files are not supported."
1805 The user receives the error message when tries to upload file larger than allowed size
1806 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I add a row on workflow module 'module-supporting-documents' -> And I fill supporting document details -> And I fill supporting document path with 20 MB pdf -> And I click on "Submit" -> Then within attachment inline help I should see "File size is too big (should be at most"
1807 Review supporting documents
1808 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And the approval with a supporting document -> And I am signed in as the Traveller -> When I review the last created approval -> Then I should see all supporting documents
1809 Review archived supporting documents
1810 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And the approval with an archived supporting document -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Show Archived" -> Then I should see all archived supporting documents
1811 Add supporting documents on a review page
1812 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I add a row on workflow module 'module-supporting-documents' -> And I fill supporting document details -> And I click on "Save" -> And I review the last created approval -> Then I should see all supporting documents
1813 Add supporting documents on an edit page
1814 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> Then I should see supporting documents title -> When I add a row on workflow module 'module-supporting-documents' -> And I fill supporting document details -> And I click on "Submit" -> And I review the last created approval -> Then I should see all supporting documents
1815 Remove supporting documents on a review page
1816 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And the approval with a supporting document -> And I am signed in as the Traveller -> When I review the last created approval -> And I remove a row on workflow module 'module-supporting-documents' -> And I click on "Save" -> And I review the last created approval -> Then I should not see all supporting documents
1817 Remove supporting documents on an edit page
1818 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And the approval with a supporting document -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I remove a row on workflow module 'module-supporting-documents' -> And I click on "Submit" -> And I review the last created approval -> Then I should not see all supporting documents
1819 Review supporting documents by TMC role
1820 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And there is a TMC Consultant -> And the approval with a supporting document -> And I am signed in as the TMC Consultant
1821 Review supporting documents by TMC role
1822 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And the Traveller is managed by a TMC Consultant -> And the approval with a supporting document -> And I am signed in as the TMC Consultant -> When I review the last created approval -> Then I should see all supporting documents -> And I should not manage supporting documents
1823 Add and remove supporting documents on an edit page
1824 Given there is a Traveller -> And there is a Workflow "Supporting Documents Workflow" with the "supporting_documents" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> Then I should see supporting documents title -> When I add a row on workflow module 'module-supporting-documents' -> And I remove a row on workflow module 'module-supporting-documents' -> And I click on "Submit" -> Then I should see an approval splash message "Your travel request has been successfully submitted"
1825
1826Transfer Details Workflow Module
1827 Submit approval without transfer segment
1828 Given there is a Traveller -> And there is a Workflow "Transfer Details Workflow" with the "transfer_details" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> Then I should see "Transfer Details" -> And I should see "Do You Require a Transfer?" -> When I choose "No" for "Do You Require a Transfer?" -> And I click on "Submit" -> Then I should see "Thank You"
1829 Adding new transfer segment
1830 Given there is a Traveller -> And there is a Workflow "Transfer Details Workflow" with the "transfer_details" module -> Given the Traveller has a draft Approval with complete travel details -> And the Traveller is in time zone "Melbourne" -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> Then I should see "Transfer Details" -> And I should see "Do You Require a Transfer?" -> When I choose "Yes" for "Do You Require a Transfer?" -> Then I should see "Transfer" -> And I should see "Pick Up Location Address" -> And I should see "Drop Off Location Address" -> And I should see a datepicker placeholder "Select date" in "Date" within "#module-transfer-details .segment-form" of "1" -> When I select "Airport Shuttle" as the Transfer Type for transfer number "1" -> And I fill in "transfer_details[transfer_segments_attributes][0][estimated_cost]" with "25.00" -> And I fill in "transfer_details[transfer_segments_attributes][0][from_location]" with "Airport Melbourne" -> And I fill in "transfer_details[transfer_segments_attributes][0][to_location]" with "Melbourne bus station" -> And I fill in date "transfer_details[transfer_segments_attributes][0][date]" with "01-01-3000" -> And I fill in "transfer_details[transfer_segments_attributes][0][time]" with "7:00 AM" -> And I fill in "transfer_details[transfer_segments_attributes][0][comments]" with "Send me a ticket on email" -> And I add a Transfer segment -> And I select "Bus" as the Transfer Type for transfer number "2" -> And I click on "Submit" -> Then I should be notified of missing a mandatory field -> And I should see an inline error on input field named "transfer_details[transfer_segments_attributes][1][from_location]" -> And I should see an inline error on input field named "transfer_details[transfer_segments_attributes][1][to_location]" -> When I fill in "transfer_details[transfer_segments_attributes][1][estimated_cost]" with "25" -> And I fill in "transfer_details[transfer_segments_attributes][1][from_location]" with "Melbourne bus station" -> And I fill in "transfer_details[transfer_segments_attributes][1][to_location]" with "Airport Melbourne" -> And I fill in date "transfer_details[transfer_segments_attributes][1][date]" with "02-02-3000" -> And I fill in "transfer_details[transfer_segments_attributes][1][time]" with "9:00 AM" -> And I fill in "transfer_details[transfer_segments_attributes][1][comments]" with "Buy my a extra baggage" -> And I click on "Submit" -> Then I should see "Thank You" -> When the Traveller is in time zone "Berlin" -> And I review the last created approval -> Then I should see "Transfer Details" -> And within '.transfer-details .panel-title' I should see "Transfer" "2" times -> And within '.transfer-details .panel:nth-of-type(2)' I should see "Airport Shuttle" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "AUD25.00" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "Airport Melbourne" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "Melbourne bus station" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "01-01-3000" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "7:00 AM" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "Send me a ticket on email" -> And within '.transfer-details .panel:nth-of-type(3)' I should see "Bus" -> And within '.transfer-details .panel:nth-of-type(3)' I should see "AUD25.00" -> And within '.transfer-details .panel:nth-of-type(3)' I should see "Melbourne bus station" -> And within '.transfer-details .panel:nth-of-type(3)' I should see "Airport Melbourne" -> And within '.transfer-details .panel:nth-of-type(3)' I should see "02-02-3000" -> And within '.transfer-details .panel:nth-of-type(3)' I should see "Buy my a extra baggage" -> When I click on "Edit Trip" -> And I click on "Continue Editing" -> And I click on "Continue" -> And I click on "Cancel" within ".segment-form:nth-of-type(1)" -> And I click on "Submit" -> And I review the last created approval -> Then within '.transfer-details .panel-title' I should see "Transfer" "1" times -> And within '.transfer-details .panel:nth-of-type(2)' I should see "Bus" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "AUD25.00" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "Melbourne bus station" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "Airport Melbourne" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "02-02-3000" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "9:00 AM" -> And within '.transfer-details .panel:nth-of-type(2)' I should see "Buy my a extra baggage" -> When I review the last created approval -> And I click on 'Quotes' -> Then I should see 'Transfer'
1831 Edit approval with transfer segment
1832 Given there is a Traveller -> And there is a Workflow "Transfer Details Workflow" with the "transfer_details" module -> Given the Traveller has a completed approval with a "draft_saved" state -> And there is a transfer segment for the last created approval -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click on "Continue" -> And I choose "No" for "Do You Require a Transfer?" -> And I click on "Submit" -> And I review the last created approval -> Then I should see "Transfer Details" -> And I should not see "Approximate Cost"
1833 Edit transfer detail with itinerary quote
1834 Given there is a Traveller -> And there is a Workflow "Transfer Details Workflow" with the "transfer_details" module -> Given the Traveller has a completed approval with a "quote_issued" state -> And there is an itinerary quote -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> Then I should see "Transfer Details" -> And I should see "Please use the trip messages to advise your TMC of any changes you require to your transfer"
1835 Save as draft with invalid transfer details form
1836 Given there is a Traveller -> And there is a Workflow "Transfer Details Workflow" with the "transfer_details" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> Then I should see "Transfer Details" -> And I should see "Do You Require a Transfer?" -> When I choose "Yes" for "Do You Require a Transfer?" -> And I click on "Save as Draft" -> Then I should see "Thank You"
1837
1838Travel Consultant Notes Workflow Module
1839 Empty Travel Consultant Notes
1840 Given there is a Traveller -> And there is a Workflow "Travel Consultant Notes Workflow" with the "travel_consultant_notes" module -> Given the Traveller has a completed approval with a 'trip_booked' state -> And the approval includes Travel Consultant Notes without notes -> And I am signed in as the Traveller -> When I review the last created approval -> Then I should not see Travel consultant notes
1841 Non-empty Travel Consultant Notes
1842 Given there is a Traveller -> And there is a Workflow "Travel Consultant Notes Workflow" with the "travel_consultant_notes" module -> Given the Traveller has a completed approval with a 'trip_booked' state -> And the approval includes Travel Consultant Notes with notes -> And I am signed in as the Traveller -> When I review the last created approval -> Then I should see Travel consultant notes
1843
1844Travel Days Workflow Module
1845 Pre-Populated Total Travel Days
1846 Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_days" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> Then I should see "1" in "Total travel days"
1847 Custom Travel Days Message
1848 Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_days" module -> Given the travel days message is set to 'This is a Travel Days Message to the User' -> And the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> Then I should see 'This is a Travel Days Message to the User' -> And I should not see 'If the number of personal travel days is equal to or greater than 30% of the total number of travel days'
1849 Default Traval Days Message
1850 Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_days" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> Then I should see 'If the number of personal travel days is equal to or greater than 30% of the total number of travel days'
1851
1852Travel Details Workflow Module
1853 Travel Reason Other field
1854 Given there is a Traveller -> And there is a Workflow "Travel Details Workflow" with the "travel_reason" module -> Given the Traveller has a draft Approval with complete travel details -> And there is a travel reason that requires a comment -> And there is a travel reason that does not require a comment -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> Then I should not see the Other field -> When I choose the travel reason that requires a comment -> Then I should see the Other field -> When I choose the travel reason that does not require a comment -> Then I should not see the Other field
1855
1856Travel Requirements Workflow Module
1857 Travel Requirements Autofill
1858 Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_requirements" module -> Given the Traveller has a draft Approval with complete travel details -> And the travel requirements module has a completed travel requirement type named "Test Type" -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> And I add a travel requirement item -> Then I should see a travel requirement item matching the travel requirement type
1859 Adding Multiple Travel Requirement Items
1860 Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_requirements" module -> Given the Traveller has a draft Approval with complete travel details -> And the travel requirements module has a completed travel requirement type named "Test Type" -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> And I add a travel requirement item -> And I enter a "Test Type" travel requirement item -> And I add a travel requirement item -> And I enter a "Test Type" travel requirement item -> And I click on "Save as Draft" -> And I review the last created approval -> Then I should see all travel requirement items
1861 Removing a Travel Requirement Item
1862 Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_requirements" module -> Given the Traveller has a draft Approval with complete travel details -> And the approval has a travel requirement item -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> And I remove the travel requirement item -> And I click on "Save as Draft" -> And I review the last created approval -> Then I should not see any travel requirement items (FAILED - 3)
1863 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-00-58-26.341.html
1864 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-00-58-26.341.png
1865 Travel Requirement Item Validation
1866 Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_requirements" module -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> And I add a travel requirement item -> And within 'tr td:nth-child(4)' I should see "TMC/Travel Office" -> And I click on "Submit" -> Then within 'tr .help-inline' I should see "can't be blank" -> And within 'tr td:last-child .help-inline' I should see "is not a number"
1867 View a trip itinerary quotes page with Travel Requirement module
1868 Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_requirements" module -> Given the Traveller has an approval with state "pending_approval" -> And the approval has a travel requirement item -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Quotes" -> Then I should see "Additional Costs" -> And I should not see "Travel Requirements"
1869
1870UTAS Travel Budget Workflow Module
1871 Travel budget module validation
1872 Given there is a Traveller -> And there is a Workflow "Travel Budget Workflow" with the "utas_travel_budget" module -> And there are utas project numbers available for CC1 cost centre -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I fill invalid travel budget cost -> And I click on "Submit" -> Then within '.utas-travel-budget-items-table tr .help-inline' I should see "must be greater than or equal to 0" -> And I should see "can't be blank"
1873 Add travel budget
1874 Given there is a Traveller -> And there is a Workflow "Travel Budget Workflow" with the "utas_travel_budget" module -> And there are utas project numbers available for CC1 cost centre -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I fill travel budget -> And I click on "Submit" -> And I review the last created approval -> Then I should see all travel budget
1875 Edit travel budget
1876 Given there is a Traveller -> And there is a Workflow "Travel Budget Workflow" with the "utas_travel_budget" module -> And there are utas project numbers available for CC1 cost centre -> Given the Traveller has a draft Approval with complete travel details -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I fill travel budget -> And I click on "Submit" -> And I review the last created approval -> And I click on "Edit Trip" -> And I click on "Continue Editing" -> And I click the trip 'Continue' button -> Then I should see edit travel budget values
1877
1878World Vision Risk Rating Workflow Module
1879 Filling in a Risk Module with no risk
1880 Given there is an wvi company -> And there is a Traveller -> And there is a Risk Authoriser with: -> And "Steve" is assigned to the Traveller as an "risk_authoriser" -> And there is a workflow "World Vision Risk Rating Workflow" of type "cost_auth_only" with modules: -> Given the Traveller has a partially complete wvi approval -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I fill in the wvi risk rating module -> And I click on "Submit" -> Then I should see an approval splash message "Your travel request has been successfully submitted" (FAILED - 4)
1881 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-00-59-44.766.html
1882 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-00-59-44.766.png
1883 Filling in a risk rating with a high risk
1884 Given there is an wvi company -> And there is a Traveller -> And there is a Risk Authoriser with: -> And "Steve" is assigned to the Traveller as an "risk_authoriser" -> And there is a workflow "World Vision Risk Rating Workflow" of type "cost_auth_only" with modules: -> Given the Traveller has a partially complete wvi approval -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I fill in the wvi risk rating module with a high risk limit -> And I click on "Submit" -> Then I should see an approval splash message "Your travel request has been sent to Steve Smith for risk approval"
1885
1886Cost Approval CBT Workflow Traveller Steps
1887 Loading the CBT Booking Tool with an Unprocessable Error
1888I, [2017-07-18T01:00:05.223240 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1889 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> And the CBT Tool has raised an Unprocessable error -> Then I should see a something went wrong dialog
1890
1891Cost Approval CBT Workflow Authoriser Steps
1892 Previewing an Itinerary Quote
1893 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Authoriser has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I click on the approval -> And I click on "Quotes" in the sidebar -> Then I should be able to preview the itinerary quote
1894 Approving a Issued Itinerary
1895I, [2017-07-18T01:00:18.802568 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1896 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Authoriser has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And The 'Cbt::ApprovalQueueJob' is performed with a delay -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the itinerary -> Then I should see a 'pending_booking' message for authoriser -> And the owner should have received a 'pending_booking' email -> And the Agency Department should have received a 'pending_booking' email -> And a CBT approval queue job has been enqueued -> And a CBT file finishing job has been enqueued
1897 Declining a Issued Itinerary
1898 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Authoriser has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And the "Cbt::CancellationQueueJob" is performed later -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline all itineraries -> Then I should see a 'itinerary_declined' message for authoriser -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email -> And a cancel CBT itinerary quote job has been enqueued -> And a CBT file finishing job has been enqueued
1899 Declining a TMC Issued Itinerary
1900 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Authoriser has CBT SSO access -> Given there is a 'quote_issued' approval with an itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline all itineraries -> Then I should see a 'itinerary_declined' message for authoriser -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email
1901
1902Cost Only CBT Workflow Import Itinerary Job Steps
1903 Importing a CBT Itinerary Quote
1904 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> When I import a valid cbt itinerary -> Then the approval should have changed to 'quote_issued' -> And the authoriser should have received a 'quote_issued' email
1905 Importing a CBT Itinerary Quote with cbt policy violations
1906 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> When I import a cbt itinerary with cbt policy violations -> Then the approval should have changed to 'quote_issued' -> And the authoriser should have received a 'quote_issued' email
1907
1908Cost Only CBT Workflow Import Partial Itinerary Job Steps
1909 Importing a CBT Partial Itinerary Quote
1910 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> When I import a partial cbt itinerary -> Then the approval should have changed to 'quote_partially_issued' -> And the owner should have received a 'quote_partially_issued' email -> And the Agency Department should have received a 'quote_partially_issued' email
1911 Uploading an Itinerary Quote to a Partially Issued Approval
1912 Given there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_partially_issued' approval with a cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
1913
1914Cost Approval CBT Workflow Risk Authoriser Steps
1915 Approving a Risk Approval Required Approval
1916I, [2017-07-18T01:00:51.524629 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1917 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I allow the approval risks -> Then I should see a 'pending_cbt_itinerary' message for risk authoriser -> And the owner should have received a 'pending_cbt_itinerary' email
1918 Declining a Risk Approval Required Approval
1919 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I deny the approval risks -> Then I should see a 'request_forbidden' message for risk authoriser -> And the owner should have received a 'request_forbidden' email
1920
1921Cost Approval CBT Workflow TMC Steps
1922 Uploading a Itinerary Quote to a Itinerary Declined Approval
1923 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> Given there is a 'itinerary_declined' approval with a cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the authoriser should have received a 'quote_issued' email
1924 Booking a Approved CBT Itinerary Quote
1925I, [2017-07-18T01:01:06.652402 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1926 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> Given there is a 'pending_booking' approval with a approved cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email
1927 Booking a Approved Itinerary Quote with a corrupted hotel segment
1928I, [2017-07-18T01:01:11.499824 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1929 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> Given there is a pending booking approval with an approved cbt itinerary quote containing a corrupted hotel segment without a total cost -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email
1930 Cancelling a Itinerary Quote
1931 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> Given there is a 'pending_booking' approval with an itinerary quote -> And I am signed in as the TMC Consultant -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email
1932 Cancelling a Approved CBT Itinerary Quote
1933 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> Given there is a 'pending_booking' approval with a approved cbt itinerary quote -> And I am signed in as the TMC Consultant -> And the "Cbt::CancellationQueueJob" is performed later -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email -> And a cancel CBT itinerary quote job has been enqueued
1934
1935Cost Approval CBT Workflow Travel Arranger Steps
1936 Completing a Draft Approval
1937I, [2017-07-18T01:01:27.213842 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1938 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And the Traveller has an assigned Travel Arranger -> And the Travel Arranger has CBT SSO access -> And I am signed in as the Travel Arranger -> When I switch identity to the Traveller -> And I review and start a cbt booking -> Then I should have started a cbt booking
1939 Previewing an Itinerary Quote
1940 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And the Traveller has an assigned Travel Arranger -> And the Travel Arranger has CBT SSO access -> And I am signed in as the Travel Arranger -> When I switch identity to the Traveller -> And I click on the approval -> And I click on "Quotes" in the sidebar -> Then I should be able to preview the itinerary quote
1941
1942Cost Approval CBT Workflow Traveller Steps
1943 Completing a Draft Approval
1944I, [2017-07-18T01:01:37.646673 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1945 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking
1946 Completing a Draft Approval with a Shared Trip Request
1947I, [2017-07-18T01:01:42.666311 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1948 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking -> And I should have sent all group notifications
1949 Completing a Draft Approval with a at risk country
1950 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email
1951 Completing a Changed Approval
1952I, [2017-07-18T01:02:04.568693 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1953 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking
1954 Completing a Changed Approval with a at risk country
1955 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'change_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email
1956 Completing a CBT Itinerary Quote
1957 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'pending_cbt_itinerary' approval -> And I am signed in as the Traveller -> And the "Cbt::ImportItineraryJob" is performed later -> When I enter and submit a cbt itinerary -> Then I should see a 'itinerary_importing' message for traveller
1958 Previewing an Itinerary Quote
1959 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> And I click on "Quotes" in the sidebar -> Then I should be able to preview the itinerary quote
1960 Visiting a Quote Issued Approval
1961 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
1962 Visiting a Request Declined Approval
1963 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_declined' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
1964 Visiting a Importing Itinerary Approval
1965 Given single page workflows are enabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
1966
1967Default Workflow CBT Workflow Traveller with Authoriser Steps
1968 Approving an Issued Itinerary
1969I, [2017-07-18T01:02:32.710580 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1970 Given single page workflows are enabled -> And there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> And the Traveller has the Authoriser Role -> And the Traveller is assigned to the Traveller as an "authoriser" -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> And The 'Cbt::ApprovalQueueJob' is performed with a delay -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I approve the itinerary -> Then I should see a 'pending_booking' message for traveller -> And the owner should have received a 'pending_booking' email -> And the Agency Department should have received a 'pending_booking' email -> And a CBT approval queue job has been enqueued -> And a CBT file finishing job has been enqueued
1971 Declining an Issued Itinerary
1972 Given single page workflows are enabled -> And there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> And the Traveller has the Authoriser Role -> And the Traveller is assigned to the Traveller as an "authoriser" -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> And the "Cbt::CancellationQueueJob" is performed later -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I decline all itineraries -> Then I should see a 'itinerary_declined' message for traveller -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email -> And a cancel CBT itinerary quote job has been enqueued -> And a CBT file finishing job has been enqueued
1973 Declining a TMC Issued Itinerary
1974 Given single page workflows are enabled -> And there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> And the Traveller has the Authoriser Role -> And the Traveller is assigned to the Traveller as an "authoriser" -> Given there is a 'quote_issued' approval with an itinerary quote -> And I am signed in as the Traveller -> When I decline all itineraries -> Then I should see a 'itinerary_declined' message for traveller -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email
1975 Cancelling a Issued Itinerary
1976 Given single page workflows are enabled -> And there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> And the Traveller has the Authoriser Role -> And the Traveller is assigned to the Traveller as an "authoriser" -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> And the "Cbt::CancellationQueueJob" is performed later -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for traveller -> And the owner should have received a 'trip_cancelled' email -> And the authoriser should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email -> And a cancel CBT itinerary quote job has been enqueued
1977
1978Multi-Page Cost Approval CBT Workflow Traveller Steps
1979 Completing a Draft Approval
1980 Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking (FAILED - 5)
1981 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-03-26.185.html
1982 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-03-26.185.png
1983 Completing a Draft Approval with a Shared Trip Request
1984I, [2017-07-18T01:03:36.336726 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1985 Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking -> And I should have sent all group notifications
1986 Completing a Draft Approval with a at risk country
1987 Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email
1988 Completing a Changed Approval
1989I, [2017-07-18T01:03:54.828822 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
1990 Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking
1991 Completing a Changed Approval with a at risk country
1992 Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'change_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email
1993 Completing a CBT Itinerary Quote
1994 Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'pending_cbt_itinerary' approval -> And I am signed in as the Traveller -> And the "Cbt::ImportItineraryJob" is performed later -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I enter and submit a cbt itinerary -> Then I should see a 'itinerary_importing' message for traveller
1995 Visiting a Quote Issued Approval
1996 Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
1997 Visiting a Request Declined Approval
1998 Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_declined' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
1999 Visiting a Importing Itinerary Approval
2000 Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
2001
2002No Approval CBT Workflow Import Itinerary Job Steps
2003 Importing a CBT Itinerary Quote
2004I, [2013-06-19T04:56:30.000000 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2005 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> And The 'Cbt::ApprovalQueueJob' is performed with a delay -> When I import a valid cbt itinerary -> Then the approval should have changed to 'pending_booking' -> And It should create last stakeholder event with state "pending_booking" -> And the Agency Department should have received a 'pending_booking' email -> And a CBT approval queue job has been enqueued
2006 Importing a CBT Itinerary Quote with cbt policy violations
2007I, [2012-12-25T12:59:00.000000 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2008 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> And The 'Cbt::ApprovalQueueJob' is performed with a delay -> When I import a cbt itinerary with cbt policy violations -> Then the approval should have changed to 'pending_booking' -> And the Agency Department should have received a 'pending_booking' email -> And a CBT approval queue job has been enqueued
2009
2010No Approval CBT Workflow Risk Authoriser Steps
2011 Approving a Risk Approval Required Approval
2012I, [2017-07-18T01:04:28.913417 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2013 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I allow the approval risks -> Then I should see a 'pending_cbt_itinerary' message for risk authoriser -> And the owner should have received a 'pending_cbt_itinerary' email
2014 Declining a Risk Approval Required Approval
2015 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I deny the approval risks -> Then I should see a 'request_forbidden' message for risk authoriser -> And the owner should have received a 'request_forbidden' email
2016
2017No Approval CBT Workflow TMC Steps
2018 Booking a Approved CBT Itinerary Quote
2019I, [2017-07-18T01:04:36.136326 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2020 Given single page workflows are enabled -> And there is a cbt workflow with "no_approval" -> And there are all cbt workflow users -> Given there is a "pending_booking" approval with a approved cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a "trip_booked" message for tmc -> And the owner should have received a "trip_booked" email
2021 Cancelling a Approved CBT Itinerary Quote
2022 Given single page workflows are enabled -> And there is a cbt workflow with "no_approval" -> And there are all cbt workflow users -> Given there is a "pending_booking" approval with a approved cbt itinerary quote -> And I am signed in as the TMC Consultant -> And the "Cbt::CancellationQueueJob" is performed later -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I cancel the trip -> Then I should see a "trip_cancelled" message for tmc -> And the owner should have received a "trip_cancelled" email -> And the Agency Department should have received a "trip_cancelled" email -> And a cancel CBT itinerary quote job has been enqueued
2023 Uploading an Itinerary Quote to a Partially Issued Approval
2024I, [2017-07-18T01:04:44.832778 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2025 Given single page workflows are enabled -> And there is a cbt workflow with "no_approval" -> And there are all cbt workflow users -> Given there is a 'quote_partially_issued' approval with a cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I review the current approval -> Then I should not see "Submit for Authorisation" -> When I upload an itinerary without authorisation -> Then I should see a success message "Itinerary Uploaded" -> And the Agency Department should have received a "pending_booking" email
2026 Mark an approval with a partially issued quote as booked
2027I, [2017-07-18T01:04:48.998250 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2028 Given single page workflows are enabled -> And there is a cbt workflow with "no_approval" -> And there are all cbt workflow users -> Given there is a "quote_partially_issued" approval with a approved cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I mark the trip request as booked -> Then I should see a "trip_booked" message for tmc -> And the owner should have received a "trip_booked" email
2029
2030No Auth CBT Workflow Traveller Steps
2031 Completing a Draft Approval
2032I, [2017-07-18T01:04:53.847190 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2033 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking
2034 Completing a Draft Approval with a Shared Trip Request
2035I, [2017-07-18T01:04:58.657436 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2036 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking -> And I should have sent all group notifications
2037 Completing a Draft Approval with a at risk country
2038 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email
2039 Completing a Changed Approval
2040I, [2017-07-18T01:05:08.193246 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2041 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking
2042 Completing a Changed Approval with a at risk country
2043 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'change_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email
2044 Completing a CBT Itinerary Quote
2045 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'pending_cbt_itinerary' approval -> And I am signed in as the Traveller -> And the "Cbt::ImportItineraryJob" is performed later -> When I enter and submit a cbt itinerary -> Then I should see a 'itinerary_importing' message for traveller
2046 Completing a CBT Itinerary Quote with cbt policy violations
2047 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'pending_cbt_itinerary' approval -> And I am signed in as the Traveller -> And the "Cbt::ImportItineraryJob" is performed later -> When I enter and submit a cbt itinerary -> Then I should see a 'itinerary_importing' message for traveller
2048 Visiting a Importing Itinerary Approval
2049 Given single page workflows are enabled -> And there is a cbt workflow with 'no_approval' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
2050
2051Policy Approval CBT Workflow Authoriser Steps
2052 Approving a Issued Itinerary
2053I, [2017-07-18T01:05:44.151419 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2054 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> Given there is a 'quote_issued' approval with cbt policy violations -> And The 'Cbt::ApprovalQueueJob' is performed with a delay -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the itinerary -> Then I should see a 'pending_booking' message for authoriser -> And the owner should have received a 'pending_booking' email -> And the Agency Department should have received a 'pending_booking' email -> And a CBT approval queue job has been enqueued -> And a CBT file finishing job has been enqueued
2055 Declining a Issued Itinerary
2056 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> Given there is a 'quote_issued' approval with cbt policy violations -> And the "Cbt::CancellationQueueJob" is performed later -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline all itineraries -> Then I should see a 'itinerary_declined' message for authoriser -> And the owner should have received a 'itinerary_declined' email -> And a cancel CBT itinerary quote job has been enqueued -> And a CBT file finishing job has been enqueued -> And the Agency Department should have received a 'itinerary_declined' email
2057 Declining a TMC Issued Itinerary
2058 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> Given there is a 'quote_issued' approval with an itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline all itineraries -> Then I should see a 'itinerary_declined' message for authoriser -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email
2059
2060Policy Approval CBT Workflow Import Itinerary Job Steps
2061 Importing a CBT Itinerary Quote
2062I, [2013-06-19T04:56:30.000000 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2063 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> And The 'Cbt::ApprovalQueueJob' is performed with a delay -> When I import a valid cbt itinerary -> Then the approval should have changed to 'pending_booking' -> And the Agency Department should have received a 'pending_booking' email -> And a CBT approval queue job has been enqueued
2064 Importing a CBT Itinerary Quote with cbt policy violations
2065 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> When I import a cbt itinerary with cbt policy violations -> Then the approval should have changed to 'quote_issued' -> And the authoriser should have received a 'quote_issued' email
2066
2067Policy Approval CBT Workflow Risk Authoriser Steps
2068 Approving a Risk Approval Required Approval
2069I, [2017-07-18T01:06:01.406484 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2070 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I allow the approval risks -> Then I should see a 'pending_cbt_itinerary' message for risk authoriser -> And the owner should have received a 'pending_cbt_itinerary' email
2071 Declining a Risk Approval Required Approval
2072 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I deny the approval risks -> Then I should see a 'request_forbidden' message for risk authoriser -> And the owner should have received a 'request_forbidden' email
2073
2074Policy Only Workflow TMC Steps
2075 Uploading a Itinerary Quote to a Itinerary Declined Approval
2076 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> Given there is a 'itinerary_declined' approval with cbt policy violations -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the authoriser should have received a 'quote_issued' email
2077 Booking a Approved CBT Itinerary Quote
2078I, [2017-07-18T01:06:15.054031 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2079 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> Given there is a 'pending_booking' approval with a approved cbt itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email
2080 Cancelling a Approved CBT Itinerary Quote
2081 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> Given there is a 'pending_booking' approval with a approved cbt itinerary quote -> And I am signed in as the TMC Consultant -> And the "Cbt::CancellationQueueJob" is performed later -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email -> And a cancel CBT itinerary quote job has been enqueued
2082
2083Policy Approval CBT Workflow Traveller Steps
2084 Completing a Draft Approval
2085I, [2017-07-18T01:06:25.144404 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2086 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking
2087 Completing a Draft Approval with a Shared Trip Request
2088I, [2017-07-18T01:06:29.783316 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2089 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking -> And I should have sent all group notifications
2090 Completing a Draft Approval with a at risk country
2091 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email
2092 Completing a Changed Approval
2093I, [2017-07-18T01:07:32.615386 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2094 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking
2095 Completing a Changed Approval with a at risk country
2096 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'change_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email
2097 Completing a CBT Itinerary Quote
2098 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'pending_cbt_itinerary' approval -> And I am signed in as the Traveller -> And the "Cbt::ImportItineraryJob" is performed later -> When I enter and submit a cbt itinerary -> Then I should see a 'itinerary_importing' message for traveller
2099 Visiting a Importing Itinerary Approval
2100 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_importing' approval with a placeholder cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
2101 Visiting a Quote Issued Approval
2102 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
2103 Visiting a Request Declined Approval
2104 Given single page workflows are enabled -> And there is a cbt workflow with 'policy_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'itinerary_declined' approval with a cbt itinerary quote -> And I am signed in as the Traveller -> When I click on the approval -> Then I should not be able to update the approval
2105
2106Pre Trip CBT Workflow Authoriser Steps
2107 Approving a Pending Approval
2108I, [2017-07-18T01:08:00.122905 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2109 Given single page workflows are enabled -> And there is a cbt workflow with 'pre_trip_only' -> And there are all cbt workflow users -> Given there is a 'pending_approval' approval -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the trip -> Then I should see a 'pending_cbt_itinerary' message for authoriser -> And the owner should have received a 'pending_cbt_itinerary' email
2110 Decline a Pending Approval
2111 Given single page workflows are enabled -> And there is a cbt workflow with 'pre_trip_only' -> And there are all cbt workflow users -> Given there is a 'pending_approval' approval -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline the trip -> Then I should see a 'request_declined' message for authoriser -> And the owner should have received a 'request_declined' email
2112
2113Pre Trip CBT Workflow Traveller Steps
2114 Completing a Draft Approval
2115 Given single page workflows are enabled -> And there is a cbt workflow with 'pre_trip_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email
2116 Completing a CBT Itinerary Quote
2117 Given single page workflows are enabled -> And there is a cbt workflow with 'pre_trip_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'pending_cbt_itinerary' approval -> And I am signed in as the Traveller -> And the "Cbt::ImportItineraryJob" is performed later -> And the "Cbt::AddFileFinishingRemarkJob" is performed later -> When I enter and submit a cbt itinerary -> Then I should see a 'itinerary_importing' message for traveller
2118
2119Cost Approval Offline Workflow Authoriser Steps
2120 Approving a Issued Itinerary
2121I, [2017-07-18T01:08:21.588863 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2122 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'quote_issued' approval with an itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the itinerary -> Then I should see a 'pending_booking' message for authoriser -> And the owner should have received a 'pending_booking' email -> And the Agency Department should have received a 'pending_booking' email
2123 Declining a Issued Itinerary
2124 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'quote_issued' approval with an itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline all itineraries -> Then I should see a 'itinerary_declined' message for authoriser -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email
2125
2126Cost Approval Offline Workflow Risk Authoriser Steps
2127 Approving a Risk Approval Required Approval
2128I, [2017-07-18T01:08:30.747676 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2129 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I allow the approval risks -> Then I should see a 'pending_itinerary' message for risk authoriser -> And the owner should have received a 'pending_itinerary' email -> And the Agency Department should have received a 'pending_itinerary' email
2130 Declining a Risk Approval Required Approval
2131 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I deny the approval risks -> Then I should see a 'request_forbidden' message for risk authoriser -> And the owner should have received a 'request_forbidden' email
2132
2133Cost Approval Offline Workflow TMC Steps
2134 Uploading a Itinerary Quote to a Pending Itinerary Approval
2135 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
2136 Uploading a Itinerary Quote to a Itinerary Declined Approval
2137 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is an 'itinerary_declined' approval with an itinerary quote -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
2138 Booking a Approved Itinerary Quote
2139I, [2017-07-18T01:08:49.853557 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2140 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email
2141 Cancelling a Approved Itinerary Quote
2142 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email
2143
2144Cost Approval Offline Workflow Traveller Steps
2145 Completing a Draft Approval
2146I, [2017-07-18T01:09:15.399477 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2147 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And the owner should have received a 'trip_submitted' email
2148 Completing a Draft Approval with a Shared Trip Request
2149I, [2017-07-18T01:09:22.855269 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2150 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And I should have sent all group notifications -> And the owner should have received a 'trip_submitted' email
2151 Completing a Draft Approval with a at risk country
2152 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email -> And the owner should have received a 'trip_submitted' email
2153 Completing a Draft Approval with a at risk country with a country risk setting override
2154I, [2017-07-18T01:09:35.353239 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2155 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given the country risk threshold is set to "Reconsider your need to travel" -> And there is a 'draft_saved' approval with a low country risk -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And the owner should have received a 'trip_submitted' email
2156 Completing a Changed Approval
2157I, [2017-07-18T01:09:42.505336 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2158 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And the owner should have received a 'trip_submitted' email
2159 Completing a Changed Approval with a at risk country
2160 Given there is a offline workflow with 'cost_auth_only' -> And there are all workflow users -> Given there is a 'change_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email -> And the owner should have received a 'trip_submitted' email
2161
2162Default Offline Workflow Authoriser Steps
2163 Approving a Pending Approval with a safe country
2164I, [2017-07-18T01:09:52.321681 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2165 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_approval' approval -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the trip -> Then I should see a 'pending_itinerary' message for authoriser -> And the owner should have received a 'pending_itinerary' email -> And the Agency Department should have received a 'pending_itinerary' email
2166 Approving a Pending Approval with a at risk country
2167 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_approval' approval with a country risk -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the trip -> Then I should see a 'risk_approval_required' message for authoriser -> And the risk authoriser should have received a 'risk_approval_required' email
2168 Decline a Pending Approval with a safe country
2169 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_approval' approval -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline the trip -> Then I should see a 'request_declined' message for authoriser -> And the owner should have received a 'request_declined' email
2170 Declining a Pending Approval with a at risk country
2171 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_approval' approval with a country risk -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline the trip -> Then I should see a 'request_declined' message for authoriser -> And the owner should have received a 'request_declined' email
2172 Approving a Issued Itinerary
2173I, [2017-07-18T01:10:08.334567 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2174 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'quote_issued' approval with an itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the itinerary -> Then I should see a 'pending_booking' message for authoriser -> And the owner should have received a 'pending_booking' email -> And the Agency Department should have received a 'pending_booking' email
2175 Declining a Issued Itinerary
2176 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'quote_issued' approval with an itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline all itineraries -> Then I should see a 'itinerary_declined' message for authoriser -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email
2177
2178Default Offline Workflow Risk Authoriser Steps
2179 Approving a Risk Approval Required Approval
2180I, [2017-07-18T01:10:16.321979 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2181 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I allow the approval risks -> Then I should see a 'pending_itinerary' message for risk authoriser -> And the owner should have received a 'pending_itinerary' email -> And the Agency Department should have received a 'pending_itinerary' email
2182 Declining a Risk Approval Required Approval
2183 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I deny the approval risks -> Then I should see a 'request_forbidden' message for risk authoriser -> And the owner should have received a 'request_forbidden' email
2184
2185Default Offline Workflow TMC Steps
2186 Uploading a Itinerary Quote to a Pending Itinerary Approval
2187 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email (FAILED - 6)
2188 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-21.157.html
2189 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-21.157.png
2190 Uploading a Itinerary Quote to a Itinerary Declined Approval
2191 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'itinerary_declined' approval with an itinerary quote -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email (FAILED - 7)
2192 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-25.768.html
2193 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-25.768.png
2194 Booking a Approved Itinerary Quote
2195 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email (FAILED - 8)
2196 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-29.714.html
2197 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-29.714.png
2198 Cancelling a Approved Itinerary Quote
2199 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email (FAILED - 9)
2200 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-33.135.html
2201 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-33.135.png
2202
2203Default Offline Workflow Traveller Steps
2204 Completing a Draft Approval
2205 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email (FAILED - 10)
2206 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-36.571.html
2207 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-36.571.png
2208 Completing a Draft Approval with a Shared Trip Request
2209 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And I should have sent all group notifications -> And the owner should have received a 'trip_submitted' email (FAILED - 11)
2210 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-39.851.html
2211 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-39.851.png
2212 Completing a Changed Approval
2213 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email (FAILED - 12)
2214 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-43.163.html
2215 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-43.163.png
2216 Viewing the status of a Pending Approval Approval
2217 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_approval' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'pending_approval' Approval (FAILED - 13)
2218 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-46.843.html
2219 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-46.843.png
2220 Viewing the status of a Request Declined Approval
2221 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'request_declined' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'request_declined' Approval (FAILED - 14)
2222 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-50.392.html
2223 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-50.392.png
2224 Viewing the status of a Request Forbidden Approval
2225 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'request_forbidden' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'request_forbidden' Approval (FAILED - 15)
2226 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-55.128.html
2227 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-55.128.png
2228 Viewing the status of a Pending Itinerary Approval
2229 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'pending_itinerary' Approval (FAILED - 16)
2230 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-59.950.html
2231 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-11-59.950.png
2232 Viewing the status of a Quote Issued Approval
2233 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'quote_issued' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'quote_issued' Approval (FAILED - 17)
2234 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-02.964.html
2235 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-02.964.png
2236 Viewing the status of a Pending Booking Approval
2237 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'pending_booking' Approval (FAILED - 18)
2238 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-06.156.html
2239 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-06.156.png
2240 Viewing the status of a Itinerary Declined Approval
2241 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'itinerary_declined' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'itinerary_declined' Approval (FAILED - 19)
2242 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-09.541.html
2243 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-09.541.png
2244 Viewing the status of a Trip Booked Approval
2245 Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'trip_booked' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'trip_booked' Approval (FAILED - 20)
2246 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-12.989.html
2247 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-12.989.png
2248
2249Itinerary Review Offline Workflow Authoriser Steps
2250 Approving a Issued Itinerary
2251I, [2017-07-18T01:12:20.511458 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2252 Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is a 'quote_issued' approval with an itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the itinerary -> Then I should see a 'pending_booking' message for authoriser -> And the owner should have received a 'pending_booking' email -> And the Agency Department should have received a 'pending_booking' email
2253 Approving a Preferred Issued Itinerary
2254I, [2017-07-18T01:12:30.896630 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2255 Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is a 'quote_issued' approval with a preferred itinerary quote -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the preferred itinerary -> Then I should see a 'pending_booking' message for authoriser -> And the owner should have received a 'pending_booking' email -> And the Agency Department should have received a 'pending_booking' email
2256
2257Itinerary Review Offline Workflow TMC Steps
2258 Uploading a Itinerary Quote to a Pending Itinerary Approval
2259 Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> When I upload a itinerary for review -> Then I should see a 'itinerary_review' message for tmc -> And the owner should have received a 'itinerary_review' email (FAILED - 21)
2260 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-39.994.html
2261 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-39.994.png
2262 Uploading a Itinerary Quote to a Itinerary Declined Approval
2263 Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is an 'itinerary_declined' approval with an itinerary quote -> And I am signed in as the TMC Consultant -> When I upload a itinerary for review -> Then I should see a 'itinerary_review' message for tmc -> And the owner should have received a 'itinerary_review' email (FAILED - 22)
2264 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-46.027.html
2265 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-46.027.png
2266
2267Itinerary Review Offline Workflow Traveller Steps
2268 Preferring an Uploaded Itinerary Quote
2269 Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is an 'itinerary_review' approval with an itinerary quote -> And I am signed in as the Traveller -> When I review and prefer an itinerary quote -> Then I should see a 'quote_issued' message for traveller -> And It should create last stakeholder event with state "quote_issued" -> And the authoriser should have received a 'quote_issued' email (FAILED - 23)
2270 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-51.613.html
2271 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-51.613.png
2272 Decline a Uploaded Itinerary Quote
2273 Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is an 'itinerary_review' approval with an itinerary quote -> And I am signed in as the Traveller -> When I decline all itineraries -> Then I should see a 'itinerary_declined' message for traveller -> And It should create last stakeholder event with state "itinerary_declined" -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email (FAILED - 24)
2274 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-58.113.html
2275 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-12-58.113.png
2276
2277No Approval Offline Workflow Risk Authoriser Steps
2278 Approving a Risk Approval Required Approval
2279I, [2017-07-18T01:13:07.692540 #46702] INFO -- : Call to _post /api/trips has been disabled. Set InsightClient.config.enabled to true to enable
2280 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I allow the approval risks -> Then I should see a 'pending_itinerary' message for risk authoriser -> And the owner should have received a 'pending_itinerary' email -> And the Agency Department should have received a 'pending_itinerary' email
2281 Declining a Risk Approval Required Approval
2282 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I deny the approval risks -> Then I should see a 'request_forbidden' message for risk authoriser -> And the owner should have received a 'request_forbidden' email
2283
2284No Approval Offline Workflow TMC Steps
2285 Uploading a Itinerary Quote to a Pending Itinerary Approval
2286 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> And I am reviewing the current approval -> When I upload an itinerary without authorisation -> Then I should see 'Itinerary Uploaded' -> And the Agency Department should have received a 'pending_booking' email (FAILED - 25)
2287 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-25.079.html
2288 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-25.079.png
2289 Booking a Approved Itinerary Quote
2290 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email (FAILED - 26)
2291 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-28.560.html
2292 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-28.560.png
2293 Cancelling a Approved Itinerary Quote
2294 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email (FAILED - 27)
2295 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-31.964.html
2296 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-31.964.png
2297
2298No Approval Offline Workflow Traveller Steps
2299 Completing a Draft Approval
2300 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And the owner should have received a 'trip_submitted' email (FAILED - 28)
2301 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-35.432.html
2302 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-35.432.png
2303 Completing a Draft Approval with a Shared Trip Request
2304 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And I should have sent all group notifications -> And the owner should have received a 'trip_submitted' email (FAILED - 29)
2305 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-39.293.html
2306 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-39.293.png
2307 Completing a Draft Approval with a at risk country
2308 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email -> And the owner should have received a 'trip_submitted' email (FAILED - 30)
2309 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-42.669.html
2310 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-42.669.png
2311 Completing a Changed Approval
2312 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And the owner should have received a 'trip_submitted' email (FAILED - 31)
2313 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-45.586.html
2314 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-45.586.png
2315 Completing a Changed Approval with a at risk country
2316 Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'change_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email -> And the owner should have received a 'trip_submitted' email (FAILED - 32)
2317 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-48.500.html
2318 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-13-48.500.png
2319
2320Authorised Pre Trip Only Workflow Authoriser Steps
2321 Approving a Pending Approval with a safe country
2322 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'pending_approval' approval -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the trip -> Then I should see a 'pre_trip_approved' message for authoriser -> And the owner should have received a 'pre_trip_approved' email
2323 Approving a Pending Approval with a at risk country
2324 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'pending_approval' approval with a country risk -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I approve the trip -> Then I should see a 'risk_approval_required' message for authoriser -> And the risk authoriser should have received a 'risk_approval_required' email
2325 Decline a Pending Approval with a safe country
2326 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'pending_approval' approval -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline the trip -> Then I should see a 'request_declined' message for authoriser -> And the owner should have received a 'request_declined' email
2327 Declining a Pending Approval with a at risk country
2328 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'pending_approval' approval with a country risk -> When I visit the Awaiting Authorisation tab as the Authoriser -> And I decline the trip -> Then I should see a 'request_declined' message for authoriser -> And the owner should have received a 'request_declined' email
2329
2330Authorised Pre Trip Only Workflow Risk Authoriser Steps
2331 Approving a Risk Approval Required Approval
2332 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I allow the approval risks -> Then I should see a 'pre_trip_approved' message for risk authoriser -> And the owner should have received a 'pre_trip_approved' email
2333 Declining a Risk Approval Required Approval
2334 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'risk_approval_required' approval with a country risk -> When I visit the High Risk Trips tab as the Risk Authoriser -> And I deny the approval risks -> Then I should see a 'request_forbidden' message for risk authoriser -> And the owner should have received a 'request_forbidden' email
2335
2336Authorised Pre Trip Only Workflow Traveller Steps
2337 Completing a Draft Approval
2338 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email (FAILED - 33)
2339 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-44.386.html
2340 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-44.386.png
2341 Completing a Draft Approval with a Shared Trip Request
2342 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And I should have sent all group notifications (FAILED - 34)
2343 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-46.684.html
2344 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-46.684.png
2345 Completing a Changed Approval
2346 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email (FAILED - 35)
2347 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-49.435.html
2348 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-49.435.png
2349 Inline booking for Ross' WoAG demo
2350 Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'pre_trip_approved' approval -> And the Traveller has CBT SSO access -> And the Systest Book Online hack is enabled -> And I am signed in as the Traveller -> When I click on the approval -> Then I should see a 'Book Online' button (FAILED - 36)
2351 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-51.845.html
2352 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-51.845.png
2353
2354Sabre Booking Button
2355 Traveller with Sabre Access
2356 Given there is a Traveller with traits "with_obe_credentials" -> And the company setting "sabre_booking_tool" is enabled -> And the Traveller is in group "All Employees" -> When I sign in as the Traveller -> Then I should see "Domestic Booking"
2357 Traveller with Sabre Access but company disabled
2358 Given there is a Traveller with traits "with_obe_credentials" -> And the company setting "sabre_booking_tool" is disabled -> And the Traveller is in group "All Employees" -> When I sign in as the Traveller -> Then I should not see "Domestic Booking"
2359 Traveller without Sabre Access
2360 Given there is a Traveller -> And the company setting "sabre_booking_tool" is enabled -> And the Traveller is in group "All Employees" -> When I sign in as the Traveller -> Then I should not see "Domestic Booking"
2361
2362Workflow button feature
2363 workflows - traveller with no authorisers
2364 Given there is a Traveller -> And the Traveller is in group "All Employees" -> And there is a workflow 'Offline - Pre Trip Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip Only (Approver Group)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool '', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> When I sign in as the Traveller -> Then I should see a disabled or enabled workflow button with no authorisers (FAILED - 37)
2365 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-57.641.html
2366 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-14-57.641.png
2367 workflows - traveller with authorisers
2368 Given there is a Traveller -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And there is a workflow 'Offline - Pre Trip Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip Only (Approver Group)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool '', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> When I sign in as the Traveller -> Then I should see a disabled or enabled workflow button with authorisers (FAILED - 38)
2369 HTML screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-15-00.928.html
2370 Image screenshot: file:///Users/micro/Develop/LocomoteProjects/travel_management_platform/tmp/capybara/screenshot_2017-07-18-01-15-00.928.png
2371
2372Failures:
2373
2374 1) Company Credit Cards Adding new company credit card Given the company setting "company financial" is enabled -> And I am signed in as a Company Admin -> When I visit the admin "Credit Cards" page -> And I click on "Add Credit Card" -> Then I should not see "Card Owner"
2375 Got 0 failures and 2 other errors:
2376
2377 1.1) Failure/Error: page.evaluate_script("jQuery.active").zero?
2378
2379 Timeout::Error:
2380 execution expired
2381 # <internal:prelude>:76:in `__read_nonblock'
2382 # <internal:prelude>:76:in `read_nonblock'
2383 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2384 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2385 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2386 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2387 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2388 # spec/steps/user_authentication_steps.rb:39:in `block in <module:UserAuthenticationSteps>'
2389 # ./spec/acceptance/company_admin/company_credit_cards.feature:4:in `run_step'
2390 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2391 # ./spec/support/environment_variables.rb:20:in `with'
2392 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2393 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2394 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2395 # ./spec/acceptance/company_admin/company_credit_cards.feature:4:in `I am signed in as a Company Admin'
2396
2397 1.2) Failure/Error: example.run
2398
2399 JSON::ParserError:
2400 A JSON text must at least contain two octets!
2401 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2402 # ./spec/support/environment_variables.rb:20:in `with'
2403 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2404 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2405 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2406
2407 2) Traveller Edit CBT Approval Editing an Approval with a CBT Itinerary Quote Given there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> When I resubmit the approval -> Then I should see an approval splash message "Your travel request has been updated"
2408 Failure/Error: page.evaluate_script("jQuery.active").zero?
2409
2410 Timeout::Error:
2411 execution expired
2412 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2413 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2414 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2415 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2416 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2417 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2418 # ./spec/acceptance/traveller/edit_cbt_approval.feature:21:in `run_step'
2419 # ./spec/acceptance/traveller/edit_cbt_approval.feature:20:in `block (4 levels) in run_feature'
2420 # ./spec/acceptance/traveller/edit_cbt_approval.feature:19:in `each'
2421 # ./spec/acceptance/traveller/edit_cbt_approval.feature:19:in `block (3 levels) in run_feature'
2422 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2423 # ./spec/support/environment_variables.rb:20:in `with'
2424 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2425 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2426 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2427 # ./spec/acceptance/traveller/edit_cbt_approval.feature:21:in `I am signed in as the Traveller'
2428
2429 3) Travel Requirements Workflow Module Removing a Travel Requirement Item Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_requirements" module -> Given the Traveller has a draft Approval with complete travel details -> And the approval has a travel requirement item -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> And I remove the travel requirement item -> And I click on "Save as Draft" -> And I review the last created approval -> Then I should not see any travel requirement items
2430 Failure/Error: page.evaluate_script("jQuery.active").zero?
2431
2432 Timeout::Error:
2433 execution expired
2434 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2435 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2436 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2437 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2438 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2439 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2440 # ./spec/acceptance/workflow_modules/travel_requirements.feature:37:in `run_step'
2441 # ./spec/acceptance/workflow_modules/travel_requirements.feature:36:in `block (4 levels) in run_feature'
2442 # ./spec/acceptance/workflow_modules/travel_requirements.feature:35:in `each'
2443 # ./spec/acceptance/workflow_modules/travel_requirements.feature:35:in `block (3 levels) in run_feature'
2444 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2445 # ./spec/support/environment_variables.rb:20:in `with'
2446 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2447 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2448 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2449 # ./spec/acceptance/workflow_modules/travel_requirements.feature:37:in `I am signed in as the Traveller'
2450
2451 4) World Vision Risk Rating Workflow Module Filling in a Risk Module with no risk Given there is an wvi company -> And there is a Traveller -> And there is a Risk Authoriser with: -> And "Steve" is assigned to the Traveller as an "risk_authoriser" -> And there is a workflow "World Vision Risk Rating Workflow" of type "cost_auth_only" with modules: -> Given the Traveller has a partially complete wvi approval -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I fill in the wvi risk rating module -> And I click on "Submit" -> Then I should see an approval splash message "Your travel request has been successfully submitted"
2452 Failure/Error: page.evaluate_script("jQuery.active").zero?
2453
2454 Timeout::Error:
2455 execution expired
2456 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2457 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2458 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2459 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2460 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2461 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2462 # ./spec/acceptance/workflow_modules/wvi_risk_rating.feature:19:in `run_step'
2463 # ./spec/acceptance/workflow_modules/wvi_risk_rating.feature:19:in `block (4 levels) in run_feature'
2464 # ./spec/acceptance/workflow_modules/wvi_risk_rating.feature:18:in `each'
2465 # ./spec/acceptance/workflow_modules/wvi_risk_rating.feature:18:in `block (3 levels) in run_feature'
2466 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2467 # ./spec/support/environment_variables.rb:20:in `with'
2468 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2469 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2470 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2471 # ./spec/acceptance/workflow_modules/wvi_risk_rating.feature:19:in `I am signed in as the Traveller'
2472
2473 5) Multi-Page Cost Approval CBT Workflow Traveller Steps Completing a Draft Approval Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking
2474 Failure/Error: page.evaluate_script("jQuery.active").zero?
2475
2476 Timeout::Error:
2477 execution expired
2478 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2479 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2480 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2481 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2482 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2483 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2484 # ./spec/acceptance/workflows/cbt/multipage_cost_only_traveller_workflow.feature:14:in `run_step'
2485 # ./spec/acceptance/workflows/cbt/multipage_cost_only_traveller_workflow.feature:14:in `block (4 levels) in run_feature'
2486 # ./spec/acceptance/workflows/cbt/multipage_cost_only_traveller_workflow.feature:13:in `each'
2487 # ./spec/acceptance/workflows/cbt/multipage_cost_only_traveller_workflow.feature:13:in `block (3 levels) in run_feature'
2488 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2489 # ./spec/support/environment_variables.rb:20:in `with'
2490 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2491 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2492 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2493 # ./spec/acceptance/workflows/cbt/multipage_cost_only_traveller_workflow.feature:14:in `I am signed in as the Traveller'
2494
2495 6) Default Offline Workflow TMC Steps Uploading a Itinerary Quote to a Pending Itinerary Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
2496 Failure/Error: page.evaluate_script("jQuery.active").zero?
2497
2498 Timeout::Error:
2499 execution expired
2500 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2501 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2502 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2503 # spec/steps/workflows/tmc_workflow_steps.rb:91:in `upload_itinerary_quotes'
2504 # spec/steps/workflows/tmc_workflow_steps.rb:77:in `upload_itinerary'
2505 # spec/steps/workflows/tmc_workflow_steps.rb:14:in `upload_itinerary_for_authorisation'
2506 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:13:in `run_step'
2507 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:12:in `block (4 levels) in run_feature'
2508 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:11:in `each'
2509 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:11:in `block (3 levels) in run_feature'
2510 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2511 # ./spec/support/environment_variables.rb:20:in `with'
2512 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2513 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2514 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2515 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:13:in `I upload a itinerary'
2516
2517 7) Default Offline Workflow TMC Steps Uploading a Itinerary Quote to a Itinerary Declined Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'itinerary_declined' approval with an itinerary quote -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
2518 Failure/Error: page.evaluate_script("jQuery.active").zero?
2519
2520 NoMethodError:
2521 undefined method `zero?' for nil:NilClass
2522 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2523 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2524 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2525 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2526 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2527 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2528 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:20:in `run_step'
2529 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:20:in `block (4 levels) in run_feature'
2530 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:19:in `each'
2531 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:19:in `block (3 levels) in run_feature'
2532 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2533 # ./spec/support/environment_variables.rb:20:in `with'
2534 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2535 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2536 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2537 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:20:in `I am signed in as the TMC Consultant'
2538
2539 8) Default Offline Workflow TMC Steps Booking a Approved Itinerary Quote Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email
2540 Failure/Error: page.evaluate_script("jQuery.active").zero?
2541
2542 NoMethodError:
2543 undefined method `zero?' for nil:NilClass
2544 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2545 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2546 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2547 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2548 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2549 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2550 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:28:in `run_step'
2551 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:28:in `block (4 levels) in run_feature'
2552 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:27:in `each'
2553 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:27:in `block (3 levels) in run_feature'
2554 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2555 # ./spec/support/environment_variables.rb:20:in `with'
2556 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2557 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2558 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2559 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:28:in `I am signed in as the TMC Consultant'
2560
2561 9) Default Offline Workflow TMC Steps Cancelling a Approved Itinerary Quote Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email
2562 Failure/Error: page.evaluate_script("jQuery.active").zero?
2563
2564 NoMethodError:
2565 undefined method `zero?' for nil:NilClass
2566 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2567 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2568 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2569 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2570 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2571 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2572 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:35:in `run_step'
2573 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:35:in `block (4 levels) in run_feature'
2574 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:34:in `each'
2575 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:34:in `block (3 levels) in run_feature'
2576 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2577 # ./spec/support/environment_variables.rb:20:in `with'
2578 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2579 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2580 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2581 # ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:35:in `I am signed in as the TMC Consultant'
2582
2583 10) Default Offline Workflow Traveller Steps Completing a Draft Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email
2584 Failure/Error: page.evaluate_script("jQuery.active").zero?
2585
2586 NoMethodError:
2587 undefined method `zero?' for nil:NilClass
2588 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2589 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2590 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2591 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2592 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2593 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2594 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:12:in `run_step'
2595 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:12:in `block (4 levels) in run_feature'
2596 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:11:in `each'
2597 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:11:in `block (3 levels) in run_feature'
2598 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2599 # ./spec/support/environment_variables.rb:20:in `with'
2600 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2601 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2602 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2603 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:12:in `I am signed in as the Traveller'
2604
2605 11) Default Offline Workflow Traveller Steps Completing a Draft Approval with a Shared Trip Request Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And I should have sent all group notifications -> And the owner should have received a 'trip_submitted' email
2606 Failure/Error: page.evaluate_script("jQuery.active").zero?
2607
2608 NoMethodError:
2609 undefined method `zero?' for nil:NilClass
2610 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2611 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2612 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2613 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2614 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2615 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2616 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:20:in `run_step'
2617 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:20:in `block (4 levels) in run_feature'
2618 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:19:in `each'
2619 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:19:in `block (3 levels) in run_feature'
2620 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2621 # ./spec/support/environment_variables.rb:20:in `with'
2622 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2623 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2624 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2625 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:20:in `I am signed in as the Traveller'
2626
2627 12) Default Offline Workflow Traveller Steps Completing a Changed Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email
2628 Failure/Error: page.evaluate_script("jQuery.active").zero?
2629
2630 NoMethodError:
2631 undefined method `zero?' for nil:NilClass
2632 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2633 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2634 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2635 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2636 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2637 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2638 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:29:in `run_step'
2639 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:29:in `block (4 levels) in run_feature'
2640 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:28:in `each'
2641 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:28:in `block (3 levels) in run_feature'
2642 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2643 # ./spec/support/environment_variables.rb:20:in `with'
2644 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2645 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2646 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2647 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:29:in `I am signed in as the Traveller'
2648
2649 13) Default Offline Workflow Traveller Steps Viewing the status of a Pending Approval Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_approval' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'pending_approval' Approval
2650 Failure/Error: page.evaluate_script("jQuery.active").zero?
2651
2652 NoMethodError:
2653 undefined method `zero?' for nil:NilClass
2654 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2655 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2656 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2657 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2658 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2659 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2660 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:37:in `run_step'
2661 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:37:in `block (4 levels) in run_feature'
2662 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:36:in `each'
2663 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:36:in `block (3 levels) in run_feature'
2664 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2665 # ./spec/support/environment_variables.rb:20:in `with'
2666 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2667 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2668 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2669 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:37:in `I am signed in as the Traveller'
2670
2671 14) Default Offline Workflow Traveller Steps Viewing the status of a Request Declined Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'request_declined' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'request_declined' Approval
2672 Failure/Error: page.evaluate_script("jQuery.active").zero?
2673
2674 NoMethodError:
2675 undefined method `zero?' for nil:NilClass
2676 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2677 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2678 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2679 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2680 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2681 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2682 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:43:in `run_step'
2683 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:43:in `block (4 levels) in run_feature'
2684 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:42:in `each'
2685 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:42:in `block (3 levels) in run_feature'
2686 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2687 # ./spec/support/environment_variables.rb:20:in `with'
2688 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2689 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2690 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2691 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:43:in `I am signed in as the Traveller'
2692
2693 15) Default Offline Workflow Traveller Steps Viewing the status of a Request Forbidden Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'request_forbidden' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'request_forbidden' Approval
2694 Failure/Error: page.evaluate_script("jQuery.active").zero?
2695
2696 NoMethodError:
2697 undefined method `zero?' for nil:NilClass
2698 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2699 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2700 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2701 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2702 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2703 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2704 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:49:in `run_step'
2705 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:49:in `block (4 levels) in run_feature'
2706 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:48:in `each'
2707 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:48:in `block (3 levels) in run_feature'
2708 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2709 # ./spec/support/environment_variables.rb:20:in `with'
2710 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2711 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2712 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2713 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:49:in `I am signed in as the Traveller'
2714
2715 16) Default Offline Workflow Traveller Steps Viewing the status of a Pending Itinerary Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'pending_itinerary' Approval
2716 Failure/Error: page.evaluate_script("jQuery.active").zero?
2717
2718 NoMethodError:
2719 undefined method `zero?' for nil:NilClass
2720 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2721 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2722 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2723 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2724 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2725 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2726 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:55:in `run_step'
2727 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:55:in `block (4 levels) in run_feature'
2728 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:54:in `each'
2729 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:54:in `block (3 levels) in run_feature'
2730 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2731 # ./spec/support/environment_variables.rb:20:in `with'
2732 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2733 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2734 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2735 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:55:in `I am signed in as the Traveller'
2736
2737 17) Default Offline Workflow Traveller Steps Viewing the status of a Quote Issued Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'quote_issued' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'quote_issued' Approval
2738 Failure/Error: page.evaluate_script("jQuery.active").zero?
2739
2740 NoMethodError:
2741 undefined method `zero?' for nil:NilClass
2742 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2743 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2744 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2745 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2746 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2747 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2748 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:61:in `run_step'
2749 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:61:in `block (4 levels) in run_feature'
2750 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:60:in `each'
2751 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:60:in `block (3 levels) in run_feature'
2752 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2753 # ./spec/support/environment_variables.rb:20:in `with'
2754 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2755 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2756 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2757 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:61:in `I am signed in as the Traveller'
2758
2759 18) Default Offline Workflow Traveller Steps Viewing the status of a Pending Booking Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'pending_booking' Approval
2760 Failure/Error: page.evaluate_script("jQuery.active").zero?
2761
2762 NoMethodError:
2763 undefined method `zero?' for nil:NilClass
2764 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2765 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2766 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2767 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2768 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2769 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2770 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:67:in `run_step'
2771 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:67:in `block (4 levels) in run_feature'
2772 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:66:in `each'
2773 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:66:in `block (3 levels) in run_feature'
2774 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2775 # ./spec/support/environment_variables.rb:20:in `with'
2776 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2777 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2778 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2779 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:67:in `I am signed in as the Traveller'
2780
2781 19) Default Offline Workflow Traveller Steps Viewing the status of a Itinerary Declined Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'itinerary_declined' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'itinerary_declined' Approval
2782 Failure/Error: page.evaluate_script("jQuery.active").zero?
2783
2784 NoMethodError:
2785 undefined method `zero?' for nil:NilClass
2786 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2787 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2788 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2789 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2790 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2791 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2792 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:73:in `run_step'
2793 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:73:in `block (4 levels) in run_feature'
2794 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:72:in `each'
2795 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:72:in `block (3 levels) in run_feature'
2796 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2797 # ./spec/support/environment_variables.rb:20:in `with'
2798 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2799 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2800 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2801 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:73:in `I am signed in as the Traveller'
2802
2803 20) Default Offline Workflow Traveller Steps Viewing the status of a Trip Booked Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'trip_booked' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'trip_booked' Approval
2804 Failure/Error: page.evaluate_script("jQuery.active").zero?
2805
2806 NoMethodError:
2807 undefined method `zero?' for nil:NilClass
2808 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2809 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2810 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2811 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2812 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2813 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2814 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:79:in `run_step'
2815 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:79:in `block (4 levels) in run_feature'
2816 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:78:in `each'
2817 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:78:in `block (3 levels) in run_feature'
2818 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2819 # ./spec/support/environment_variables.rb:20:in `with'
2820 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2821 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2822 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2823 # ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:79:in `I am signed in as the Traveller'
2824
2825 21) Itinerary Review Offline Workflow TMC Steps Uploading a Itinerary Quote to a Pending Itinerary Approval Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> When I upload a itinerary for review -> Then I should see a 'itinerary_review' message for tmc -> And the owner should have received a 'itinerary_review' email
2826 Failure/Error: page.evaluate_script("jQuery.active").zero?
2827
2828 NoMethodError:
2829 undefined method `zero?' for nil:NilClass
2830 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2831 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2832 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2833 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2834 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2835 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2836 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:12:in `run_step'
2837 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:12:in `block (4 levels) in run_feature'
2838 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:11:in `each'
2839 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:11:in `block (3 levels) in run_feature'
2840 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2841 # ./spec/support/environment_variables.rb:20:in `with'
2842 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2843 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2844 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2845 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:12:in `I am signed in as the TMC Consultant'
2846
2847 22) Itinerary Review Offline Workflow TMC Steps Uploading a Itinerary Quote to a Itinerary Declined Approval Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is an 'itinerary_declined' approval with an itinerary quote -> And I am signed in as the TMC Consultant -> When I upload a itinerary for review -> Then I should see a 'itinerary_review' message for tmc -> And the owner should have received a 'itinerary_review' email
2848 Failure/Error: page.evaluate_script("jQuery.active").zero?
2849
2850 NoMethodError:
2851 undefined method `zero?' for nil:NilClass
2852 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2853 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2854 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2855 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2856 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2857 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2858 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:19:in `run_step'
2859 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:19:in `block (4 levels) in run_feature'
2860 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:18:in `each'
2861 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:18:in `block (3 levels) in run_feature'
2862 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2863 # ./spec/support/environment_variables.rb:20:in `with'
2864 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2865 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2866 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2867 # ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:19:in `I am signed in as the TMC Consultant'
2868
2869 23) Itinerary Review Offline Workflow Traveller Steps Preferring an Uploaded Itinerary Quote Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is an 'itinerary_review' approval with an itinerary quote -> And I am signed in as the Traveller -> When I review and prefer an itinerary quote -> Then I should see a 'quote_issued' message for traveller -> And It should create last stakeholder event with state "quote_issued" -> And the authoriser should have received a 'quote_issued' email
2870 Failure/Error: page.evaluate_script("jQuery.active").zero?
2871
2872 NoMethodError:
2873 undefined method `zero?' for nil:NilClass
2874 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2875 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2876 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2877 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2878 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2879 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2880 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:12:in `run_step'
2881 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:12:in `block (4 levels) in run_feature'
2882 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:11:in `each'
2883 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:11:in `block (3 levels) in run_feature'
2884 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2885 # ./spec/support/environment_variables.rb:20:in `with'
2886 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2887 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2888 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2889 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:12:in `I am signed in as the Traveller'
2890
2891 24) Itinerary Review Offline Workflow Traveller Steps Decline a Uploaded Itinerary Quote Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is an 'itinerary_review' approval with an itinerary quote -> And I am signed in as the Traveller -> When I decline all itineraries -> Then I should see a 'itinerary_declined' message for traveller -> And It should create last stakeholder event with state "itinerary_declined" -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email
2892 Failure/Error: page.evaluate_script("jQuery.active").zero?
2893
2894 NoMethodError:
2895 undefined method `zero?' for nil:NilClass
2896 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2897 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2898 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2899 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2900 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2901 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2902 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:20:in `run_step'
2903 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:20:in `block (4 levels) in run_feature'
2904 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:19:in `each'
2905 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:19:in `block (3 levels) in run_feature'
2906 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2907 # ./spec/support/environment_variables.rb:20:in `with'
2908 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2909 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2910 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2911 # ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:20:in `I am signed in as the Traveller'
2912
2913 25) No Approval Offline Workflow TMC Steps Uploading a Itinerary Quote to a Pending Itinerary Approval Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> And I am reviewing the current approval -> When I upload an itinerary without authorisation -> Then I should see 'Itinerary Uploaded' -> And the Agency Department should have received a 'pending_booking' email
2914 Failure/Error: page.evaluate_script("jQuery.active").zero?
2915
2916 NoMethodError:
2917 undefined method `zero?' for nil:NilClass
2918 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2919 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2920 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2921 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2922 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2923 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2924 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:12:in `run_step'
2925 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:12:in `block (4 levels) in run_feature'
2926 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:11:in `each'
2927 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:11:in `block (3 levels) in run_feature'
2928 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2929 # ./spec/support/environment_variables.rb:20:in `with'
2930 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2931 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2932 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2933 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:12:in `I am signed in as the TMC Consultant'
2934
2935 26) No Approval Offline Workflow TMC Steps Booking a Approved Itinerary Quote Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email
2936 Failure/Error: page.evaluate_script("jQuery.active").zero?
2937
2938 NoMethodError:
2939 undefined method `zero?' for nil:NilClass
2940 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2941 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2942 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2943 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2944 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2945 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2946 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:20:in `run_step'
2947 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:20:in `block (4 levels) in run_feature'
2948 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:19:in `each'
2949 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:19:in `block (3 levels) in run_feature'
2950 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2951 # ./spec/support/environment_variables.rb:20:in `with'
2952 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2953 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2954 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2955 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:20:in `I am signed in as the TMC Consultant'
2956
2957 27) No Approval Offline Workflow TMC Steps Cancelling a Approved Itinerary Quote Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email
2958 Failure/Error: page.evaluate_script("jQuery.active").zero?
2959
2960 NoMethodError:
2961 undefined method `zero?' for nil:NilClass
2962 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2963 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2964 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2965 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2966 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2967 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2968 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:27:in `run_step'
2969 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:27:in `block (4 levels) in run_feature'
2970 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:26:in `each'
2971 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:26:in `block (3 levels) in run_feature'
2972 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2973 # ./spec/support/environment_variables.rb:20:in `with'
2974 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2975 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2976 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2977 # ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:27:in `I am signed in as the TMC Consultant'
2978
2979 28) No Approval Offline Workflow Traveller Steps Completing a Draft Approval Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And the owner should have received a 'trip_submitted' email
2980 Failure/Error: page.evaluate_script("jQuery.active").zero?
2981
2982 NoMethodError:
2983 undefined method `zero?' for nil:NilClass
2984 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
2985 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
2986 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
2987 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
2988 # spec/steps/user_authentication_steps.rb:7:in `login_user'
2989 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
2990 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:12:in `run_step'
2991 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:12:in `block (4 levels) in run_feature'
2992 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:11:in `each'
2993 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:11:in `block (3 levels) in run_feature'
2994 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
2995 # ./spec/support/environment_variables.rb:20:in `with'
2996 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
2997 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
2998 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
2999 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:12:in `I am signed in as the Traveller'
3000
3001 29) No Approval Offline Workflow Traveller Steps Completing a Draft Approval with a Shared Trip Request Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And I should have sent all group notifications -> And the owner should have received a 'trip_submitted' email
3002 Failure/Error: page.evaluate_script("jQuery.active").zero?
3003
3004 NoMethodError:
3005 undefined method `zero?' for nil:NilClass
3006 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3007 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3008 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3009 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3010 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3011 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
3012 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:20:in `run_step'
3013 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:20:in `block (4 levels) in run_feature'
3014 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:19:in `each'
3015 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:19:in `block (3 levels) in run_feature'
3016 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3017 # ./spec/support/environment_variables.rb:20:in `with'
3018 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3019 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3020 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3021 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:20:in `I am signed in as the Traveller'
3022
3023 30) No Approval Offline Workflow Traveller Steps Completing a Draft Approval with a at risk country Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email -> And the owner should have received a 'trip_submitted' email
3024 Failure/Error: page.evaluate_script("jQuery.active").zero?
3025
3026 NoMethodError:
3027 undefined method `zero?' for nil:NilClass
3028 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3029 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3030 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3031 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3032 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3033 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
3034 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:29:in `run_step'
3035 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:29:in `block (4 levels) in run_feature'
3036 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:28:in `each'
3037 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:28:in `block (3 levels) in run_feature'
3038 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3039 # ./spec/support/environment_variables.rb:20:in `with'
3040 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3041 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3042 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3043 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:29:in `I am signed in as the Traveller'
3044
3045 31) No Approval Offline Workflow Traveller Steps Completing a Changed Approval Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And the owner should have received a 'trip_submitted' email
3046 Failure/Error: page.evaluate_script("jQuery.active").zero?
3047
3048 NoMethodError:
3049 undefined method `zero?' for nil:NilClass
3050 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3051 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3052 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3053 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3054 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3055 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
3056 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:37:in `run_step'
3057 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:37:in `block (4 levels) in run_feature'
3058 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:36:in `each'
3059 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:36:in `block (3 levels) in run_feature'
3060 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3061 # ./spec/support/environment_variables.rb:20:in `with'
3062 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3063 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3064 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3065 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:37:in `I am signed in as the Traveller'
3066
3067 32) No Approval Offline Workflow Traveller Steps Completing a Changed Approval with a at risk country Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'change_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email -> And the owner should have received a 'trip_submitted' email
3068 Failure/Error: page.evaluate_script("jQuery.active").zero?
3069
3070 NoMethodError:
3071 undefined method `zero?' for nil:NilClass
3072 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3073 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3074 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3075 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3076 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3077 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
3078 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:45:in `run_step'
3079 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:45:in `block (4 levels) in run_feature'
3080 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:44:in `each'
3081 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:44:in `block (3 levels) in run_feature'
3082 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3083 # ./spec/support/environment_variables.rb:20:in `with'
3084 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3085 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3086 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3087 # ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:45:in `I am signed in as the Traveller'
3088
3089 33) Authorised Pre Trip Only Workflow Traveller Steps Completing a Draft Approval Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email
3090 Failure/Error: page.evaluate_script("jQuery.active").zero?
3091
3092 NoMethodError:
3093 undefined method `zero?' for nil:NilClass
3094 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3095 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3096 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3097 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3098 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3099 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
3100 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:12:in `run_step'
3101 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:12:in `block (4 levels) in run_feature'
3102 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:11:in `each'
3103 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:11:in `block (3 levels) in run_feature'
3104 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3105 # ./spec/support/environment_variables.rb:20:in `with'
3106 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3107 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3108 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3109 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:12:in `I am signed in as the Traveller'
3110
3111 34) Authorised Pre Trip Only Workflow Traveller Steps Completing a Draft Approval with a Shared Trip Request Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And I should have sent all group notifications
3112 Failure/Error: page.evaluate_script("jQuery.active").zero?
3113
3114 NoMethodError:
3115 undefined method `zero?' for nil:NilClass
3116 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3117 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3118 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3119 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3120 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3121 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
3122 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:19:in `run_step'
3123 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:19:in `block (4 levels) in run_feature'
3124 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:18:in `each'
3125 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:18:in `block (3 levels) in run_feature'
3126 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3127 # ./spec/support/environment_variables.rb:20:in `with'
3128 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3129 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3130 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3131 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:19:in `I am signed in as the Traveller'
3132
3133 35) Authorised Pre Trip Only Workflow Traveller Steps Completing a Changed Approval Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email
3134 Failure/Error: page.evaluate_script("jQuery.active").zero?
3135
3136 NoMethodError:
3137 undefined method `zero?' for nil:NilClass
3138 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3139 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3140 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3141 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3142 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3143 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
3144 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:27:in `run_step'
3145 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:27:in `block (4 levels) in run_feature'
3146 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:26:in `each'
3147 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:26:in `block (3 levels) in run_feature'
3148 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3149 # ./spec/support/environment_variables.rb:20:in `with'
3150 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3151 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3152 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3153 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:27:in `I am signed in as the Traveller'
3154
3155 36) Authorised Pre Trip Only Workflow Traveller Steps Inline booking for Ross' WoAG demo Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'pre_trip_approved' approval -> And the Traveller has CBT SSO access -> And the Systest Book Online hack is enabled -> And I am signed in as the Traveller -> When I click on the approval -> Then I should see a 'Book Online' button
3156 Failure/Error: page.evaluate_script("jQuery.active").zero?
3157
3158 NoMethodError:
3159 undefined method `zero?' for nil:NilClass
3160 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3161 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3162 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3163 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3164 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3165 # spec/steps/user_authentication_steps.rb:34:in `block in <module:UserAuthenticationSteps>'
3166 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:36:in `run_step'
3167 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:34:in `block (4 levels) in run_feature'
3168 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:33:in `each'
3169 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:33:in `block (3 levels) in run_feature'
3170 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3171 # ./spec/support/environment_variables.rb:20:in `with'
3172 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3173 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3174 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3175 # ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:36:in `I am signed in as the Traveller'
3176
3177 37) Workflow button feature workflows - traveller with no authorisers Given there is a Traveller -> And the Traveller is in group "All Employees" -> And there is a workflow 'Offline - Pre Trip Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip Only (Approver Group)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool '', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> When I sign in as the Traveller -> Then I should see a disabled or enabled workflow button with no authorisers
3178 Failure/Error: page.evaluate_script("jQuery.active").zero?
3179
3180 NoMethodError:
3181 undefined method `zero?' for nil:NilClass
3182 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3183 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3184 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3185 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3186 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3187 # spec/steps/user_authentication_steps.rb:46:in `block in <module:UserAuthenticationSteps>'
3188 # ./spec/acceptance/workflows/workflow_button.feature:23:in `run_step'
3189 # ./spec/acceptance/workflows/workflow_button.feature:6:in `block (4 levels) in run_feature'
3190 # ./spec/acceptance/workflows/workflow_button.feature:5:in `each'
3191 # ./spec/acceptance/workflows/workflow_button.feature:5:in `block (3 levels) in run_feature'
3192 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3193 # ./spec/support/environment_variables.rb:20:in `with'
3194 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3195 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3196 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3197 # ./spec/acceptance/workflows/workflow_button.feature:23:in `I sign in as the Traveller'
3198
3199 38) Workflow button feature workflows - traveller with authorisers Given there is a Traveller -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And there is a workflow 'Offline - Pre Trip Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip Only (Approver Group)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool '', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> When I sign in as the Traveller -> Then I should see a disabled or enabled workflow button with authorisers
3200 Failure/Error: page.evaluate_script("jQuery.active").zero?
3201
3202 NoMethodError:
3203 undefined method `zero?' for nil:NilClass
3204 # ./spec/support/wait_for_ajax.rb:17:in `finished_all_ajax_requests?'
3205 # ./spec/support/wait_for_ajax.rb:4:in `block in wait_for_ajax'
3206 # ./spec/support/wait_for_ajax.rb:3:in `wait_for_ajax'
3207 # ./spec/support/wait_for_ajax.rb:23:in `wait_for_ajax_to_complete'
3208 # spec/steps/user_authentication_steps.rb:7:in `login_user'
3209 # spec/steps/user_authentication_steps.rb:46:in `block in <module:UserAuthenticationSteps>'
3210 # ./spec/acceptance/workflows/workflow_button.feature:46:in `run_step'
3211 # ./spec/acceptance/workflows/workflow_button.feature:28:in `block (4 levels) in run_feature'
3212 # ./spec/acceptance/workflows/workflow_button.feature:27:in `each'
3213 # ./spec/acceptance/workflows/workflow_button.feature:27:in `block (3 levels) in run_feature'
3214 # ./spec/support/resource_exporter.rb:7:in `block (3 levels) in <top (required)>'
3215 # ./spec/support/environment_variables.rb:20:in `with'
3216 # ./spec/support/resource_exporter.rb:6:in `block (2 levels) in <top (required)>'
3217 # ./spec/support/database_cleaner_configuration.rb:25:in `block (2 levels) in setup'
3218 # ./spec/support/database_cleaner_configuration.rb:25:in `block in setup'
3219 # ./spec/acceptance/workflows/workflow_button.feature:46:in `I sign in as the Traveller'
3220
3221Finished in 52 minutes 22 seconds (files took 20.95 seconds to load)
3222658 examples, 38 failures
3223
3224Failed examples:
3225
3226rspec ./spec/acceptance/company_admin/company_credit_cards.feature:7 # Company Credit Cards Adding new company credit card Given the company setting "company financial" is enabled -> And I am signed in as a Company Admin -> When I visit the admin "Credit Cards" page -> And I click on "Add Credit Card" -> Then I should not see "Card Owner"
3227rspec ./spec/acceptance/traveller/edit_cbt_approval.feature:18 # Traveller Edit CBT Approval Editing an Approval with a CBT Itinerary Quote Given there is a cbt workflow with 'default_workflow' -> And there are all cbt workflow users -> Given there is a 'quote_issued' approval with a cbt itinerary quote -> And the Traveller has CBT SSO access -> And I am signed in as the Traveller -> When I resubmit the approval -> Then I should see an approval splash message "Your travel request has been updated"
3228rspec ./spec/acceptance/workflow_modules/travel_requirements.feature:34 # Travel Requirements Workflow Module Removing a Travel Requirement Item Given there is a Traveller -> And there is a Workflow "Travel Days Workflow" with the "travel_requirements" module -> Given the Traveller has a draft Approval with complete travel details -> And the approval has a travel requirement item -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit" -> And I click on "Continue" -> And I remove the travel requirement item -> And I click on "Save as Draft" -> And I review the last created approval -> Then I should not see any travel requirement items
3229rspec ./spec/acceptance/workflow_modules/wvi_risk_rating.feature:17 # World Vision Risk Rating Workflow Module Filling in a Risk Module with no risk Given there is an wvi company -> And there is a Traveller -> And there is a Risk Authoriser with: -> And "Steve" is assigned to the Traveller as an "risk_authoriser" -> And there is a workflow "World Vision Risk Rating Workflow" of type "cost_auth_only" with modules: -> Given the Traveller has a partially complete wvi approval -> And I am signed in as the Traveller -> When I review the last created approval -> And I click on "Edit Trip" -> And I click the trip 'Continue' button -> And I fill in the wvi risk rating module -> And I click on "Submit" -> Then I should see an approval splash message "Your travel request has been successfully submitted"
3230rspec ./spec/acceptance/workflows/cbt/multipage_cost_only_traveller_workflow.feature:12 # Multi-Page Cost Approval CBT Workflow Traveller Steps Completing a Draft Approval Given single page workflows are disabled -> And there is a cbt workflow with 'cost_auth_only' -> And there are all cbt workflow users -> And the Traveller has CBT SSO access -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and start a cbt booking -> Then I should have started a cbt booking
3231rspec ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:10 # Default Offline Workflow TMC Steps Uploading a Itinerary Quote to a Pending Itinerary Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
3232rspec ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:18 # Default Offline Workflow TMC Steps Uploading a Itinerary Quote to a Itinerary Declined Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'itinerary_declined' approval with an itinerary quote -> And I am signed in as the TMC Consultant -> When I upload a itinerary -> Then I should see a 'quote_issued' message for tmc -> And the owner should have received a 'quote_issued' email -> And the authoriser should have received a 'quote_issued' email
3233rspec ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:26 # Default Offline Workflow TMC Steps Booking a Approved Itinerary Quote Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email
3234rspec ./spec/acceptance/workflows/offline/default_tmc_workflow.feature:33 # Default Offline Workflow TMC Steps Cancelling a Approved Itinerary Quote Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email
3235rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:10 # Default Offline Workflow Traveller Steps Completing a Draft Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email
3236rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:18 # Default Offline Workflow Traveller Steps Completing a Draft Approval with a Shared Trip Request Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And I should have sent all group notifications -> And the owner should have received a 'trip_submitted' email
3237rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:27 # Default Offline Workflow Traveller Steps Completing a Changed Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And the owner should have received a 'trip_submitted' email
3238rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:35 # Default Offline Workflow Traveller Steps Viewing the status of a Pending Approval Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_approval' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'pending_approval' Approval
3239rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:41 # Default Offline Workflow Traveller Steps Viewing the status of a Request Declined Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'request_declined' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'request_declined' Approval
3240rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:47 # Default Offline Workflow Traveller Steps Viewing the status of a Request Forbidden Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'request_forbidden' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'request_forbidden' Approval
3241rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:53 # Default Offline Workflow Traveller Steps Viewing the status of a Pending Itinerary Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'pending_itinerary' Approval
3242rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:59 # Default Offline Workflow Traveller Steps Viewing the status of a Quote Issued Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'quote_issued' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'quote_issued' Approval
3243rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:65 # Default Offline Workflow Traveller Steps Viewing the status of a Pending Booking Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'pending_booking' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'pending_booking' Approval
3244rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:71 # Default Offline Workflow Traveller Steps Viewing the status of a Itinerary Declined Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'itinerary_declined' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'itinerary_declined' Approval
3245rspec ./spec/acceptance/workflows/offline/default_traveller_workflow.feature:77 # Default Offline Workflow Traveller Steps Viewing the status of a Trip Booked Approval Given there is a offline workflow with 'default_workflow' -> And there are all workflow users -> Given there is a 'trip_booked' approval -> And I am signed in as the Traveller -> When I click on the Dashboard link -> Then I should see a 'trip_booked' Approval
3246rspec ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:10 # Itinerary Review Offline Workflow TMC Steps Uploading a Itinerary Quote to a Pending Itinerary Approval Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> When I upload a itinerary for review -> Then I should see a 'itinerary_review' message for tmc -> And the owner should have received a 'itinerary_review' email
3247rspec ./spec/acceptance/workflows/offline/itinerary_review_tmc_workflow.feature:17 # Itinerary Review Offline Workflow TMC Steps Uploading a Itinerary Quote to a Itinerary Declined Approval Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is an 'itinerary_declined' approval with an itinerary quote -> And I am signed in as the TMC Consultant -> When I upload a itinerary for review -> Then I should see a 'itinerary_review' message for tmc -> And the owner should have received a 'itinerary_review' email
3248rspec ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:10 # Itinerary Review Offline Workflow Traveller Steps Preferring an Uploaded Itinerary Quote Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is an 'itinerary_review' approval with an itinerary quote -> And I am signed in as the Traveller -> When I review and prefer an itinerary quote -> Then I should see a 'quote_issued' message for traveller -> And It should create last stakeholder event with state "quote_issued" -> And the authoriser should have received a 'quote_issued' email
3249rspec ./spec/acceptance/workflows/offline/itinerary_review_traveller_workflow.feature:18 # Itinerary Review Offline Workflow Traveller Steps Decline a Uploaded Itinerary Quote Given there is a offline workflow with 'itinerary_review' -> And there are all workflow users -> Given there is an 'itinerary_review' approval with an itinerary quote -> And I am signed in as the Traveller -> When I decline all itineraries -> Then I should see a 'itinerary_declined' message for traveller -> And It should create last stakeholder event with state "itinerary_declined" -> And the owner should have received a 'itinerary_declined' email -> And the Agency Department should have received a 'itinerary_declined' email
3250rspec ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:10 # No Approval Offline Workflow TMC Steps Uploading a Itinerary Quote to a Pending Itinerary Approval Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'pending_itinerary' approval -> And I am signed in as the TMC Consultant -> And I am reviewing the current approval -> When I upload an itinerary without authorisation -> Then I should see 'Itinerary Uploaded' -> And the Agency Department should have received a 'pending_booking' email
3251rspec ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:18 # No Approval Offline Workflow TMC Steps Booking a Approved Itinerary Quote Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I book the itinerary -> Then I should see a 'trip_booked' message for tmc -> And the owner should have received a 'trip_booked' email
3252rspec ./spec/acceptance/workflows/offline/no_auth_tmc_workflow.feature:25 # No Approval Offline Workflow TMC Steps Cancelling a Approved Itinerary Quote Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'pending_booking' approval with an approved itinerary quote -> And I am signed in as the TMC Consultant -> When I cancel the trip -> Then I should see a 'trip_cancelled' message for tmc -> And the owner should have received a 'trip_cancelled' email -> And the Agency Department should have received a 'trip_cancelled' email
3253rspec ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:10 # No Approval Offline Workflow Traveller Steps Completing a Draft Approval Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And the owner should have received a 'trip_submitted' email
3254rspec ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:18 # No Approval Offline Workflow Traveller Steps Completing a Draft Approval with a Shared Trip Request Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And I should have sent all group notifications -> And the owner should have received a 'trip_submitted' email
3255rspec ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:27 # No Approval Offline Workflow Traveller Steps Completing a Draft Approval with a at risk country Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'draft_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email -> And the owner should have received a 'trip_submitted' email
3256rspec ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:35 # No Approval Offline Workflow Traveller Steps Completing a Changed Approval Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_itinerary' message for traveller -> And the Agency Department should have received a 'pending_itinerary' email -> And the owner should have received a 'trip_submitted' email
3257rspec ./spec/acceptance/workflows/offline/no_auth_traveller_workflow.feature:43 # No Approval Offline Workflow Traveller Steps Completing a Changed Approval with a at risk country Given there is a offline workflow with 'no_approval' -> And there are all workflow users -> Given there is a 'change_saved' approval with a country risk -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'risk_approval_required' message for traveller -> And the risk authoriser should have received a 'risk_approval_required' email -> And the owner should have received a 'trip_submitted' email
3258rspec ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:10 # Authorised Pre Trip Only Workflow Traveller Steps Completing a Draft Approval Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'draft_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email
3259rspec ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:17 # Authorised Pre Trip Only Workflow Traveller Steps Completing a Draft Approval with a Shared Trip Request Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'draft_saved' approval with a shared trip request -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email -> And I should have sent all group notifications
3260rspec ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:25 # Authorised Pre Trip Only Workflow Traveller Steps Completing a Changed Approval Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'change_saved' approval -> And I am signed in as the Traveller -> When I review and submit the approval -> Then I should see a 'pending_approval' message for traveller -> And the authoriser should have received a 'pending_approval' email
3261rspec ./spec/acceptance/workflows/pre_trip/default_traveller_workflow.feature:32 # Authorised Pre Trip Only Workflow Traveller Steps Inline booking for Ross' WoAG demo Given there is a pre trip workflow with authorisation -> And there are all pre-trip workflow users -> Given there is a 'pre_trip_approved' approval -> And the Traveller has CBT SSO access -> And the Systest Book Online hack is enabled -> And I am signed in as the Traveller -> When I click on the approval -> Then I should see a 'Book Online' button
3262rspec ./spec/acceptance/workflows/workflow_button.feature:4 # Workflow button feature workflows - traveller with no authorisers Given there is a Traveller -> And the Traveller is in group "All Employees" -> And there is a workflow 'Offline - Pre Trip Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip Only (Approver Group)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool '', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> When I sign in as the Traveller -> Then I should see a disabled or enabled workflow button with no authorisers
3263rspec ./spec/acceptance/workflows/workflow_button.feature:26 # Workflow button feature workflows - traveller with authorisers Given there is a Traveller -> And the Traveller is in group "All Employees" -> And the Traveller has an assigned Authoriser -> And there is a workflow 'Offline - Pre Trip Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip Only (Approver Group)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Cost Auth Only (Approver Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool '', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool '', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool '', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'Offline - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool '', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '0', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Cost Auth Only (Approver Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '0' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Approver)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Approver / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'authoriser', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Approver)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'authoriser', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> And there is a workflow 'CBT - Pre Trip + Cost Auth (Auth Group / Auth Group)' with booking_tool 'locomote_cbt', pre_auth 'group', cost_auth 'group', cost_auth? '1', pre_auth? '1' and traveller group 'All Employees' -> When I sign in as the Traveller -> Then I should see a disabled or enabled workflow button with authorisers
3264
3265Coverage report generated for RSpec to /Users/micro/Develop/LocomoteProjects/travel_management_platform/coverage. 16808 / 28199 LOC (59.6%) covered.
3266/Users/micro/.asdf/installs/ruby/2.3.1/bin/ruby -I/Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib:/Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-support-3.4.1/lib /Users/micro/.asdf/installs/ruby/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.4/exe/rspec spec/acceptance -r turnip/rspec --order default --format documentation failed
3267 ! î‚° ~/D/L/travel_management_platform î‚° î‚ master î‚° 1.79h  Tue Jul 18 01:15:24 2017