DEV: Make the flaky keyboard nav test chrome-only (#25378)

This commit is contained in:
Jarek Radosz 2024-01-24 14:05:32 +01:00 committed by GitHub
parent ecb7fb0481
commit 070a8414ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@ import { test } from "qunit";
import DiscoveryFixtures from "discourse/tests/fixtures/discovery-fixtures"; import DiscoveryFixtures from "discourse/tests/fixtures/discovery-fixtures";
import { import {
acceptance, acceptance,
chromeTest,
exists, exists,
query, query,
} from "discourse/tests/helpers/qunit-helpers"; } from "discourse/tests/helpers/qunit-helpers";
@ -70,7 +71,8 @@ acceptance("Keyboard Shortcuts - Anonymous Users", function (needs) {
); );
}); });
test("j/k navigation skips hidden elements", async function (assert) { // FIXME: For reasons unknown this test if flaky on firefox
chromeTest("j/k navigation skips hidden elements", async function (assert) {
await visit("/t/internationalization-localization/280"); await visit("/t/internationalization-localization/280");
document.querySelector("#qunit-fixture").innerHTML = ` document.querySelector("#qunit-fixture").innerHTML = `