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
cf1e906c
Commit
cf1e906c
authored
May 23, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lettuce tests
parent
082e24c6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
11 deletions
+19
-11
cms/djangoapps/contentstore/features/advanced-settings.py
+1
-3
cms/djangoapps/contentstore/features/checklists.py
+1
-3
cms/djangoapps/contentstore/features/course-settings.py
+1
-3
cms/djangoapps/contentstore/features/courses.py
+1
-1
cms/djangoapps/contentstore/features/section.py
+1
-1
common/djangoapps/terrain/ui_helpers.py
+14
-0
No files found.
cms/djangoapps/contentstore/features/advanced-settings.py
View file @
cf1e906c
...
@@ -19,9 +19,7 @@ DISPLAY_NAME_VALUE = '"Robot Super Course"'
...
@@ -19,9 +19,7 @@ DISPLAY_NAME_VALUE = '"Robot Super Course"'
############### ACTIONS ####################
############### ACTIONS ####################
@step
(
'I select the Advanced Settings$'
)
@step
(
'I select the Advanced Settings$'
)
def
i_select_advanced_settings
(
step
):
def
i_select_advanced_settings
(
step
):
expand_icon_css
=
'li.nav-course-settings i.icon-expand'
world
.
click_course_settings
()
if
world
.
browser
.
is_element_present_by_css
(
expand_icon_css
):
world
.
css_click
(
expand_icon_css
)
link_css
=
'li.nav-course-settings-advanced a'
link_css
=
'li.nav-course-settings-advanced a'
world
.
css_click
(
link_css
)
world
.
css_click
(
link_css
)
...
...
cms/djangoapps/contentstore/features/checklists.py
View file @
cf1e906c
...
@@ -10,9 +10,7 @@ from selenium.common.exceptions import StaleElementReferenceException
...
@@ -10,9 +10,7 @@ from selenium.common.exceptions import StaleElementReferenceException
############### ACTIONS ####################
############### ACTIONS ####################
@step
(
'I select Checklists from the Tools menu$'
)
@step
(
'I select Checklists from the Tools menu$'
)
def
i_select_checklists
(
step
):
def
i_select_checklists
(
step
):
expand_icon_css
=
'li.nav-course-tools i.icon-expand'
world
.
click_tools
()
if
world
.
browser
.
is_element_present_by_css
(
expand_icon_css
):
world
.
css_click
(
expand_icon_css
)
link_css
=
'li.nav-course-tools-checklists a'
link_css
=
'li.nav-course-tools-checklists a'
world
.
css_click
(
link_css
)
world
.
css_click
(
link_css
)
...
...
cms/djangoapps/contentstore/features/course-settings.py
View file @
cf1e906c
...
@@ -25,9 +25,7 @@ DEFAULT_TIME = "00:00"
...
@@ -25,9 +25,7 @@ DEFAULT_TIME = "00:00"
############### ACTIONS ####################
############### ACTIONS ####################
@step
(
'I select Schedule and Details$'
)
@step
(
'I select Schedule and Details$'
)
def
test_i_select_schedule_and_details
(
step
):
def
test_i_select_schedule_and_details
(
step
):
expand_icon_css
=
'li.nav-course-settings i.icon-expand'
world
.
click_course_settings
()
if
world
.
browser
.
is_element_present_by_css
(
expand_icon_css
):
world
.
css_click
(
expand_icon_css
)
link_css
=
'li.nav-course-settings-schedule a'
link_css
=
'li.nav-course-settings-schedule a'
world
.
css_click
(
link_css
)
world
.
css_click
(
link_css
)
...
...
cms/djangoapps/contentstore/features/courses.py
View file @
cf1e906c
...
@@ -62,4 +62,4 @@ def i_am_on_tab(step, tab_name):
...
@@ -62,4 +62,4 @@ def i_am_on_tab(step, tab_name):
@step
(
'I see a link for adding a new section$'
)
@step
(
'I see a link for adding a new section$'
)
def
i_see_new_section_link
(
step
):
def
i_see_new_section_link
(
step
):
link_css
=
'a.new-courseware-section-button'
link_css
=
'a.new-courseware-section-button'
assert
world
.
css_has_text
(
link_css
,
'
+
New Section'
)
assert
world
.
css_has_text
(
link_css
,
'New Section'
)
cms/djangoapps/contentstore/features/section.py
View file @
cf1e906c
...
@@ -62,7 +62,7 @@ def i_click_to_edit_section_name(step):
...
@@ -62,7 +62,7 @@ def i_click_to_edit_section_name(step):
@step
(
'I see the complete section name with a quote in the editor$'
)
@step
(
'I see the complete section name with a quote in the editor$'
)
def
i_see_complete_section_name_with_quote_in_editor
(
step
):
def
i_see_complete_section_name_with_quote_in_editor
(
step
):
css
=
'.
edit-section-name
'
css
=
'.
section-name-edit input[type=text]
'
assert
world
.
is_css_present
(
css
)
assert
world
.
is_css_present
(
css
)
assert_equal
(
world
.
browser
.
find_by_css
(
css
)
.
value
,
'Section with "Quote"'
)
assert_equal
(
world
.
browser
.
find_by_css
(
css
)
.
value
,
'Section with "Quote"'
)
...
...
common/djangoapps/terrain/ui_helpers.py
View file @
cf1e906c
...
@@ -123,3 +123,17 @@ def save_the_html(path='/tmp'):
...
@@ -123,3 +123,17 @@ def save_the_html(path='/tmp'):
f
=
open
(
'
%
s/
%
s'
%
(
path
,
filename
),
'w'
)
f
=
open
(
'
%
s/
%
s'
%
(
path
,
filename
),
'w'
)
f
.
write
(
html
)
f
.
write
(
html
)
f
.
close
()
f
.
close
()
@world.absorb
def
click_course_settings
():
course_settings_css
=
'li.nav-course-settings'
if
world
.
browser
.
is_element_present_by_css
(
course_settings_css
):
world
.
css_click
(
course_settings_css
)
@world.absorb
def
click_tools
():
tools_css
=
'li.nav-course-tools'
if
world
.
browser
.
is_element_present_by_css
(
tools_css
):
world
.
css_click
(
tools_css
)
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