Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
92d019e4
Commit
92d019e4
authored
7 years ago
by
Michael Youngstrom
Browse files
Options
Downloads
Patches
Plain Diff
Remove test_about_me_field
parent
6a04b421
No related branches found
Branches containing commit
Tags
release-2021-06-01-12.24
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/lms/test_learner_profile.py
+0
-35
0 additions, 35 deletions
common/test/acceptance/tests/lms/test_learner_profile.py
with
0 additions
and
35 deletions
common/test/acceptance/tests/lms/test_learner_profile.py
+
0
−
35
View file @
92d019e4
...
...
@@ -348,41 +348,6 @@ class OwnLearnerProfilePageTest(LearnerProfileTestMixin, AcceptanceTest):
self
.
assertEqual
(
profile_page
.
get_non_editable_mode_value
(
field_id
),
displayed_value
)
self
.
assertTrue
(
profile_page
.
mode_for_field
(
field_id
),
mode
)
def
test_about_me_field
(
self
):
"""
Test behaviour of `About Me` field.
Given that I am a registered user.
And I visit my Profile page.
And I set the profile visibility to public and set default values for public fields.
Then I set about me value to `ThisIsIt`.
Then displayed about me should be `ThisIsIt` and about me field mode should be `display`
And I reload the page.
Then displayed about me should be `ThisIsIt` and about me field mode should be `display`
Then I set empty value for about me.
Then displayed about me should be `Tell other edX learners a little about yourself: where you live,
what your interests are, why you
'
re taking courses on edX, or what you hope to learn.` and about me
field mode should be `placeholder`
And I reload the page.
Then displayed about me should be `Tell other edX learners a little about yourself: where you live,
what your interests are, why you
'
re taking courses on edX, or what you hope to learn.` and about me
field mode should be `placeholder`
And I make `about me` field editable
Then `about me` field mode should be `edit`
"""
placeholder_value
=
(
"
Tell other learners a little about yourself: where you live, what your interests are,
"
"
why you
'
re taking courses, or what you hope to learn.
"
)
username
,
__
=
self
.
log_in_as_unique_user
()
profile_page
=
self
.
visit_profile_page
(
username
,
privacy
=
self
.
PRIVACY_PUBLIC
)
self
.
_test_textarea_field
(
profile_page
,
'
bio
'
,
'
ThisIsIt
'
,
'
ThisIsIt
'
,
'
display
'
)
self
.
_test_textarea_field
(
profile_page
,
'
bio
'
,
''
,
placeholder_value
,
'
placeholder
'
)
profile_page
.
make_field_editable
(
'
bio
'
)
self
.
assertTrue
(
profile_page
.
mode_for_field
(
'
bio
'
),
'
edit
'
)
def
test_birth_year_not_set
(
self
):
"""
Verify message if birth year is not set.
...
...
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