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
4125e594
Commit
4125e594
authored
Oct 08, 2015
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky bok choy tests.
TNL-2667
parent
ec023c22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
common/test/acceptance/pages/studio/users.py
+1
-0
common/test/acceptance/tests/studio/test_studio_course_team.py
+8
-5
No files found.
common/test/acceptance/pages/studio/users.py
View file @
4125e594
...
...
@@ -254,6 +254,7 @@ class UserWrapper(PageObject):
self
.
wait_for_element_visibility
(
'.prompt'
,
'Prompt is visible'
)
self
.
wait_for_element_visibility
(
'.prompt .action-primary'
,
'Confirmation button is visible'
)
self
.
q
(
css
=
'.prompt .action-primary'
)
.
click
()
self
.
wait_for_element_absence
(
'.page-prompt .is-shown'
,
'Confirmation prompt is hidden'
)
wait_for_ajax_or_reload
(
self
.
browser
)
@property
...
...
common/test/acceptance/tests/studio/test_studio_course_team.py
View file @
4125e594
"""
Acceptance tests for course in studio
"""
from
flaky
import
flaky
from
nose.plugins.attrib
import
attr
from
.base_studio_test
import
StudioCourseTest
...
...
@@ -11,7 +10,6 @@ from ...pages.studio.users import CourseTeamPage
from
...pages.studio.index
import
DashboardPage
@flaky
# TODO fix this, see TNL-2667
@attr
(
'shard_2'
)
class
CourseTeamPageTest
(
StudioCourseTest
):
""" As a course author, I want to be able to add others to my team """
...
...
@@ -75,9 +73,15 @@ class CourseTeamPageTest(StudioCourseTest):
def
_assert_user_present
(
self
,
user
,
present
=
True
):
""" Checks if specified user present on Course Team page """
if
present
:
self
.
assertIn
(
user
.
get
(
'username'
),
self
.
page
.
usernames
)
self
.
page
.
wait_for
(
lambda
:
user
.
get
(
'username'
)
in
self
.
page
.
usernames
,
description
=
"Wait for user to be present"
)
else
:
self
.
assertNotIn
(
user
.
get
(
'username'
),
self
.
page
.
usernames
)
self
.
page
.
wait_for
(
lambda
:
user
.
get
(
'username'
)
not
in
self
.
page
.
usernames
,
description
=
"Wait for user to be absent"
)
def
_should_see_dialog
(
self
,
dialog_type
,
dialog_message
):
""" Asserts dialog with specified message is shown """
...
...
@@ -152,7 +156,6 @@ class CourseTeamPageTest(StudioCourseTest):
self
.
_assert_can_not_manage_users
()
@flaky
# TNL-3515
def
test_admins_can_delete_other_users
(
self
):
"""
Scenario: Admins can delete other users
...
...
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