From d9532970499a1250cd70aab6a11c9a163a38b6a3 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Fri, 12 Jul 2024 18:29:17 +0200 Subject: [PATCH] DEV: Fix test from previous PR --- test/acceptance/discord-widget-test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/acceptance/discord-widget-test.js b/test/acceptance/discord-widget-test.js index 29c71ec..8d66057 100644 --- a/test/acceptance/discord-widget-test.js +++ b/test/acceptance/discord-widget-test.js @@ -1,6 +1,10 @@ import { click, visit } from "@ember/test-helpers"; import { test } from "qunit"; -import { acceptance, visible } from "discourse/tests/helpers/qunit-helpers"; +import { + acceptance, + visible, + exists, +} from "discourse/tests/helpers/qunit-helpers"; import I18n from "discourse-i18n"; acceptance("Discord Widget - Default", function (needs) { @@ -27,7 +31,7 @@ acceptance("Discord Widget - Default", function (needs) { assert.ok(visible(".discord-widget-content"), "The panel is visible"); assert.ok( - visible(".discord-widget-content iframe"), + exists(".discord-widget-content iframe"), "The iframe is visible" ); });