Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

casper_tests: Fix 06-settings for added alert words.

Anders Kaseorgded8c34cee2d
diff --git a/frontend_tests/casper_tests/06-settings.js b/frontend_tests/casper_tests/06-settings.js
index d5123ea0bdc..dea3f1a3b85 100644
--- a/frontend_tests/casper_tests/06-settings.js
+++ b/frontend_tests/casper_tests/06-settings.js
@@ -294,7 +294,7 @@ casper.then(function () {
casper.then(function () {
casper.test.info("Deleting alert word");
- casper.click("button.remove-alert-word");
+ casper.click("button.remove-alert-word[data-word='some phrase']");
casper.test.info("Checking that a success message is displayed");
casper.waitUntilVisible("#alert_word_status", function () {
casper.test.assertSelectorHasText(
@@ -308,7 +308,6 @@ casper.then(function () {
});
casper.test.info("Checking that the element was deleted");
casper.waitWhileVisible(".alert-word-item[data-word='some phrase']", function () {
- casper.test.assertDoesntExist("div.alert-word-information-box");
casper.test.info("Element deleted successfully");
});
});