Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit 568efb4

Browse files
authored
DEV: fix the mobile spec (#621)
In discourse/discourse#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.
1 parent 0f4a1fc commit 568efb4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/javascripts/acceptance/assign-disabled-test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { click, visit } from "@ember/test-helpers";
1+
import { visit } from "@ember/test-helpers";
22
import { test } from "qunit";
33
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
44

@@ -9,7 +9,6 @@ acceptance("Discourse Assign | Assign disabled mobile", function (needs) {
99

1010
test("Footer dropdown does not contain button", async function (assert) {
1111
await visit("/t/internationalization-localization/280");
12-
await click(".topic-footer-mobile-dropdown-trigger");
1312
assert.dom(".assign").doesNotExist();
1413
});
1514
});

0 commit comments

Comments
 (0)