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
8feaa0ff
Commit
8feaa0ff
authored
Aug 09, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added in a wait upon logging in
parent
822f3a78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
cms/djangoapps/contentstore/features/common.py
+4
-3
cms/djangoapps/contentstore/features/course-team.feature
+1
-1
cms/djangoapps/contentstore/features/course-team.py
+2
-1
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
8feaa0ff
...
@@ -146,12 +146,13 @@ def fill_in_course_info(
...
@@ -146,12 +146,13 @@ def fill_in_course_info(
def
log_into_studio
(
def
log_into_studio
(
uname
=
'robot'
,
uname
=
'robot'
,
email
=
'robot+studio@edx.org'
,
email
=
'robot+studio@edx.org'
,
password
=
'test'
):
password
=
'test'
,
name
=
'Robot Studio'
):
world
.
log_in
(
username
=
uname
,
password
=
password
,
email
=
email
,
name
=
'Robot Studio'
)
world
.
log_in
(
username
=
uname
,
password
=
password
,
email
=
email
,
name
=
name
)
# Navigate to the studio dashboard
# Navigate to the studio dashboard
world
.
visit
(
'/'
)
world
.
visit
(
'/'
)
world
.
wait_for
(
lambda
_driver
:
uname
in
world
.
css_find
(
'h2.title'
)[
0
]
.
text
)
def
create_a_course
():
def
create_a_course
():
course
=
world
.
CourseFactory
.
create
(
org
=
'MITx'
,
course
=
'999'
,
display_name
=
'Robot Super Course'
)
course
=
world
.
CourseFactory
.
create
(
org
=
'MITx'
,
course
=
'999'
,
display_name
=
'Robot Super Course'
)
...
...
cms/djangoapps/contentstore/features/course-team.feature
View file @
8feaa0ff
...
@@ -71,7 +71,7 @@ Feature: Course Team
...
@@ -71,7 +71,7 @@ Feature: Course Team
And
she selects the new course
And
she selects the new course
And
she views the course team settings
And
she views the course team settings
And
she deletes me from the course team
And
she deletes me from the course team
And
I
log in
And
I
am logged into studio
Then
I do not see the course on my page
Then
I do not see the course on my page
Scenario
:
Admins should be able to remove their own admin rights
Scenario
:
Admins should be able to remove their own admin rights
...
...
cms/djangoapps/contentstore/features/course-team.py
View file @
8feaa0ff
...
@@ -66,6 +66,7 @@ def other_delete_self(_step):
...
@@ -66,6 +66,7 @@ def other_delete_self(_step):
email
=
"robot+studio@edx.org"
)
email
=
"robot+studio@edx.org"
)
world
.
css_click
(
to_delete_css
)
world
.
css_click
(
to_delete_css
)
# confirm prompt
# confirm prompt
world
.
wait
(
.
5
)
world
.
css_click
(
".wrapper-prompt-warning .action-primary"
)
world
.
css_click
(
".wrapper-prompt-warning .action-primary"
)
...
@@ -89,7 +90,7 @@ def remove_course_team_admin(_step, outer_capture, name):
...
@@ -89,7 +90,7 @@ def remove_course_team_admin(_step, outer_capture, name):
@step
(
u'"([^"]*)" logs in$'
)
@step
(
u'"([^"]*)" logs in$'
)
def
other_user_login
(
_step
,
name
):
def
other_user_login
(
_step
,
name
):
log_into_studio
(
uname
=
name
,
password
=
PASSWORD
,
email
=
name
+
EMAIL_EXTENSION
)
log_into_studio
(
uname
=
name
,
password
=
PASSWORD
,
email
=
name
+
EMAIL_EXTENSION
,
name
=
name
)
@step
(
u'I( do not)? see the course on my page'
)
@step
(
u'I( do not)? see the course on my page'
)
...
...
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