diff --git a/test_definitions/project_attributes/21_sub-national_location.feature b/test_definitions/project_attributes/21_sub-national_location.feature index 48f6b66..f58cd3d 100644 --- a/test_definitions/project_attributes/21_sub-national_location.feature +++ b/test_definitions/project_attributes/21_sub-national_location.feature @@ -4,8 +4,6 @@ Feature: Sub-national location Scenario Outline: Location (sub-national) Given an IATI activity And the activity is current - # The exclusion on the next line will only apply for some organisations - And `activity-scope/@code` is not any of 1, 2, 3 or 4 And `activity-status/@code` is one of 2, 3 or 4 And `recipient-region/@code` is not 998 And `default-aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 @@ -15,8 +13,6 @@ Feature: Sub-national location Scenario Outline: Location (sub-national) point or administrative or location-id Given an IATI activity And the activity is current - # The exclusion on the next line will only apply for some organisations - And `activity-scope/@code` is not any of 1, 2, 3 or 4 And `activity-status/@code` is one of 2, 3 or 4 And `recipient-region/@code` is not 998 And `default-aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 diff --git a/test_definitions/project_attributes/21_sub-national_location_activity_scope_exclusion.feature b/test_definitions/project_attributes/21_sub-national_location_activity_scope_exclusion.feature new file mode 100644 index 0000000..b7ff1d1 --- /dev/null +++ b/test_definitions/project_attributes/21_sub-national_location_activity_scope_exclusion.feature @@ -0,0 +1,24 @@ +@iati-activity +Feature: Sub-national location (with activity-scope exclusion) + + Scenario Outline: Location (sub-national) (with activity-scope exclusion) + Given an IATI activity + And the activity is current + # The exclusion on the next line will only apply for some organisations + And `activity-scope/@code` is not any of 1, 2, 3 or 4 + And `activity-status/@code` is one of 2, 3 or 4 + And `recipient-region/@code` is not 998 + And `default-aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 + And `transaction/aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 + Then `location` should be present + + Scenario Outline: Location (sub-national) point or administrative or location-id (with activity-scope exclusion) + Given an IATI activity + And the activity is current + # The exclusion on the next line will only apply for some organisations + And `activity-scope/@code` is not any of 1, 2, 3 or 4 + And `activity-status/@code` is one of 2, 3 or 4 + And `recipient-region/@code` is not 998 + And `default-aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 + And `transaction/aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 + Then `location/point` should be present, or at least one `location/administrative/@vocabulary | location/location-id/@vocabulary` should be on the GeographicVocabulary codelist