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
6708ed8f
Commit
6708ed8f
authored
Feb 02, 2015
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This test no longer follows modern workflows. Disabling. TE-736.
Also cleaning up some lint.
parent
c83ea18d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
lms/djangoapps/courseware/features/change_enrollment.feature
+11
-10
lms/djangoapps/courseware/features/lti.py
+5
-2
No files found.
lms/djangoapps/courseware/features/change_enrollment.feature
View file @
6708ed8f
...
@@ -10,14 +10,15 @@ And I am logged in
...
@@ -10,14 +10,15 @@ And I am logged in
And
I visit the courses page
And
I visit the courses page
When
I register to audit the course
When
I register to audit the course
And
a
"edx.course.enrollment.activated"
server event is emitted
And
a
"edx.course.enrollment.activated"
server event is emitted
# Skipping the rest in master. The testcase has not been run and no longer works.
#And a "edx.course.enrollment.mode_changed" server events is emitted
#And a "edx.course.enrollment.mode_changed" server events is emitted
#
And
I visit the dashboard
#
And I visit the dashboard
And
I click on Challenge Yourself
#
And I click on Challenge Yourself
And
I choose an honor code upgrade
#
And I choose an honor code upgrade
Then
I should be on the dashboard page
#
Then I should be on the dashboard page
Then
2
"edx.course.enrollment.mode_changed"
server event is emitted
#
Then 2 "edx.course.enrollment.mode_changed" server event is emitted
#
# don't emit another mode_changed event upon unenrollment
#
#
don't emit another mode_changed event upon unenrollment
When
I unenroll from the course numbered
"6.002x"
#
When I unenroll from the course numbered "6.002x"
Then
2
"edx.course.enrollment.mode_changed"
server events is emitted
#
Then 2 "edx.course.enrollment.mode_changed" server events is emitted
lms/djangoapps/courseware/features/lti.py
View file @
6708ed8f
...
@@ -16,7 +16,8 @@ from student.tests.factories import UserFactory
...
@@ -16,7 +16,8 @@ from student.tests.factories import UserFactory
from
common
import
visit_scenario_item
from
common
import
visit_scenario_item
TEST_COURSE_NAME
=
"test_course_a"
TEST_COURSE_NAME
=
"test_course_a"
@step
(
'I view the LTI and error is shown$'
)
@step
(
'I view the LTI and error is shown$'
)
def
lti_is_not_rendered
(
_step
):
def
lti_is_not_rendered
(
_step
):
...
@@ -271,10 +272,12 @@ def check_lti_popup(parent_window):
...
@@ -271,10 +272,12 @@ def check_lti_popup(parent_window):
# For verification, iterate through the window titles and make sure that
# For verification, iterate through the window titles and make sure that
# both are there.
# both are there.
tabs
=
[]
tabs
=
[]
expected_tabs
=
[
u'LTI | Test Section | {0} Courseware | edX'
.
format
(
TEST_COURSE_NAME
),
u'TEST TITLE'
]
for
window
in
windows
:
for
window
in
windows
:
world
.
browser
.
switch_to_window
(
window
)
world
.
browser
.
switch_to_window
(
window
)
tabs
.
append
(
world
.
browser
.
title
)
tabs
.
append
(
world
.
browser
.
title
)
assert_equal
(
tabs
,
[
u'LTI | Test Section | test_course_a Courseware | edX'
,
u'TEST TITLE'
])
assert_equal
(
tabs
,
expected_tabs
)
# pylint: disable=no-value-for-parameter
# Now verify the contents of the LTI window (which is the 2nd window/tab)
# Now verify the contents of the LTI window (which is the 2nd window/tab)
# Note: The LTI opens in a new browser window, but Selenium sticks with the
# Note: The LTI opens in a new browser window, but Selenium sticks with the
...
...
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