From bb4bdec3c8ad0a81ebe2c836c8056e79c7e927ec Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 6 Jan 2025 18:46:08 +0000 Subject: [PATCH] update classes --- assets/stylesheets/common/docs.scss | 2 +- assets/stylesheets/mobile/docs.scss | 2 +- spec/system/docs_index_spec.rb | 4 ++-- test/javascripts/acceptance/docs-test.js | 5 +---- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/assets/stylesheets/common/docs.scss b/assets/stylesheets/common/docs.scss index c261b71..af9bead 100644 --- a/assets/stylesheets/common/docs.scss +++ b/assets/stylesheets/common/docs.scss @@ -153,7 +153,7 @@ font-weight: normal; font-size: $font-down-1; } - .docs-topic-link { + .raw-topic-link { color: var(--tertiary); cursor: pointer; display: inline-block; diff --git a/assets/stylesheets/mobile/docs.scss b/assets/stylesheets/mobile/docs.scss index 6d27b71..4686abd 100644 --- a/assets/stylesheets/mobile/docs.scss +++ b/assets/stylesheets/mobile/docs.scss @@ -25,7 +25,7 @@ .docs-topic-list { flex-basis: 100%; } - .docs-topic-link { + .raw-topic-link { padding-right: 0.25em; } .docs-topic { diff --git a/spec/system/docs_index_spec.rb b/spec/system/docs_index_spec.rb index 057ae20..f25ad2a 100644 --- a/spec/system/docs_index_spec.rb +++ b/spec/system/docs_index_spec.rb @@ -16,8 +16,8 @@ describe "Discourse Docs | Index", type: :system do it "does not error when showing the index" do visit("/docs") - expect(page).to have_css(".docs-topic-link", text: topic_1.title) - expect(page).to have_css(".docs-topic-link", text: topic_2.title) + expect(page).to have_css(".raw-topic-link", text: topic_1.title) + expect(page).to have_css(".raw-topic-link", text: topic_2.title) end describe "topic excerpts" do diff --git a/test/javascripts/acceptance/docs-test.js b/test/javascripts/acceptance/docs-test.js index 9796909..4b4165f 100644 --- a/test/javascripts/acceptance/docs-test.js +++ b/test/javascripts/acceptance/docs-test.js @@ -57,10 +57,7 @@ acceptance("Docs", function (needs) { assert.equal(query(".docs-category .docs-item-count").innerText, "119"); assert.equal(query(".docs-tag .docs-item-id").innerText, "something"); assert.equal(query(".docs-tag .docs-item-count").innerText, "74"); - assert.equal( - query(".docs-topic-link").innerText.trim(), - "Importing from Software X" - ); + assert.dom(".raw-topic-link").hasText("Importing from Software X"); }); test("selecting a category", async function (assert) {