Skip to content

Commit

Permalink
DEV: fix the mobile spec
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ZogStriP committed Dec 12, 2024
1 parent 0f4a1fc commit 634e920
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/javascripts/acceptance/assign-disabled-test.js
Original file line number Diff line number Diff line change
@@ -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";

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

0 comments on commit 634e920

Please sign in to comment.