DEV: Fix JS tests to use default site settings (#332)

In preparation for core PR https://github.com/discourse/discourse/pull/18413
which changes JS to load default yml site settings, the
main one needing changes is that now the
allow_uncategorized_topics setting is false
by default, so we have to choose a category
first in many places.
This commit is contained in:
Martin Brennan 2022-10-10 15:21:34 +10:00 committed by GitHub
parent f1482d8724
commit c48a07b51f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ acceptance("Post event - composer", function (needs) {
test("composer event builder", async function (assert) {
await visit("/");
await click("#create-topic");
const categoryChooser = selectKit(".category-chooser");
await categoryChooser.expand();
await categoryChooser.selectRowByValue(2);
await click(".toolbar-popup-menu-options .dropdown-select-box-header");
await click(".toolbar-popup-menu-options *[data-value='insertEvent']");