casper: Fix test sequencing for profile tests.

We check data only updated after the get_events call returned, without
actually waiting for that to happen.
This commit is contained in:
Tim Abbott 2018-04-25 10:21:27 -07:00
parent ff9371d63c
commit ccb1a00e0a
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ casper.then(function () {
casper.then(function () {
casper.waitUntilVisible('#admin-profile-field-status img', function () {
casper.test.assertSelectorHasText('div#admin-profile-field-status', 'Saved');
});
casper.waitUntilVisible('.profile-field-row span.profile_field_name', function () {
casper.test.assertSelectorHasText('.profile-field-row span.profile_field_name', 'Teams');
casper.test.assertSelectorHasText('.profile-field-row span.profile_field_type', 'Short Text');
casper.click('.profile-field-row button.open-edit-form');