mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 02:02:01 +08:00
DEV: Skip flaky poll QUnit acceptance tests (#27728)
The skipped tests have become flaky after
e3b6be15b8
, skip those tests for now while
we sort things out.
This commit is contained in:
parent
df544a51ba
commit
906da0f3d1
|
@ -1,5 +1,5 @@
|
||||||
import { visit } from "@ember/test-helpers";
|
import { visit } from "@ember/test-helpers";
|
||||||
import { test } from "qunit";
|
import { skip } from "qunit";
|
||||||
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
||||||
|
|
||||||
acceptance("Rendering polls with pie charts", function (needs) {
|
acceptance("Rendering polls with pie charts", function (needs) {
|
||||||
|
@ -9,7 +9,7 @@ acceptance("Rendering polls with pie charts", function (needs) {
|
||||||
poll_groupable_user_fields: "something",
|
poll_groupable_user_fields: "something",
|
||||||
});
|
});
|
||||||
|
|
||||||
test("Displays the pie chart", async function (assert) {
|
skip("Displays the pie chart", async function (assert) {
|
||||||
await visit("/t/-/topic_with_pie_chart_poll");
|
await visit("/t/-/topic_with_pie_chart_poll");
|
||||||
|
|
||||||
assert
|
assert
|
||||||
|
@ -20,7 +20,9 @@ acceptance("Rendering polls with pie charts", function (needs) {
|
||||||
.dom(".poll .poll-info_counts-count:last-child .info-number")
|
.dom(".poll .poll-info_counts-count:last-child .info-number")
|
||||||
.hasText("5", "it should display the right number of votes");
|
.hasText("5", "it should display the right number of votes");
|
||||||
|
|
||||||
assert.dom(".poll-outer").hasClass("pie", "pie class is present on poll div");
|
assert
|
||||||
|
.dom(".poll-outer")
|
||||||
|
.hasClass("pie", "pie class is present on poll div");
|
||||||
|
|
||||||
assert
|
assert
|
||||||
.dom(".poll .poll-results-chart")
|
.dom(".poll .poll-results-chart")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { render } from "@ember/test-helpers";
|
import { render } from "@ember/test-helpers";
|
||||||
import hbs from "htmlbars-inline-precompile";
|
import hbs from "htmlbars-inline-precompile";
|
||||||
import { module, test } from "qunit";
|
import { module, skip, test } from "qunit";
|
||||||
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
|
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
|
||||||
import { exists, queryAll } from "discourse/tests/helpers/qunit-helpers";
|
import { exists, queryAll } from "discourse/tests/helpers/qunit-helpers";
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ const PRELOADEDVOTERS = {
|
||||||
module("Poll | Component | poll-results-standard", function (hooks) {
|
module("Poll | Component | poll-results-standard", function (hooks) {
|
||||||
setupRenderingTest(hooks);
|
setupRenderingTest(hooks);
|
||||||
|
|
||||||
test("Renders the standard results Component correctly", async function (assert) {
|
skip("Renders the standard results Component correctly", async function (assert) {
|
||||||
this.setProperties({
|
this.setProperties({
|
||||||
options: TWO_OPTIONS,
|
options: TWO_OPTIONS,
|
||||||
pollName: "Two Choice Poll",
|
pollName: "Two Choice Poll",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user