DEV: Fix linting issues in core plugins (#14916)
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
} from "discourse/tests/helpers/qunit-helpers";
|
||||
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
|
||||
import { test } from "qunit";
|
||||
import { visit } from "@ember/test-helpers";
|
||||
import { click, visit } from "@ember/test-helpers";
|
||||
|
||||
acceptance("Poll breakdown", function (needs) {
|
||||
needs.user();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { acceptance, exists } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
|
||||
import { test } from "qunit";
|
||||
import { visit } from "@ember/test-helpers";
|
||||
import { click, visit } from "@ember/test-helpers";
|
||||
|
||||
acceptance("Poll in a post reply history", function (needs) {
|
||||
needs.user();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { acceptance, count } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
|
||||
import { test } from "qunit";
|
||||
import { visit } from "@ember/test-helpers";
|
||||
import { click, visit } from "@ember/test-helpers";
|
||||
|
||||
acceptance("Poll quote", function (needs) {
|
||||
needs.user();
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
} from "discourse/tests/helpers/qunit-helpers";
|
||||
import { test } from "qunit";
|
||||
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
|
||||
import { visit } from "@ember/test-helpers";
|
||||
import { click, visit } from "@ember/test-helpers";
|
||||
|
||||
acceptance("Poll results", function (needs) {
|
||||
needs.user();
|
||||
@@ -568,11 +568,11 @@ acceptance("Poll results", function (needs) {
|
||||
await visit("/t/-/load-more-poll-voters");
|
||||
|
||||
assert.strictEqual(
|
||||
find(".poll-container .results li:nth-child(1) .poll-voters li").length,
|
||||
count(".poll-container .results li:nth-child(1) .poll-voters li"),
|
||||
1
|
||||
);
|
||||
assert.strictEqual(
|
||||
find(".poll-container .results li:nth-child(2) .poll-voters li").length,
|
||||
count(".poll-container .results li:nth-child(2) .poll-voters li"),
|
||||
0
|
||||
);
|
||||
|
||||
@@ -627,11 +627,11 @@ acceptance("Poll results", function (needs) {
|
||||
await visit("/t/-/load-more-poll-voters");
|
||||
|
||||
assert.strictEqual(
|
||||
find(".poll-container .results li:nth-child(1) .poll-voters li").length,
|
||||
count(".poll-container .results li:nth-child(1) .poll-voters li"),
|
||||
1
|
||||
);
|
||||
assert.strictEqual(
|
||||
find(".poll-container .results li:nth-child(2) .poll-voters li").length,
|
||||
count(".poll-container .results li:nth-child(2) .poll-voters li"),
|
||||
1
|
||||
);
|
||||
|
||||
@@ -639,11 +639,11 @@ acceptance("Poll results", function (needs) {
|
||||
await visit("/t/-/load-more-poll-voters");
|
||||
|
||||
assert.strictEqual(
|
||||
find(".poll-container .results li:nth-child(1) .poll-voters li").length,
|
||||
count(".poll-container .results li:nth-child(1) .poll-voters li"),
|
||||
2
|
||||
);
|
||||
assert.strictEqual(
|
||||
find(".poll-container .results li:nth-child(2) .poll-voters li").length,
|
||||
count(".poll-container .results li:nth-child(2) .poll-voters li"),
|
||||
0
|
||||
);
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { acceptance, queryAll } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
|
||||
import { test } from "qunit";
|
||||
import { visit } from "@ember/test-helpers";
|
||||
import { click, visit } from "@ember/test-helpers";
|
||||
|
||||
acceptance("Rendering polls with bar charts - desktop", function (needs) {
|
||||
needs.user();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { acceptance, queryAll } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
|
||||
import { test } from "qunit";
|
||||
import { visit } from "@ember/test-helpers";
|
||||
import { click, visit } from "@ember/test-helpers";
|
||||
|
||||
acceptance("Rendering polls with bar charts - mobile", function (needs) {
|
||||
needs.user();
|
||||
|
||||
@@ -11,6 +11,7 @@ import EmberObject from "@ember/object";
|
||||
import I18n from "I18n";
|
||||
import pretender from "discourse/tests/helpers/create-pretender";
|
||||
import hbs from "htmlbars-inline-precompile";
|
||||
import { click } from "@ember/test-helpers";
|
||||
|
||||
let requests = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user