DEV: fix the mobile spec (#621)

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.
This commit is contained in:
Régis Hanol 2024-12-12 19:24:20 +01:00 committed by GitHub
parent 0f4a1fcdd3
commit 568efb4f27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -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();
});
});