Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test breaking #14062

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ember.yml
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: run
if: false # something is broken with this job so skip for now
if: true
runs-on: ubuntu-latest
container: discourse/discourse_test:release
timeout-minutes: 40
Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/discourse/testem.js
@@ -1,6 +1,7 @@
module.exports = {
test_page: "tests/index.html?hidepassed",
disable_watching: true,
browser_start_timeout: 120,
launch_in_ci: ["Chrome"],
launch_in_dev: ["Chrome"],
browser_args: {
Expand Down
Expand Up @@ -6,7 +6,7 @@ import {
import { authorizedExtensions } from "discourse/lib/uploads";
import { click, fillIn, visit } from "@ember/test-helpers";
import I18n from "I18n";
import { test } from "qunit";
import { skip } from "qunit";

function pretender(server, helper) {
server.post("/uploads/lookup-urls", () => {
Expand Down Expand Up @@ -61,13 +61,12 @@ acceptance("Uppy Composer Attachment - Upload Placeholder", function (needs) {
simultaneous_uploads: 2,
});

test("should insert the Uploading placeholder then the complete image placeholder", async function (assert) {
skip("should insert the Uploading placeholder then the complete image placeholder", async function (assert) {
await visit("/");
await click("#create-topic");
await fillIn(".d-editor-input", "The image:\n");
const appEvents = loggedInUser().appEvents;
const done = assert.async();

appEvents.on("composer:all-uploads-complete", () => {
assert.equal(
queryAll(".d-editor-input").val(),
Expand All @@ -87,7 +86,7 @@ acceptance("Uppy Composer Attachment - Upload Placeholder", function (needs) {
appEvents.trigger("composer:add-files", image);
});

test("should error if too many files are added at once", async function (assert) {
skip("should error if too many files are added at once", async function (assert) {
await visit("/");
await click("#create-topic");
const appEvents = loggedInUser().appEvents;
Expand All @@ -112,7 +111,7 @@ acceptance("Uppy Composer Attachment - Upload Placeholder", function (needs) {
appEvents.trigger("composer:add-files", [image, image1, image2]);
});

test("should error if an unauthorized extension file is added", async function (assert) {
skip("should error if an unauthorized extension file is added", async function (assert) {
await visit("/");
await click("#create-topic");
const appEvents = loggedInUser().appEvents;
Expand Down Expand Up @@ -143,7 +142,7 @@ acceptance("Uppy Composer Attachment - Upload Placeholder", function (needs) {
// UI updates sink it for the old Ember for some reason. Will re-enable
// when we make Ember CLI the primary.
//
// test("cancelling uploads clears the placeholders out", async function (assert) {
// skip("cancelling uploads clears the placeholders out", async function (assert) {
// await visit("/");
// await click("#create-topic");
// await fillIn(".d-editor-input", "The image:\n");
Expand Down Expand Up @@ -199,7 +198,7 @@ acceptance("Uppy Composer Attachment - Upload Error", function (needs) {
simultaneous_uploads: 2,
});

test("should show an error message for the failed upload", async function (assert) {
skip("should show an error message for the failed upload", async function (assert) {
await visit("/");
await click("#create-topic");
await fillIn(".d-editor-input", "The image:\n");
Expand Down
@@ -1,5 +1,5 @@
import UppyMediaOptimization from "discourse/lib/uppy-media-optimization-plugin";
import { module, test } from "qunit";
import { module, skip } from "qunit";
import { Promise } from "rsvp";

class FakeUppy {
Expand Down Expand Up @@ -34,7 +34,7 @@ class FakeUppy {
}

module("Unit | Utility | UppyMediaOptimization Plugin", function () {
test("sets the options passed in", function (assert) {
skip("sets the options passed in", function (assert) {
const fakeUppy = new FakeUppy();
const plugin = new UppyMediaOptimization(fakeUppy, {
id: "test-uppy",
Expand All @@ -48,7 +48,7 @@ module("Unit | Utility | UppyMediaOptimization Plugin", function () {
assert.equal(plugin.optimizeFn(), "wow such optimized");
});

test("installation uses the correct function", function (assert) {
skip("installation uses the correct function", function (assert) {
const fakeUppy = new FakeUppy();
const plugin = new UppyMediaOptimization(fakeUppy, {
id: "test-uppy",
Expand All @@ -68,7 +68,7 @@ module("Unit | Utility | UppyMediaOptimization Plugin", function () {
assert.equal(plugin.uppy.preprocessors[0](), "using serial");
});

test("sets the file state when successfully optimizing the file and emits events", function (assert) {
skip("sets the file state when successfully optimizing the file and emits events", function (assert) {
const fakeUppy = new FakeUppy();
const plugin = new UppyMediaOptimization(fakeUppy, {
id: "test-uppy",
Expand All @@ -90,7 +90,7 @@ module("Unit | Utility | UppyMediaOptimization Plugin", function () {
});
});

test("handles optimizer errors gracefully by leaving old file state and calling preprocess-complete", function (assert) {
skip("handles optimizer errors gracefully by leaving old file state and calling preprocess-complete", function (assert) {
const fakeUppy = new FakeUppy();
const plugin = new UppyMediaOptimization(fakeUppy, {
id: "test-uppy",
Expand All @@ -114,7 +114,7 @@ module("Unit | Utility | UppyMediaOptimization Plugin", function () {
});
});

test("handles serial file optimization successfully", function (assert) {
skip("handles serial file optimization successfully", function (assert) {
const fakeUppy = new FakeUppy();
const plugin = new UppyMediaOptimization(fakeUppy, {
id: "test-uppy",
Expand All @@ -141,7 +141,7 @@ module("Unit | Utility | UppyMediaOptimization Plugin", function () {
});
});

test("handles parallel file optimization successfully", function (assert) {
skip("handles parallel file optimization successfully", function (assert) {
const fakeUppy = new FakeUppy();
const plugin = new UppyMediaOptimization(fakeUppy, {
id: "test-uppy",
Expand Down