mirror of https://github.com/zulip/zulip.git
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:
parent
ff9371d63c
commit
ccb1a00e0a
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue