From 1b2cbb0b852b504359573378d4516a18690d7b5a Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 14 Mar 2017 14:40:37 -0700 Subject: [PATCH] casper: Fix incorrect wait condition for realm icons. This wait condition was correct for uploading, but not for deleting. --- frontend_tests/casper_tests/10-admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend_tests/casper_tests/10-admin.js b/frontend_tests/casper_tests/10-admin.js index 1eb0dd1c9d..e1668e474f 100644 --- a/frontend_tests/casper_tests/10-admin.js +++ b/frontend_tests/casper_tests/10-admin.js @@ -224,7 +224,7 @@ casper.then(function () { casper.click("li[data-section='organization-settings']"); casper.click("#realm_icon_delete_button"); 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.assertEqual(casper.visible('#realm_icon_delete_button'), false); });