Subscription toasts

Subscribed param: Toast appears and param is removed

  • Description: Verify that opening the landing page with "subscribed=true" shows a success toast and removes the param from the URL.
  • Given I am not logged in
  • When I open the landing page with the URL "http://www.staging.permaplant.net/?subscribed=true"
  • Then I see a success toast for the subscription action
  • And the URL no longer contains "subscribed=true"
  • Actual Result:
  • Test Result:
  • Notes:

Confirmed param: Toast appears and param is removed

  • Description: Verify that opening the landing page with "confirmed=true" shows a confirmation toast and removes the param from the URL.
  • Given I am not logged in
  • When I open the landing page with the URL "http://www.staging.permaplant.net/?confirmed=true"
  • Then I see a confirmation toast
  • And the URL no longer contains "confirmed=true"
  • Actual Result:
  • Test Result:
  • Notes:

Both params: Both toasts appear and both params are removed

  • Description: Verify that opening the landing page with both params shows both toasts and removes both params from the URL.
  • Given I am not logged in
  • When I open the landing page with the URL "http://www.staging.permaplant.net/?subscribed=true&confirmed=true"
  • Then I see a success toast for the subscription action
  • And I see a confirmation toast
  • And the URL no longer contains "subscribed=true"
  • And the URL no longer contains "confirmed=true"
  • Actual Result:
  • Test Result:
  • Notes:

Subscribed plus other param: Keep unrelated params

  • Description: Verify that only "subscribed=true" is removed from the URL while unrelated params remain.
  • Given I am not logged in
  • When I open the landing page with the URL "http://www.staging.permaplant.net/?subscribed=true&other=param"
  • Then I see a success toast for the subscription action
  • And the URL no longer contains "subscribed=true"
  • And the URL still contains "other=param"
  • Actual Result:
  • Test Result:
  • Notes:

No subscription params: No toast and URL unchanged

  • Description: Verify that no subscription-related toast appears when no subscription params are present and the URL stays unchanged.
  • Given I am not logged in
  • When I open the landing page with the URL "http://www.staging.permaplant.net/?other=param"
  • Then I do not see a subscription-related success or confirmation toast
  • And the URL remains "http://www.staging.permaplant.net/?other=param"
  • Actual Result:
  • Test Result:
  • Notes: