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
5941f5b7
Commit
5941f5b7
authored
Aug 07, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the other places that the css occurs
parent
9e93d558
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
cms/djangoapps/contentstore/features/common.py
+2
-4
cms/djangoapps/contentstore/features/course-team.py
+1
-1
cms/djangoapps/contentstore/features/courses.py
+2
-2
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
5941f5b7
...
@@ -56,10 +56,8 @@ def i_have_opened_a_new_course(_step):
...
@@ -56,10 +56,8 @@ def i_have_opened_a_new_course(_step):
@step
(
'(I select|s?he selects) the new course'
)
@step
(
'(I select|s?he selects) the new course'
)
def
select_new_course
(
_step
,
whom
):
def
select_new_course
(
_step
,
whom
):
course_link_xpath
=
'//div[contains(@class, "courses")]//a[contains(@class, "class-link")]//span[contains(., "{name}")]/..'
.
format
(
course_link_css
=
'a.course-link'
name
=
"Robot Super Course"
)
world
.
css_click
(
course_link_css
)
element
=
world
.
browser
.
find_by_xpath
(
course_link_xpath
)
element
.
click
()
@step
(
u'I press the "([^"]*)" notification button$'
)
@step
(
u'I press the "([^"]*)" notification button$'
)
...
...
cms/djangoapps/contentstore/features/course-team.py
View file @
5941f5b7
...
@@ -93,7 +93,7 @@ def other_user_login(_step, name):
...
@@ -93,7 +93,7 @@ def other_user_login(_step, name):
@step
(
u'I( do not)? see the course on my page'
)
@step
(
u'I( do not)? see the course on my page'
)
@step
(
u's?he does( not)? see the course on (his|her) page'
)
@step
(
u's?he does( not)? see the course on (his|her) page'
)
def
see_course
(
_step
,
inverted
,
gender
=
'self'
):
def
see_course
(
_step
,
inverted
,
gender
=
'self'
):
class_css
=
'
span.class-nam
e'
class_css
=
'
h3.course-titl
e'
all_courses
=
world
.
css_find
(
class_css
,
wait_time
=
1
)
all_courses
=
world
.
css_find
(
class_css
,
wait_time
=
1
)
all_names
=
[
item
.
html
for
item
in
all_courses
]
all_names
=
[
item
.
html
for
item
in
all_courses
]
if
inverted
:
if
inverted
:
...
...
cms/djangoapps/contentstore/features/courses.py
View file @
5941f5b7
...
@@ -30,7 +30,7 @@ def i_create_a_course(step):
...
@@ -30,7 +30,7 @@ def i_create_a_course(step):
@step
(
'I click the course link in My Courses$'
)
@step
(
'I click the course link in My Courses$'
)
def
i_click_the_course_link_in_my_courses
(
step
):
def
i_click_the_course_link_in_my_courses
(
step
):
course_css
=
'
span.class-name
'
course_css
=
'
a.course-link
'
world
.
css_click
(
course_css
)
world
.
css_click
(
course_css
)
############ ASSERTIONS ###################
############ ASSERTIONS ###################
...
@@ -44,7 +44,7 @@ def courseware_page_has_loaded_in_studio(step):
...
@@ -44,7 +44,7 @@ def courseware_page_has_loaded_in_studio(step):
@step
(
'I see the course listed in My Courses$'
)
@step
(
'I see the course listed in My Courses$'
)
def
i_see_the_course_in_my_courses
(
step
):
def
i_see_the_course_in_my_courses
(
step
):
course_css
=
'
span.class-nam
e'
course_css
=
'
h3.class-titl
e'
assert
world
.
css_has_text
(
course_css
,
world
.
scenario_dict
[
'COURSE'
]
.
display_name
)
assert
world
.
css_has_text
(
course_css
,
world
.
scenario_dict
[
'COURSE'
]
.
display_name
)
...
...
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