Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c3c4a0e9
Commit
c3c4a0e9
authored
May 28, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hopefully fixed registration flakey test
parent
0e4c0811
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
lms/djangoapps/courseware/features/registration.feature
+4
-4
lms/djangoapps/courseware/features/registration.py
+11
-4
No files found.
lms/djangoapps/courseware/features/registration.feature
View file @
c3c4a0e9
...
...
@@ -13,8 +13,8 @@ Feature: Register for a course
Scenario
:
I
can unregister for a course
Given
I am registered for the course
"6.002x"
And
I visit the dashboard
When
I click the link with the text
"Unregister"
And
I press the
"Unregister"
button in the Unenroll dialog
Then
All dialogs should be closed
And
I should be on the dashboard page
Then
I should see the course numbered
"6.002x"
in my dashboard
When
I unregister for the course numbered
"6.002x"
Then
I should be on the dashboard page
And
I should see
"Looks like you haven't registered for any courses yet."
somewhere in the page
And
I should NOT see the course numbered
"6.002x"
in my dashboard
lms/djangoapps/courseware/features/registration.py
View file @
c3c4a0e9
...
...
@@ -25,8 +25,15 @@ def i_should_see_that_course_in_my_dashboard(step, course):
assert
world
.
is_css_present
(
course_link_css
)
@step
(
u'I press the "([^"]*)" button in the Unenroll dialog'
)
def
i_press_the_button_in_the_unenroll_dialog
(
step
,
value
):
button_css
=
'section#unenroll-modal input[value="
%
s"]'
%
value
@step
(
u'I should NOT see the course numbered "([^"]*)" in my dashboard$'
)
def
i_should_not_see_that_course_in_my_dashboard
(
step
,
course
):
course_link_css
=
'section.my-courses a[href*="
%
s"]'
%
course
assert
not
world
.
is_css_present
(
course_link_css
)
@step
(
u'I unregister for the course numbered "([^"]*)"'
)
def
i_unregister_for_that_course
(
step
,
course
):
unregister_css
=
'section.info a[href*="#unenroll-modal"][data-course-number*="
%
s"]'
%
course
world
.
css_click
(
unregister_css
)
button_css
=
'section#unenroll-modal input[value="Unregister"]'
world
.
css_click
(
button_css
)
assert
world
.
is_css_present
(
'section.container.dashboard'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment