mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 09:04:46 +08:00
DEV: Fix build. (#6500)
This commit is contained in:

committed by
Régis Hanol

parent
0abc932056
commit
21d804fc92
@ -4,14 +4,14 @@ acceptance("Composer - Edit conflict", {
|
||||
loggedIn: true,
|
||||
|
||||
pretend(server, helper) {
|
||||
server.put("/posts/398", () => {
|
||||
server.put("/posts/18", () => {
|
||||
return helper.response(409, { errors: ["edit conflict"] });
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
QUnit.test("Edit a post that causes an edit conflict", async assert => {
|
||||
await visit("/t/internationalization-localization/280");
|
||||
await visit("/t/this-is-a-test-topic/9");
|
||||
await click(".topic-post:eq(0) button.show-more-actions");
|
||||
await click(".topic-post:eq(0) button.edit");
|
||||
await click("#reply-control button.create");
|
||||
|
Reference in New Issue
Block a user