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
e05f7770
Commit
e05f7770
authored
Sep 10, 2014
by
Ben Patterson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5161 from edx/benp/solano2-lms-failures
Acceptance tests (lettuce): hardcode sleeps to fix flakiness
parents
9f8e2cf5
dc75f687
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
lms/djangoapps/courseware/features/change_enrollment.py
+3
-0
lms/djangoapps/courseware/features/registration.py
+6
-0
No files found.
lms/djangoapps/courseware/features/change_enrollment.py
View file @
e05f7770
...
...
@@ -6,6 +6,8 @@ from opaque_keys.edx.locations import SlashSeparatedCourseKey
from
logging
import
getLogger
logger
=
getLogger
(
__name__
)
import
time
@step
(
u'the course "([^"]*)" has all enrollment modes$'
)
def
add_enrollment_modes_to_course
(
_step
,
course
):
...
...
@@ -43,6 +45,7 @@ def honor_code_upgrade(_step):
""" Simulates choosing the honor code mode on the upgrade page """
honor_code_link
=
world
.
browser
.
find_by_css
(
'.title-expand'
)
honor_code_link
.
click
()
time
.
sleep
(
1
)
honor_code_checkbox
=
world
.
browser
.
find_by_css
(
'#honor-code'
)
honor_code_checkbox
.
click
()
upgrade_button
=
world
.
browser
.
find_by_name
(
"certificate_mode"
)
...
...
lms/djangoapps/courseware/features/registration.py
View file @
e05f7770
...
...
@@ -3,6 +3,7 @@
from
lettuce
import
world
,
step
from
lettuce.django
import
django_url
import
time
@step
(
'I register for the course "([^"]*)"$'
)
...
...
@@ -18,8 +19,13 @@ def i_register_to_audit_the_course(_step):
url
=
django_url
(
'courses/
%
s/about'
%
world
.
scenario_dict
[
'COURSE'
]
.
id
.
to_deprecated_string
())
world
.
browser
.
visit
(
url
)
world
.
css_click
(
'section.intro a.register'
)
# the below button has a race condition. When the page first loads
# some animation needs to complete before this button is in a stable
# position. TODO: implement this without a sleep.
time
.
sleep
(
2
)
audit_button
=
world
.
browser
.
find_by_name
(
"audit_mode"
)
audit_button
.
click
()
time
.
sleep
(
1
)
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