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
cac9f97e
Commit
cac9f97e
authored
Sep 17, 2015
by
Matt Drayer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9785 from edx/saleem-latif/SOL-1199
SOL-1199
parents
70866104
3741d065
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
common/test/acceptance/pages/studio/settings_certificates.py
+6
-4
common/test/acceptance/tests/studio/test_studio_settings_certificates.py
+0
-1
No files found.
common/test/acceptance/pages/studio/settings_certificates.py
View file @
cac9f97e
...
...
@@ -12,6 +12,7 @@ import os
from
bok_choy.promise
import
EmptyPromise
from
.course_page
import
CoursePage
from
common.test.acceptance.tests.helpers
import
disable_animations
class
CertificatesPage
(
CoursePage
):
...
...
@@ -138,8 +139,10 @@ class CertificatesPage(CoursePage):
"""
Clicks the main action presented by the prompt (such as 'Delete')
"""
disable_animations
(
self
)
self
.
wait_for_confirmation_prompt
()
self
.
q
(
css
=
'button.action-primary'
)
.
first
.
click
()
self
.
q
(
css
=
'.prompt button.action-primary'
)
.
first
.
click
()
self
.
wait_for_element_invisibility
(
'.prompt'
,
'wait for pop up to disappear'
)
self
.
wait_for_ajax
()
...
...
@@ -263,7 +266,7 @@ class Certificate(object):
Returns whether or not the certificate delete icon is present.
"""
EmptyPromise
(
lambda
:
self
.
find_css
(
'.actions .delete'
)
.
present
,
lambda
:
self
.
find_css
(
'.actions .delete
.action-icon
'
)
.
present
,
'Certificate delete button is displayed'
)
.
fulfill
()
...
...
@@ -323,8 +326,7 @@ class Certificate(object):
Remove the first (possibly the only) certificate from the set
"""
self
.
wait_for_certificate_delete_button
()
self
.
find_css
(
'.actions .delete'
)
.
first
.
click
()
self
.
page
.
wait_for_ajax
()
self
.
find_css
(
'.actions .delete.action-icon'
)
.
first
.
click
()
class
Signatory
(
object
):
...
...
common/test/acceptance/tests/studio/test_studio_settings_certificates.py
View file @
cac9f97e
...
...
@@ -107,7 +107,6 @@ class CertificatesTest(StudioCourseTest):
self
.
assertIn
(
"Updated Course Title Override 2"
,
certificate
.
course_title
)
@flaky
# TODO fix this, see SOL-1199
def
test_can_delete_certificate
(
self
):
"""
Scenario: Ensure that the user can delete certificate.
...
...
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