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:
parent
99181bb3b8
commit
23f24bfb51
325 changed files with 554 additions and 417 deletions
|
@ -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,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { acceptance } from "helpers/qunit-helpers";
|
||||
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
||||
|
||||
acceptance("Local Dates - composer", {
|
||||
loggedIn: true,
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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", {
|
||||
|
|
|
@ -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", {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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("/");
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue