UX: Changed error draft status to icon (#7369)

This commit is contained in:
Tim Lange
2019-04-19 09:18:01 +02:00
committed by Régis Hanol
parent cbe7166d87
commit 1d0816b2cf
4 changed files with 15 additions and 2 deletions

View File

@ -4,7 +4,7 @@ acceptance("Composer - Edit conflict", {
loggedIn: true
});
QUnit.skip("Edit a post that causes an edit conflict", async assert => {
QUnit.test("Edit a post that causes an edit conflict", async assert => {
// prettier-ignore
server.put("/posts/398", () => [ // eslint-disable-line no-undef
409, { "Content-Type": "application/json" }, { errors: ["edit conflict"] }
@ -21,6 +21,11 @@ QUnit.skip("Edit a post that causes an edit conflict", async assert => {
I18n.t("composer.overwrite_edit"),
"it shows the overwrite button"
);
assert.ok(
find("#draft-status .d-icon-user-edit"),
"error icon should be there"
);
await click(".modal .btn-primary");
});
QUnit.test(