From 2ef1b951814aadedad4e45bfbe29b0a5b4ecd33c Mon Sep 17 00:00:00 2001 From: ThrawnCA Date: Fri, 18 Oct 2024 14:21:23 +1000 Subject: [PATCH] [QOLSVC-5478] add SSO login link to test expectations - We don't have an easy way to test the functionality, but we should test its presence. --- .docker/test-OpenData.ini | 1 + .docker/test-Publications.ini | 1 + test/features/steps/steps.py | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.docker/test-OpenData.ini b/.docker/test-OpenData.ini index be29a348..cc6d52a6 100644 --- a/.docker/test-OpenData.ini +++ b/.docker/test-OpenData.ini @@ -113,6 +113,7 @@ ckan.plugins = data_qld_test xloader datastore + oidc_pkce ## ckanext-data_qld ckanext.data_qld.resource_formats = CSV HTML JSON RDF TXT XLS diff --git a/.docker/test-Publications.ini b/.docker/test-Publications.ini index c6bbdd50..e3e1be44 100644 --- a/.docker/test-Publications.ini +++ b/.docker/test-Publications.ini @@ -99,6 +99,7 @@ ckan.plugins = resource_type_validation qgovext csrf_filter + oidc_pkce # Define which views should be created by default # (plugins must be loaded in ckan.plugins) diff --git a/test/features/steps/steps.py b/test/features/steps/steps.py index 1aa0f108..dfe4f05d 100644 --- a/test/features/steps/steps.py +++ b/test/features/steps/steps.py @@ -76,7 +76,8 @@ def log_in(context): When I go to homepage And I expand the browser height And I press "Log in" - And I log in directly + Then I should see an element with xpath "//a[@href='/user/login/oidc-pkce']" + When I log in directly """)