2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

REFACTOR: Move javascript tests inside discourse app

This is where they should be as far as ember is concerned. Note this is
a huge commit and we should be really careful everything continues to
work properly.
This commit is contained in:
Robin Ward 2020-10-01 13:25:58 -04:00
parent 99181bb3b8
commit 23f24bfb51
325 changed files with 554 additions and 417 deletions

View file

@ -1,7 +1,7 @@
import I18n from "I18n";
import { acceptance } from "helpers/qunit-helpers";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
import selectKit from "helpers/select-kit-helper";
import selectKit from "discourse/tests/helpers/select-kit-helper";
acceptance("Details Button", {
loggedIn: true,

View file

@ -1,4 +1,4 @@
import { acceptance } from "helpers/qunit-helpers";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("Local Dates - composer", {
loggedIn: true,

View file

@ -1,4 +1,4 @@
import { acceptance } from "helpers/qunit-helpers";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
import { Promise } from "rsvp";

View file

@ -1,4 +1,4 @@
import { acceptance, updateCurrentUser } from "helpers/qunit-helpers";
import { acceptance, updateCurrentUser } from "discourse/tests/helpers/qunit-helpers";
import { displayPollBuilderButton } from "discourse/plugins/poll/helpers/display-poll-builder-button";
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";

View file

@ -1,5 +1,5 @@
import selectKit from "helpers/select-kit-helper";
import { acceptance, updateCurrentUser } from "helpers/qunit-helpers";
import selectKit from "discourse/tests/helpers/select-kit-helper";
import { acceptance, updateCurrentUser } from "discourse/tests/helpers/qunit-helpers";
import { displayPollBuilderButton } from "discourse/plugins/poll/helpers/display-poll-builder-button";
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";

View file

@ -1,4 +1,4 @@
import { acceptance } from "helpers/qunit-helpers";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("Rendering polls with pie charts - desktop", {
loggedIn: true,

View file

@ -1,4 +1,4 @@
import { acceptance } from "helpers/qunit-helpers";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
import { Promise } from "rsvp";

View file

@ -1,4 +1,4 @@
import { acceptance } from "helpers/qunit-helpers";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
acceptance("Rendering polls with bar charts - desktop", {

View file

@ -1,4 +1,4 @@
import { acceptance } from "helpers/qunit-helpers";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
acceptance("Rendering polls with bar charts - mobile", {

View file

@ -1,4 +1,4 @@
import { controllerModule } from "helpers/qunit-helpers";
import { controllerModule } from "discourse/tests/helpers/qunit-helpers";
controllerModule("controller:poll-ui-builder", {
setupController(controller) {

View file

@ -1,4 +1,4 @@
import selectKit from "helpers/select-kit-helper";
import selectKit from "discourse/tests/helpers/select-kit-helper";
export async function displayPollBuilderButton() {
await visit("/");

View file

@ -1,4 +1,4 @@
import { moduleForWidget, widgetTest } from "helpers/widget-test";
import { moduleForWidget, widgetTest } from "discourse/tests/helpers/widget-test";
moduleForWidget("discourse-poll-option");
const template = `{{mount-widget

View file

@ -1,5 +1,5 @@
import EmberObject from "@ember/object";
import { moduleForWidget, widgetTest } from "helpers/widget-test";
import { moduleForWidget, widgetTest } from "discourse/tests/helpers/widget-test";
moduleForWidget("discourse-poll-standard-results");

View file

@ -1,6 +1,6 @@
import I18n from "I18n";
import EmberObject from "@ember/object";
import { moduleForWidget, widgetTest } from "helpers/widget-test";
import { moduleForWidget, widgetTest } from "discourse/tests/helpers/widget-test";
moduleForWidget("discourse-poll");