split into 2 files so its easier to use rake autospec

split into 2 files so its easier to use rake autospec

From 646b31006405d24ee730ccc95801080ac39f9b76 Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Fri, 23 Nov 2018 11:27:56 +1100
Subject: [PATCH] split into 2 files so its easier to use rake autospec


diff --git a/test/javascripts/acceptance/assign-disabled-test.js.es6 b/test/javascripts/acceptance/assign-disabled-test.js.es6
new file mode 100644
index 0000000..cd59176
--- /dev/null
+++ b/test/javascripts/acceptance/assign-disabled-test.js.es6
@@ -0,0 +1,16 @@
+import { acceptance } from "helpers/qunit-helpers";
+
+acceptance("Assign disabled mobile", {
+  loggedIn: true,
+  mobileView: true,
+  settings: { assign_enabled: false }
+});
+
+QUnit.test("Footer dropdown does not contain button", async assert => {
+  const menu = selectKit(".topic-footer-mobile-dropdown");
+
+  await visit("/t/internationalization-localization/280");
+  await menu.expand();
+
+  assert.notOk(menu.rowByValue("assign").exists());
+});
diff --git a/test/javascripts/acceptance/assign-enabled-test.js.es6 b/test/javascripts/acceptance/assign-enabled-test.js.es6
new file mode 100644
index 0000000..f84cd92
--- /dev/null
+++ b/test/javascripts/acceptance/assign-enabled-test.js.es6
@@ -0,0 +1,16 @@
+import { acceptance } from "helpers/qunit-helpers";
+
+acceptance("Assign mobile", {
+  loggedIn: true,
+  mobileView: true,
+  settings: { assign_enabled: true }
+});
+
+QUnit.test("Footer dropdown contains button", async assert => {
+  const menu = selectKit(".topic-footer-mobile-dropdown");
+
+  await visit("/t/internationalization-localization/280");
+  await menu.expand();
+
+  assert.ok(menu.rowByValue("assign").exists());
+});
diff --git a/test/javascripts/acceptance/assign-test.js.es6 b/test/javascripts/acceptance/assign-test.js.es6
deleted file mode 100644
index 94bfb63..0000000
--- a/test/javascripts/acceptance/assign-test.js.es6
+++ /dev/null
@@ -1,31 +0,0 @@
-import { acceptance } from "helpers/qunit-helpers";
-
-acceptance("Assign (mobile)", {
-  loggedIn: true,
-  mobileView: true,
-  settings: { assign_enabled: true },
-});
-
-QUnit.test("Footer dropdown contains button", async assert => {
-  const menu = selectKit(".topic-footer-mobile-dropdown");
-
-  await visit("/t/internationalization-localization/280");
-  await menu.expand();
-
-  assert.ok(menu.rowByValue("assign").exists());
-});
-
-acceptance("Assign (mobile & disabled)", {
-  loggedIn: true,
-  mobileView: true,
-  settings: { assign_enabled: false },
-});
-
-QUnit.test("Footer dropdown does not contain button", async assert => {
-  const menu = selectKit(".topic-footer-mobile-dropdown");
-
-  await visit("/t/internationalization-localization/280");
-  await menu.expand();
-
-  assert.notOk(menu.rowByValue("assign").exists());
-});

GitHub

1 Like