diff --git a/package.json b/package.json index 093617f..842e65f 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "compression": "^1.7.1", "cross-env": "^5.1.3", "css-loader": "^0.28.7", + "escape-html": "^1.0.3", "esm": "^3.0.12", "events": "^2.0.0", "express": "^4.16.2", diff --git a/routes/_components/status/StatusContent.html b/routes/_components/status/StatusContent.html index 15c12b1..197bbde 100644 --- a/routes/_components/status/StatusContent.html +++ b/routes/_components/status/StatusContent.html @@ -58,10 +58,10 @@ ` + let pwned2 = `` + await t.useRole(foobarRole) + .typeText(composeInput, pwned1) + .click(contentWarningButton) + .typeText(composeContentWarning, pwned2) + .click(composeButton) + .expect(getNthStatus(0).find('.status-spoiler').innerText).contains(pwned2) + .click(getNthShowOrHideButton(0)) + .expect(getNthStatus(0).find('.status-content').innerText).contains(pwned1) +})