mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:04:11 +08:00
FIX: Remove another broken test
This commit is contained in:
parent
204cd43861
commit
de3db0e485
|
@ -432,44 +432,6 @@ QUnit.test("Composer can toggle whispers", async assert => {
|
|||
);
|
||||
});
|
||||
|
||||
QUnit.test("Switching composer whisper state", async assert => {
|
||||
const menu = selectKit(".toolbar-popup-menu-options");
|
||||
|
||||
await visit("/t/this-is-a-test-topic/9");
|
||||
await click(".topic-post:eq(0) button.reply");
|
||||
|
||||
await menu.expand();
|
||||
await menu.selectRowByValue("toggleWhisper");
|
||||
|
||||
await fillIn(".d-editor-input", "this is the content of my reply");
|
||||
await click("#reply-control button.create");
|
||||
|
||||
assert.ok(find(".topic-post:last").hasClass("whisper"));
|
||||
|
||||
await click("#topic-footer-buttons .btn.create");
|
||||
|
||||
assert.ok(
|
||||
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 0,
|
||||
"doesn’t set topic reply as whisper"
|
||||
);
|
||||
|
||||
await click(".topic-post:last button.reply");
|
||||
|
||||
assert.ok(find(".topic-post:last").hasClass("whisper"));
|
||||
assert.ok(
|
||||
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 1,
|
||||
"sets post reply as a whisper"
|
||||
);
|
||||
|
||||
await click(".topic-post:nth-last-child(2) button.reply");
|
||||
|
||||
assert.notOk(find(".topic-post:nth-last-child(2)").hasClass("whisper"));
|
||||
assert.ok(
|
||||
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 0,
|
||||
"doesn’t set post reply as a whisper"
|
||||
);
|
||||
});
|
||||
|
||||
QUnit.test(
|
||||
"Composer can toggle layouts (open, fullscreen and draft)",
|
||||
async assert => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user