Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix incorrect CSS selectors in DiscoveryTopics test assertions (#38550)

Isaac Janzen9ffc364a41e7
diff --git a/frontend/discourse/tests/integration/components/discovery/topics-test.gjs b/frontend/discourse/tests/integration/components/discovery/topics-test.gjs
index 1aef8f1eaf7..e187f455c3d 100644
--- a/frontend/discourse/tests/integration/components/discovery/topics-test.gjs
+++ b/frontend/discourse/tests/integration/components/discovery/topics-test.gjs
@@ -41,7 +41,7 @@ module("Integration | Component | DiscoveryTopics", function (hooks) {
await render(<template><DiscoveryTopics @model={{model}} /></template>);
- assert.dom(".empty-state--empty-topic-filter").doesNotExist();
+ assert.dom(".empty-state__container.--empty-topic-filter").doesNotExist();
});
test("does not show EmptyTopicFilter when topics exist", async function (assert) {
@@ -52,7 +52,7 @@ module("Integration | Component | DiscoveryTopics", function (hooks) {
await render(<template><DiscoveryTopics @model={{model}} /></template>);
- assert.dom(".empty-state--empty-topic-filter").doesNotExist();
+ assert.dom(".empty-state__container.--empty-topic-filter").doesNotExist();
});
test("does not show EmptyTopicFilter for anonymous users", async function (assert) {
@@ -66,7 +66,7 @@ module("Integration | Component | DiscoveryTopics", function (hooks) {
await render(<template><DiscoveryTopics @model={{model}} /></template>);
- assert.dom(".empty-state--empty-topic-filter").doesNotExist();
+ assert.dom(".empty-state__container.--empty-topic-filter").doesNotExist();
});
});
});