casper: Fix incorrect wait condition for realm icons.

This wait condition was correct for uploading, but not for deleting.
This commit is contained in:
Tim Abbott 2017-03-14 14:40:37 -07:00
parent 1c2f82f7fd
commit 1b2cbb0b85
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ casper.then(function () {
casper.click("li[data-section='organization-settings']"); casper.click("li[data-section='organization-settings']");
casper.click("#realm_icon_delete_button"); casper.click("#realm_icon_delete_button");
casper.test.assertEqual(casper.visible('#realm_icon_delete_button'), true); casper.test.assertEqual(casper.visible('#realm_icon_delete_button'), true);
casper.waitWhileVisible("#upload_icon_spinner .loading_indicator_spinner", function () { casper.waitWhileVisible('#realm_icon_delete_button', function () {
casper.test.assertExists('img#realm-settings-icon[src^="https://secure.gravatar.com/avatar/"]'); casper.test.assertExists('img#realm-settings-icon[src^="https://secure.gravatar.com/avatar/"]');
casper.test.assertEqual(casper.visible('#realm_icon_delete_button'), false); casper.test.assertEqual(casper.visible('#realm_icon_delete_button'), false);
}); });