mirror of https://github.com/zulip/zulip.git
casper: Use wait_for_text in custom profile test.
This should avoid some test flakes.
This commit is contained in:
parent
c2cf55ce1b
commit
629f87b071
|
@ -20,13 +20,13 @@ casper.then(function () {
|
|||
casper.then(function () {
|
||||
casper.waitUntilVisible('#admin-add-profile-field-status img', function () {
|
||||
casper.test.assertSelectorHasText('div#admin-add-profile-field-status', 'Saved');
|
||||
});
|
||||
casper.waitUntilVisible('.profile-field-row span.profile_field_name', function () {
|
||||
common.wait_for_text('.profile-field-row span.profile_field_name', 'Teams', 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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
casper.then(function () {
|
||||
casper.waitUntilVisible('tr.profile-field-form form', function () {
|
||||
|
|
Loading…
Reference in New Issue