Skip to content

Commit baa08ed

Browse files
committed
Disable test if cross_service_tests are turned off
1 parent 44e5cf9 commit baa08ed

File tree

6 files changed

+14
-1
lines changed

6 files changed

+14
-1
lines changed

.github/actions/run-end-to-end-tests/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ inputs:
1212
default: 'false'
1313
imms_api_tests:
1414
default: 'false'
15+
pds_api_tests:
16+
default: 'false'
1517
device:
1618
required: true
1719
base_url:
@@ -71,6 +73,13 @@ runs:
7173
exclude="not imms_api"
7274
fi
7375
fi
76+
if [ "${{ inputs.pds_api_tests }}" = "false" ]; then
77+
if [ -n "$exclude" ]; then
78+
exclude="$exclude and not pds_api"
79+
else
80+
exclude="not pds_api"
81+
fi
82+
fi
7483
if [ -z "$exclude" ]; then
7584
exclude="True"
7685
fi

.github/workflows/end-to-end-tests-all-devices.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
device: ${{ matrix.device }}
4747
base_url: ${{ vars.BASE_URL }}
4848
imms_api_tests: 'true'
49+
pds_api_tests: 'true'
4950
reporting_tests: 'true'
5051
playwright_cache_hit: ${{ steps.playwright-cache.outputs.cache-hit }}
5152
screenshot_all_steps: 'false'

.github/workflows/end-to-end-tests-release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ jobs:
257257
with:
258258
tests: ${{ steps.set-variables.outputs.tests }}
259259
imms_api_tests: ${{ steps.set-variables.outputs.cross_service_tests }}
260+
pds_api_tests: ${{ steps.set-variables.outputs.cross_service_tests }}
260261
reporting_tests: ${{ steps.set-variables.outputs.cross_service_tests }}
261262
github_ref: ${{ inputs.github_ref || github.head_ref }}
262263
device: ${{ steps.set-variables.outputs.device }}

.github/workflows/end-to-end-tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ jobs:
241241
with:
242242
tests: ${{ steps.set-variables.outputs.tests }}
243243
imms_api_tests: ${{ steps.set-variables.outputs.cross_service_tests }}
244+
pds_api_tests: ${{ steps.set-variables.outputs.cross_service_tests }}
244245
reporting_tests: ${{ steps.set-variables.outputs.cross_service_tests }}
245246
github_ref: ${{ inputs.github_ref || github.head_ref }}
246247
device: ${{ steps.set-variables.outputs.device }}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ markers = [
5252
"imms_api",
5353
"log_in",
5454
"national_reporting",
55+
"pds_api",
5556
"rav",
5657
"reporting",
5758
"school_moves",

tests/test_consent_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_match_unmatched_consent_response_and_verify_activity_log(
162162
ChildRecordPage(page).tabs.click_activity_log()
163163
ChildActivityLogPage(page).verify_activity_log_for_created_or_matched_child()
164164

165-
165+
@pytest.mark.pds_api
166166
def test_create_child_record_from_consent_with_nhs_number(
167167
give_online_consent_pds_child,
168168
pds_child,

0 commit comments

Comments
 (0)