@@ -14,13 +14,11 @@ class CheckUkVisaFlowTest < ActiveSupport::TestCase
1414 @british_overseas_territory_country = "anguilla"
1515 @non_visa_national_country = "pitcairn-island"
1616 @eea_country = "austria"
17- @eta_rollout_group_1_rest_of_the_world_country = "taiwan"
1817 @travel_document_country = "hong-kong"
1918 @b1_b2_country = "syria"
2019 @youth_mobility_scheme_country = "canada"
2120
2221 @non_visa_national_eta_text = "You currently do not need an electronic travel authorisation (ETA)"
23- @eta_rollout_group_1_rest_of_the_world_text = "If you’re travelling on or after 8 January 2025, you’ll need to apply for an electronic travel authorisation (ETA)."
2422 @eea_eta_text = "You currently do not need an electronic travel authorisation (ETA)"
2523
2624 # stub only the countries used in this test for less of a performance impact
@@ -45,8 +43,7 @@ class CheckUkVisaFlowTest < ActiveSupport::TestCase
4543 @eea_country ,
4644 @travel_document_country ,
4745 @b1_b2_country ,
48- @youth_mobility_scheme_country ,
49- @eta_rollout_group_1_rest_of_the_world_country ] . uniq )
46+ @youth_mobility_scheme_country ] . uniq )
5047 end
5148
5249 should "render a start page" do
@@ -410,9 +407,9 @@ class CheckUkVisaFlowTest < ActiveSupport::TestCase
410407 assert_next_node :outcome_study_electronic_travel_authorisation , for_response : "six_months_or_less"
411408 end
412409
413- should "have a next node of outcome_study_waiver_taiwan for a study visit with a Taiwan passport" do
410+ should "have a next node of outcome_study_electronic_travel_authorisation for a study visit with a Taiwan passport" do
414411 add_responses what_passport_do_you_have? : "taiwan" , purpose_of_visit? : "study"
415- assert_next_node :outcome_study_waiver_taiwan , for_response : "six_months_or_less"
412+ assert_next_node :outcome_study_electronic_travel_authorisation , for_response : "six_months_or_less"
416413 end
417414
418415 should "have a next node of outcome_study_m for a study visit with a direct airside transit visa" do
@@ -440,7 +437,7 @@ class CheckUkVisaFlowTest < ActiveSupport::TestCase
440437 assert_next_node :outcome_study_no_visa_needed , for_response : "six_months_or_less"
441438 end
442439
443- should "have a next node of outcome_study_no_visa_needed for a study visit with an EEA passport" do
440+ should "have a next node of outcome_study_electronic_travel_authorisation for a study visit with an EEA passport" do
444441 add_responses what_passport_do_you_have? : @eea_country ,
445442 purpose_of_visit? : "study"
446443 assert_next_node :outcome_study_electronic_travel_authorisation , for_response : "six_months_or_less"
@@ -458,9 +455,9 @@ class CheckUkVisaFlowTest < ActiveSupport::TestCase
458455 assert_next_node :outcome_work_n , for_response : "six_months_or_less"
459456 end
460457
461- should "have a next node of outcome_work_n for a work visit with a Taiwan passport" do
458+ should "have a next node of outcome_work_electronic_travel_authorisation for a work visit with a Taiwan passport" do
462459 add_responses what_passport_do_you_have? : "taiwan" , purpose_of_visit? : "work"
463- assert_next_node :outcome_work_n , for_response : "six_months_or_less"
460+ assert_next_node :outcome_work_electronic_travel_authorisation , for_response : "six_months_or_less"
464461 end
465462
466463 should "have a next node of outcome_work_n for a work visit with a non-visa national passport" do
@@ -469,7 +466,7 @@ class CheckUkVisaFlowTest < ActiveSupport::TestCase
469466 assert_next_node :outcome_work_n , for_response : "six_months_or_less"
470467 end
471468
472- should "have a next node of outcome_work_n for a work visit with an EEA passport" do
469+ should "have a next node of outcome_work_electronic_travel_authorisation for a work visit with an EEA passport" do
473470 add_responses what_passport_do_you_have? : @eea_country ,
474471 purpose_of_visit? : "work"
475472 assert_next_node :outcome_work_electronic_travel_authorisation , for_response : "six_months_or_less"
@@ -660,6 +657,74 @@ class CheckUkVisaFlowTest < ActiveSupport::TestCase
660657 travelling_to_cta? : "republic_of_ireland"
661658 assert_rendered_outcome text : "You may want to apply for a transit visa"
662659 end
660+
661+ should "render specific guidance for a Taiwan passport" do
662+ add_responses what_passport_do_you_have? : "taiwan" ,
663+ travelling_to_cta? : "republic_of_ireland"
664+ assert_rendered_outcome text : "personal ID number on the bio data page"
665+ end
666+ end
667+
668+ context "medical ETA for Taiwan" do
669+ setup do
670+ testing_node :outcome_medical_electronic_travel_authorisation
671+ add_responses what_passport_do_you_have? : "taiwan" ,
672+ purpose_of_visit? : "medical"
673+ end
674+
675+ should "render specific guidance for a Taiwan passport" do
676+ assert_rendered_outcome text : "personal ID number on the bio data page"
677+ end
678+ end
679+
680+ context "tourism ETA for Taiwan" do
681+ setup do
682+ testing_node :outcome_tourism_electronic_travel_authorisation
683+ add_responses what_passport_do_you_have? : "taiwan" ,
684+ purpose_of_visit? : "tourism"
685+ end
686+
687+ should "render specific guidance for a Taiwan passport" do
688+ assert_rendered_outcome text : "personal ID number on the bio data page"
689+ end
690+ end
691+
692+ context "work ETA for Taiwan" do
693+ setup do
694+ testing_node :outcome_work_electronic_travel_authorisation
695+ add_responses what_passport_do_you_have? : "taiwan" ,
696+ purpose_of_visit? : "work" ,
697+ staying_for_how_long? : "six_months_or_less"
698+ end
699+
700+ should "render specific guidance for a Taiwan passport" do
701+ assert_rendered_outcome text : "personal ID number on the bio data page"
702+ end
703+ end
704+
705+ context "school ETA for Taiwan" do
706+ setup do
707+ testing_node :outcome_school_electronic_travel_authorisation
708+ add_responses what_passport_do_you_have? : "taiwan" ,
709+ purpose_of_visit? : "school"
710+ end
711+
712+ should "render specific guidance for a Taiwan passport" do
713+ assert_rendered_outcome text : "personal ID number on the bio data page"
714+ end
715+ end
716+
717+ context "study ETA for Taiwan" do
718+ setup do
719+ testing_node :outcome_study_electronic_travel_authorisation
720+ add_responses what_passport_do_you_have? : "taiwan" ,
721+ purpose_of_visit? : "study" ,
722+ staying_for_how_long? : "six_months_or_less"
723+ end
724+
725+ should "render specific guidance for a Taiwan passport" do
726+ assert_rendered_outcome text : "personal ID number on the bio data page"
727+ end
663728 end
664729
665730 context "outcome: outcome_school_y" do
@@ -719,11 +784,6 @@ class CheckUkVisaFlowTest < ActiveSupport::TestCase
719784 travelling_to_cta? : "republic_of_ireland"
720785 end
721786
722- should "render specific guidance for a Taiwan passport" do
723- add_responses what_passport_do_you_have? : "taiwan"
724- assert_rendered_outcome text : "You will not need a visa if your passport has a personal ID number on the bio data page."
725- end
726-
727787 should "render different guidance for passports from outher countries" do
728788 add_responses what_passport_do_you_have? : @visa_national_country
729789 assert_rendered_outcome text : "You’ll need a visa to pass through the UK (unless you’re exempt)"
@@ -968,11 +1028,6 @@ class CheckUkVisaFlowTest < ActiveSupport::TestCase
9681028 assert_no_rendered_outcome text : @non_visa_national_eta_text
9691029 assert_no_rendered_outcome text : @eea_eta_text
9701030 end
971-
972- should "render callout box for eta_rollout_group_1_rest_of_the_world_country passport holders" do
973- add_responses what_passport_do_you_have? : @eta_rollout_group_1_rest_of_the_world_country
974- assert_rendered_outcome text : @eta_rollout_group_1_rest_of_the_world_text
975- end
9761031 end
9771032
9781033 context "outcome: outcome_study_no_visa_needed" do
0 commit comments