Skip to content

Commit bc87da1

Browse files
committed
Clarify how RememberWayfChoice.feature differs from session-based remembering
# If applied, this commit will... Add a comment to RememberWayfChoice.feature explaining that it covers the per-SP, cookie-based remember-choice feature, and why "I start a new browser session" is the step that proves it. # Why is this change needed? Prior to this change, a reader of the scenarios had no indication that "I start a new browser session" was deliberately chosen over a step that wipes every cookie. Without that context, the scenarios could be mistaken for testing the older, session-based wayf.remember_choice feature, and a future change that broke cookie persistence across sessions could still pass if the test accidentally relied on leftover session state instead. # How does it address the issue? This change adds a short comment after the feature description stating that the per-SP feature is mutually exclusive with wayf.remember_choice, and that "I start a new browser session" clears only the PHP session cookie while keeping "rememberedidps", which is exactly what distinguishes a cookie-based choice from a session-based one. # Provide links to any relevant tickets, articles or other resources Addresses review comment on PR #2112.
1 parent 0b0dfd5 commit bc87da1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/OpenConext/EngineBlockFunctionalTestingBundle/Features/RememberWayfChoice.feature‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ Feature:
33
As a user
44
I want EngineBlock to remember my previous IdP choice for that SP
55

6+
# This is the per-SP remember-choice feature (feature_enable_wayf_remember_choice_per_idp),
7+
# not the older, session-based "wayf.remember_choice" feature: the two are mutually
8+
# exclusive and cannot both be enabled. The "rememberedidps" cookie is what makes the
9+
# choice survive a new PHP session, so "I start a new browser session" below clears only
10+
# the PHP session cookie (not "rememberedidps"), to prove the choice is remembered across
11+
# sessions rather than merely for the lifetime of the current one.
12+
613
Background:
714
Given an EngineBlock instance on "dev.openconext.local"
815
And no registered SPs

0 commit comments

Comments
 (0)