mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
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:
parent
47c3ec1283
commit
7a5bbe040b
@ -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");
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user