DEV: Fix heisentests. (#18)

DEV: Fix heisentests. (#18)

From 097bda91a9f349852fcee526a83cd1340c2615d7 Mon Sep 17 00:00:00 2001
From: Bianca Nenciu <nbianca@users.noreply.github.com>
Date: Tue, 27 Nov 2018 12:54:19 +0200
Subject: [PATCH] DEV: Fix heisentests. (#18)


diff --git a/test/javascripts/acceptance/assign-disabled-test.js.es6 b/test/javascripts/acceptance/assign-disabled-test.js.es6
index 31c956d..808ad55 100644
--- a/test/javascripts/acceptance/assign-disabled-test.js.es6
+++ b/test/javascripts/acceptance/assign-disabled-test.js.es6
@@ -1,12 +1,16 @@
 import { acceptance } from "helpers/qunit-helpers";
+import { clearCallbacks } from "select-kit/mixins/plugin-api";
 
 acceptance("Assign disabled mobile", {
   loggedIn: true,
   mobileView: true,
-  settings: { assign_enabled: false }
+  settings: { assign_enabled: false },
+  beforeEach() {
+    clearCallbacks();
+  }
 });
 
-QUnit.skip("Footer dropdown does not contain button", async assert => {
+QUnit.test("Footer dropdown does not contain button", async assert => {
   const menu = selectKit(".topic-footer-mobile-dropdown");
 
   await visit("/t/internationalization-localization/280");
diff --git a/test/javascripts/acceptance/assign-enabled-test.js.es6 b/test/javascripts/acceptance/assign-enabled-test.js.es6
index f84cd92..59bcaf7 100644
--- a/test/javascripts/acceptance/assign-enabled-test.js.es6
+++ b/test/javascripts/acceptance/assign-enabled-test.js.es6
@@ -1,9 +1,13 @@
 import { acceptance } from "helpers/qunit-helpers";
+import { clearCallbacks } from "select-kit/mixins/plugin-api";
 
 acceptance("Assign mobile", {
   loggedIn: true,
   mobileView: true,
-  settings: { assign_enabled: true }
+  settings: { assign_enabled: true },
+  beforeEach() {
+    clearCallbacks();
+  }
 });
 
 QUnit.test("Footer dropdown contains button", async assert => {

GitHub

2 Likes