Fixed test about me field test failing on chrome

This commit is contained in:
raeeschachar
2015-10-12 18:28:29 +05:00
parent 69c47e0951
commit 652d3466c1
2 changed files with 4 additions and 3 deletions

View File

@@ -182,6 +182,7 @@ class FieldsMixin(object):
Return value of field in `display` or `placeholder` mode.
"""
self.wait_for_field(field_id)
self.wait_for_ajax()
return self.q(css='.u-field-{} .u-field-value .u-field-value-readonly'.format(field_id)).text[0]

View File

@@ -375,10 +375,10 @@ class OwnLearnerProfilePageTest(LearnerProfileTestMixin, WebAppTest):
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 `Eat Sleep Code`.
Then displayed about me should be `Eat Sleep Code` and about me field mode should be `display`
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 `Eat Sleep Code` and about me field mode should be `display`
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