Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
0bd25c05
Commit
0bd25c05
authored
11 years ago
by
David Baumgold
Browse files
Options
Downloads
Patches
Plain Diff
Fix up lettuce tests for course team page redesign
parent
36a10876
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cms/djangoapps/contentstore/features/course-team.py
+7
-5
7 additions, 5 deletions
cms/djangoapps/contentstore/features/course-team.py
with
7 additions
and
5 deletions
cms/djangoapps/contentstore/features/course-team.py
+
7
−
5
View file @
0bd25c05
...
...
@@ -22,20 +22,22 @@ def create_other_user(_step, name):
@step
(
u
'
I add
"
([^
"
]*)
"
to the course team
'
)
def
add_other_user
(
_step
,
name
):
new_user_css
=
'
a.
new
-user-button
'
new_user_css
=
'
a.
create
-user-button
'
world
.
css_click
(
new_user_css
)
world
.
wait
(
0.5
)
email_css
=
'
input
.
email-input
'
email_css
=
'
input
#user-
email-input
'
f
=
world
.
css_find
(
email_css
)
f
.
_element
.
send_keys
(
name
,
EMAIL_EXTENSION
)
confirm_css
=
'
#add_user
'
confirm_css
=
'
form.create-user button.action-primary
'
world
.
css_click
(
confirm_css
)
@step
(
u
'
I delete
"
([^
"
]*)
"
from the course team
'
)
def
delete_other_user
(
_step
,
name
):
to_delete_css
=
'
a.remove-user[data-id=
"
{name}{extension}
"
]
'
.
format
(
name
=
name
,
extension
=
EMAIL_EXTENSION
)
to_delete_css
=
'
.user-item .item-actions a.remove-user[data-id=
"
{email}
"
]
'
.
format
(
email
=
"
{0}{1}
"
.
format
(
name
,
EMAIL_EXTENSION
))
world
.
css_click
(
to_delete_css
)
...
...
@@ -63,5 +65,5 @@ def cannot_delete(_step):
@step
(
u
'
s?he cannot add users
'
)
def
cannot_add
(
_step
):
add_css
=
'
a.
new-user
'
add_css
=
'
a.
create-user-button
'
assert
world
.
is_css_not_present
(
add_css
)
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