Fix flaky casper test for messsage edits

.message_edit_notice is too broad of a selector to
test if your most recent edit has posted. Also
check if the currently selected message is the one
that's been edited.
This commit is contained in:
acrefoot
2016-06-05 02:10:58 +00:00
committed by Tim Abbott
parent 47c3ec1283
commit 7a5bbe040b

View File

@@ -43,7 +43,7 @@ casper.then(function () {
});
});
casper.waitForSelector(".message_edit_notice", function () {
casper.waitForSelector(".selected_message .message_edit_notice", function () {
casper.test.assertSelectorHasText(".last_message .message_content", "test edited");
});
@@ -67,7 +67,7 @@ casper.then(function () {
});
});
casper.waitForSelector(".message_edit_notice", function () {
casper.waitForSelector(".selected_message .message_edit_notice", function () {
casper.test.assertSelectorHasText(".last_message .sender-status", "test edited one line with me");
});