@@ -274,97 +274,6 @@ def teardown
274
274
end
275
275
end
276
276
277
- context "Annual leave descrption placement A/B testing" do
278
- context "pages in test" do
279
- setup do
280
- @controller . stubs ( :is_holiday_entitlement_tested_path? ) . returns ( true )
281
-
282
- content_item = {
283
- "base_path" => '/bridge-of-death'
284
- }
285
-
286
- Services . content_store . stubs ( :content_item )
287
- . with ( "/bridge-of-death" )
288
- . returns ( content_item )
289
- end
290
-
291
- context "landing page" do
292
- should "show the original text for the 'A' version" do
293
- with_variant BenchmarkALDescription1 : "A" do
294
- get :show , params : { id : 'bridge-of-death' }
295
-
296
- assert_match ( /He who would cross the Bridge of Death/ , response . body )
297
- assert_no_match ( /Tim/ , response . body )
298
- end
299
- end
300
-
301
- should "show the alternate text for the 'B' version" do
302
- with_variant BenchmarkALDescription1 : "B" do
303
- get :show , params : { id : 'bridge-of-death' }
304
-
305
- assert_match ( /There are some who call me Tim!/ , response . body )
306
- assert_no_match ( /these questions threee/ , response . body )
307
- end
308
- end
309
- end
310
-
311
- context "question page" do
312
- should "show the original text for the 'A' version" do
313
- with_variant BenchmarkALDescription1 : "A" do
314
- get :show , params : { id : 'bridge-of-death' , started : 'y' , responses : [ 'what-is-your-quest' ] }
315
-
316
- assert_match ( /To seek the Holy Grail/ , response . body )
317
- assert_no_match ( /The leave year will/ , response . body )
318
- end
319
- end
320
-
321
- should "show the additional text for the 'B' version" do
322
- with_variant BenchmarkALDescription1 : "B" do
323
- get :show , params : { id : 'bridge-of-death' , started : 'y' , responses : [ 'what-is-your-quest' ] }
324
-
325
- assert_match ( /The leave year will/ , response . body )
326
- assert_match ( /To seek the Holy Grail/ , response . body )
327
- end
328
- end
329
- end
330
- end
331
-
332
- context "pages not in test" do
333
- setup do
334
- @controller . stubs ( :is_holiday_entitlement_tested_path? ) . returns ( false )
335
-
336
- content_item = {
337
- "base_path" => '/bridge-of-death'
338
- }
339
-
340
- Services . content_store . stubs ( :content_item )
341
- . with ( "/bridge-of-death" )
342
- . returns ( content_item )
343
- end
344
-
345
- context "landing page" do
346
- should "show the original text" do
347
- setup_ab_variant "BenchmarkCmButton1" , "B"
348
-
349
- get :show , params : { id : 'bridge-of-death' }
350
- assert_match ( /He who would cross the Bridge of Death/ , response . body )
351
- assert_no_match ( /Tim/ , response . body )
352
- end
353
- end
354
-
355
- context "question page" do
356
- should "show the original text" do
357
- setup_ab_variant "BenchmarkCmButton1" , "B"
358
-
359
- get :show , params : { id : 'bridge-of-death' , started : 'y' , responses : [ 'what-is-your-quest' ] }
360
-
361
- assert_match ( /To seek the Holy Grail/ , response . body )
362
- assert_no_match ( /The leave year will/ , response . body )
363
- end
364
- end
365
- end
366
- end
367
-
368
277
context "GET /<slug>/visualise" do
369
278
should "display the visualisation" do
370
279
stub_smart_answer_in_content_store ( "smart-answers-controller-sample" )
0 commit comments