Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
401659a5
Commit
401659a5
authored
5 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Remove a bok-choy test that shouldn't have been a bok-choy test
parent
645c70a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/test/acceptance/tests/lms/test_lms_course_home.py
+0
-70
0 additions, 70 deletions
common/test/acceptance/tests/lms/test_lms_course_home.py
with
0 additions
and
70 deletions
common/test/acceptance/tests/lms/test_lms_course_home.py
+
0
−
70
View file @
401659a5
...
...
@@ -167,73 +167,3 @@ class CourseHomeA11yTest(CourseHomeBaseTest):
]
})
course_search_results_page
.
a11y_audit
.
check_for_accessibility_errors
()
class
CourseOutlineTest
(
UniqueCourseTest
):
"""
Test Suite to verify the course outline page on the LMS.
"""
USERNAME
=
"
STUDENT_TESTER
"
EMAIL
=
"
student101@example.com
"
def
setUp
(
self
):
"""
Initialize pages and install a course fixture.
"""
super
(
CourseOutlineTest
,
self
).
setUp
()
self
.
course_home_page
=
CourseHomePage
(
self
.
browser
,
self
.
course_id
)
# Install a course with sections and problems
self
.
course_fix
=
CourseFixture
(
self
.
course_info
[
'
org
'
],
self
.
course_info
[
'
number
'
],
self
.
course_info
[
'
run
'
],
self
.
course_info
[
'
display_name
'
],
start_date
=
datetime
.
now
()
+
timedelta
(
days
=-
10
),
end_date
=
datetime
.
now
()
+
timedelta
(
days
=
10
)
)
self
.
course_fix
.
add_children
(
XBlockFixtureDesc
(
'
chapter
'
,
'
Test Section
'
).
add_children
(
XBlockFixtureDesc
(
'
sequential
'
,
'
Test Subsection
'
,
metadata
=
{
'
due
'
:
(
datetime
.
now
()).
isoformat
(),
'
format
'
:
'
Homework
'
}).
add_children
(
XBlockFixtureDesc
(
'
problem
'
,
'
Test Problem
'
,
data
=
load_data_str
(
'
multiple_choice.xml
'
)),
)
),
).
install
()
# Auto-auth register for the course.
auto_auth
(
self
.
browser
,
self
.
USERNAME
,
self
.
EMAIL
,
False
,
self
.
course_id
)
def
change_course_pacing_to_self_paced
(
self
):
"""
Change the course pacing from Instructor Paced to Self-paced course
for a live course.
"""
self
.
course_fix
.
add_course_details
({
'
start_date
'
:
(
datetime
.
now
()
+
timedelta
(
days
=
5
))})
self
.
course_fix
.
configure_course
()
self
.
course_fix
.
add_course_details
({
'
self_paced
'
:
True
})
self
.
course_fix
.
configure_course
()
self
.
course_fix
.
add_course_details
({
'
start_date
'
:
(
datetime
.
now
()
+
timedelta
(
days
=-
10
))})
self
.
course_fix
.
configure_course
()
def
test_outline_when_pacing_changed_to_self_paced
(
self
):
"""
Scenario: Ensure that due dates are not displayed on the course outline page
when switched to self-paced mode from instructor-paced.
Given an instructor paced course with a due graded content
Visit the course outline page
Verify the due date visibility
Change the course pacing to self-paced
Visit the course outline page again
Verify that due date is not visible
"""
self
.
course_home_page
.
visit
()
due_date
=
self
.
course_home_page
.
outline
.
get_subsection_due_date
()
self
.
assertIn
(
str
(
datetime
.
now
().
year
),
due_date
)
self
.
change_course_pacing_to_self_paced
()
self
.
course_home_page
.
visit
()
due_date
=
self
.
course_home_page
.
outline
.
get_subsection_due_date
()
self
.
assertNotIn
(
str
(
datetime
.
now
().
year
),
due_date
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment