From dea5c7d3dbcc5363c80bbe66c64f04c81075a2ea Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 23 Jul 2014 10:58:27 -0400 Subject: [PATCH] Add a test of login with params on the next URL --- lms/djangoapps/courseware/features/login.feature | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lms/djangoapps/courseware/features/login.feature b/lms/djangoapps/courseware/features/login.feature index 7af151ed26..3c4d006fb9 100644 --- a/lms/djangoapps/courseware/features/login.feature +++ b/lms/djangoapps/courseware/features/login.feature @@ -46,3 +46,13 @@ Feature: LMS.Login in as a registered user And I visit the url "/login?next=http://www.google.com/" When I submit my credentials on the login form Then I should be on the dashboard page + + Scenario: Login with a redirect with parameters + Given I am an edX user + And I am not logged in + And I visit the url "/debug/show_parameters?foo=hello&bar=world" + And I should see that the path is "/accounts/login?next=/debug/show_parameters%3Ffoo%3Dhello%26bar%3Dworld" + When I submit my credentials on the login form + And I wait for "2" seconds + Then I should see "foo: u'hello'" somewhere on the page + And I should see "bar: u'world'" somewhere on the page