From 634e9204713656a0b610d715027d2a560c58552d Mon Sep 17 00:00:00 2001 From: zogstrip Date: Thu, 12 Dec 2024 19:15:47 +0100 Subject: [PATCH] DEV: fix the mobile spec In https://github.com/discourse/discourse/pull/30242, the topic footer buttons mobile dropdown can be replaced by the button if there's only one option. This fixes the spec that was clicking on the dropdown button before checking there was no assign option. --- test/javascripts/acceptance/assign-disabled-test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/javascripts/acceptance/assign-disabled-test.js b/test/javascripts/acceptance/assign-disabled-test.js index 03608be9..d379210e 100644 --- a/test/javascripts/acceptance/assign-disabled-test.js +++ b/test/javascripts/acceptance/assign-disabled-test.js @@ -1,4 +1,4 @@ -import { click, visit } from "@ember/test-helpers"; +import { visit } from "@ember/test-helpers"; import { test } from "qunit"; import { acceptance } from "discourse/tests/helpers/qunit-helpers"; @@ -9,7 +9,6 @@ acceptance("Discourse Assign | Assign disabled mobile", function (needs) { test("Footer dropdown does not contain button", async function (assert) { await visit("/t/internationalization-localization/280"); - await click(".topic-footer-mobile-dropdown-trigger"); assert.dom(".assign").doesNotExist(); }); });