mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	casper: Use wait_for_text in custom profile test.
This should avoid some test flakes.
This commit is contained in:
		@@ -20,11 +20,11 @@ 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 () {
 | 
			
		||||
        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');
 | 
			
		||||
        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');
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user