DEV: tests toolbar behavior

DEV: tests toolbar behavior

diff --git a/test/javascripts/acceptance/discourse-post-event/composer-toolbar-test.js.es6 b/test/javascripts/acceptance/discourse-post-event/composer-toolbar-test.js.es6
new file mode 100644
index 0000000..0dc292e
--- /dev/null
+++ b/test/javascripts/acceptance/discourse-post-event/composer-toolbar-test.js.es6
@@ -0,0 +1,33 @@
+import { updateCurrentUser } from "helpers/qunit-helpers";
+import selectKit from "helpers/select-kit-helper";
+import discoursePostEventAcceptance from "./discourse-post-event-helper";
+
+discoursePostEventAcceptance("composer-toolbar");
+
+test("replying to a post", async assert => {
+  updateCurrentUser({ can_create_discourse_post_event: true });
+
+  await visit("/t/internationalization-localization/280");
+  await click("#post_1 button.create");
+  const popupMenu = selectKit(".toolbar-popup-menu-options");
+  await popupMenu.expand();
+  assert.notOk(
+    popupMenu.rowByValue("insertEvent").exists(),
+    "it doesn’t show the option"
+  );
+});
+
+test("edit the op", async assert => {
+  updateCurrentUser({ can_create_discourse_post_event: true });
+
+  await visit("/t/internationalization-localization/280");
+  await click("#post_1 .actions .show-more-actions");
+  await click("#post_1 .actions button.edit");
+
+  const popupMenu = selectKit(".toolbar-popup-menu-options");
+  await popupMenu.expand();
+  assert.ok(
+    popupMenu.rowByValue("insertEvent").exists(),
+    "it shows the option"
+  );
+});

GitHub sha: 24357ea6