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
7ca78d6e
Commit
7ca78d6e
authored
Oct 30, 2014
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5724 from edx/zoldak/improve-rerun-test
Improve rerun test
parents
97d9d956
74b65ddb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
common/test/acceptance/pages/studio/index.py
+8
-0
common/test/acceptance/tests/studio/test_studio_rerun.py
+4
-1
No files found.
common/test/acceptance/pages/studio/index.py
View file @
7ca78d6e
...
...
@@ -17,6 +17,14 @@ class DashboardPage(PageObject):
return
self
.
q
(
css
=
'body.view-dashboard'
)
.
present
@property
def
course_runs
(
self
):
"""
The list of course run metadata for all displayed courses
Returns an empty string if there are none
"""
return
self
.
q
(
css
=
'.course-run>.value'
)
.
text
@property
def
has_processing_courses
(
self
):
return
self
.
q
(
css
=
'.courses-processing'
)
.
present
...
...
common/test/acceptance/tests/studio/test_studio_rerun.py
View file @
7ca78d6e
...
...
@@ -4,6 +4,7 @@ Acceptance tests for Studio related to course reruns.
import
random
from
bok_choy.promise
import
EmptyPromise
from
nose.tools
import
assert_in
from
...pages.studio.index
import
DashboardPage
from
...pages.studio.course_rerun
import
CourseRerunPage
...
...
@@ -50,7 +51,7 @@ class CourseRerunTest(StudioCourseTest):
def
test_course_rerun
(
self
):
"""
Scenario: Courses can be r
u
run
Scenario: Courses can be r
e
run
Given I have a course with a section, subsesction, vertical, and html component with content 'Test Content'
When I visit the course rerun page
And I type 'test_rerun' in the course run field
...
...
@@ -81,6 +82,8 @@ class CourseRerunTest(StudioCourseTest):
return
not
self
.
dashboard_page
.
has_processing_courses
EmptyPromise
(
finished_processing
,
"Rerun finished processing"
,
try_interval
=
5
,
timeout
=
60
)
.
fulfill
()
assert_in
(
course_run
,
self
.
dashboard_page
.
course_runs
)
self
.
dashboard_page
.
click_course_run
(
course_run
)
outline_page
=
CourseOutlinePage
(
self
.
browser
,
*
course_info
)
...
...
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