icknpcyaf: Redesign the composer with toolbar, emoji popover, attachment row and flip Post
This commit is contained in:
+2
-1
@@ -158,7 +158,8 @@ describe("Composer", () => {
|
||||
const html = renderToStaticMarkup(createElement(Composer, { ...base, file: f, onFile: () => {} }));
|
||||
expect(html).toContain("Add image");
|
||||
expect(html).toContain("photo.jpg");
|
||||
expect(html).not.toMatch(/<button[^>]*class="composer-post"[^>]*disabled/);
|
||||
expect(html).toMatch(/<button[^>]*type="submit"[^>]*class="[^"]*composer-post/);
|
||||
expect(html).not.toMatch(/<button[^>]*class="[^"]*composer-post[^"]*"[^>]*disabled/);
|
||||
});
|
||||
it("keeps the text and the image name on a publish failure", () => {
|
||||
const f = new File(["x"], "sunset.png", { type: "image/png" });
|
||||
|
||||
Reference in New Issue
Block a user