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
4bed74d2
Commit
4bed74d2
authored
5 years ago
by
Feanil Patel
Browse files
Options
Downloads
Patches
Plain Diff
Delete this set of tests because we don't think these UI tests are valuable.
parent
f49c35ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/test/acceptance/tests/studio/test_studio_accessibility_form.py
+0
-65
0 additions, 65 deletions
...acceptance/tests/studio/test_studio_accessibility_form.py
with
0 additions
and
65 deletions
common/test/acceptance/tests/studio/test_studio_accessibility_form.py
deleted
100644 → 0
+
0
−
65
View file @
f49c35ef
"""
Bok-choy tests for the Studio Accessibility Feedback page.
"""
import
ddt
from
common.test.acceptance.pages.studio.index
import
AccessibilityPage
from
common.test.acceptance.tests.helpers
import
AcceptanceTest
@ddt.ddt
class
AccessibilityPageTest
(
AcceptanceTest
):
"""
Test that a user can access the page and submit studio accessibility feedback.
"""
shard
=
21
def
setUp
(
self
):
"""
Load the helper for the accessibility page.
"""
super
(
AccessibilityPageTest
,
self
).
setUp
()
self
.
accessibility_page
=
AccessibilityPage
(
self
.
browser
)
def
test_page_loads
(
self
):
"""
Test if the page loads and that there is a header and input elements.
"""
self
.
accessibility_page
.
visit
()
self
.
assertTrue
(
self
.
accessibility_page
.
header_text_on_page
())
def
test_successful_submit
(
self
):
"""
Test filling out the accessibility feedback form out and submitting.
"""
self
.
accessibility_page
.
visit
()
self
.
accessibility_page
.
fill_form
(
email
=
'
bokchoy@edx.org
'
,
name
=
'
Bok-choy
'
,
message
=
'
I
\'
m testing you.
'
)
self
.
accessibility_page
.
submit_form
()
@ddt.data
(
(
'
email
'
,
'
Enter a valid email address
'
,
''
,
'
Bok-choy
'
,
'
I
\'
m testing you.
'
),
(
'
fullName
'
,
'
Enter a name
'
,
'
bokchoy@edx.org
'
,
''
,
'
I
\'
m testing you.
'
),
(
'
message
'
,
'
Enter a message
'
,
'
bokchoy@edx.org
'
,
'
Bok-choy
'
,
''
),
)
@ddt.unpack
def
test_error_submit
(
self
,
field_missing
,
error_message_text
,
email
,
name
,
message
):
"""
Test filling out the accessibility feedback form out with each field missing and then submitting.
"""
self
.
accessibility_page
.
visit
()
self
.
accessibility_page
.
fill_form
(
email
=
email
,
name
=
name
,
message
=
message
)
self
.
accessibility_page
.
error_message_is_shown_with_text
(
field_missing
,
text
=
error_message_text
)
self
.
accessibility_page
.
submit_form
()
self
.
accessibility_page
.
alert_has_text
(
error_message_text
)
def
test_error_messages
(
self
):
self
.
accessibility_page
.
visit
()
self
.
check_error_message
(
'
email
'
,
'
Enter a valid email address
'
)
self
.
check_error_message
(
'
fullName
'
,
'
Enter a name
'
)
self
.
check_error_message
(
'
message
'
,
'
Enter a message
'
,
field_type
=
'
textarea
'
)
def
check_error_message
(
self
,
field_id
,
error_message_text
,
field_type
=
'
input
'
):
self
.
accessibility_page
.
leave_field_blank
(
field_id
,
field_type
=
field_type
)
self
.
accessibility_page
.
error_message_is_shown_with_text
(
field_id
,
text
=
error_message_text
)
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