From c9adab3d2a162bc4e8f6c3bd5ce45018174ae03e Mon Sep 17 00:00:00 2001 From: Henriette Darge Date: Mon, 2 Feb 2026 08:24:52 +0100 Subject: [PATCH] Harmonize capitilisation on Access tokens page --- config/locales/en.yml | 4 ++-- spec/features/users/my/access_tokens_spec.rb | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index c0722f5e374..ca0ae0ce1b0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3113,7 +3113,7 @@ en: text_hint: "API tokens allow third-party applications to communicate with this OpenProject instance via REST APIs." static_token_name: "API token" disabled_text: "API tokens are not enabled by the administrator. Please contact your administrator to use this feature." - add_button: "API Token" + add_button: "API token" ical: blank_description: "To add an iCalendar token, subscribe to a new or existing calendar from within the Calendar module of a project. You must have the necessary permissions." blank_title: "No iCalendar token" @@ -3141,7 +3141,7 @@ en: removed: "OAuth client token successfully removed" unknown_integration: "Unknown" token/rss: - add_button: "RSS Token" + add_button: "RSS token" blank_description: "There is no RSS token yet. You can create one using the button below." blank_title: "No RSS token" title: "RSS" diff --git a/spec/features/users/my/access_tokens_spec.rb b/spec/features/users/my/access_tokens_spec.rb index 602aa54ebac..a3070f9e6cd 100644 --- a/spec/features/users/my/access_tokens_spec.rb +++ b/spec/features/users/my/access_tokens_spec.rb @@ -64,7 +64,7 @@ RSpec.describe "my access tokens", :js do expect(page).to have_no_content("API tokens are not enabled by the administrator.") within "#api-token-component" do - expect(page).to have_test_selector("api-token-add", text: "API Token") + expect(page).to have_test_selector("api-token-add", text: "API token") find_test_selector("api-token-add").click end @@ -86,7 +86,7 @@ RSpec.describe "my access tokens", :js do # multiple API tokens can be created within "#api-token-component" do - expect(page).to have_test_selector("api-token-add", text: "API Token") + expect(page).to have_test_selector("api-token-add", text: "API token") end # revoke API token @@ -106,7 +106,7 @@ RSpec.describe "my access tokens", :js do expect(page).to have_no_content("Testing Token") # API token can be created again - expect(page).to have_test_selector("api-token-add", text: "API Token") + expect(page).to have_test_selector("api-token-add", text: "API token") end end end @@ -119,19 +119,19 @@ RSpec.describe "my access tokens", :js do within "#rss-token-component" do expect(page).to have_content("RSS tokens are not enabled by the administrator.") - expect(page).not_to have_test_selector("rss-token-add", text: "RSS Token") + expect(page).not_to have_test_selector("rss-token-add", text: "RSS token") end end end context "when RSS access is enabled via global settings", with_settings: { feeds_enabled: true } do - it "in Access Tokens they can generate and revoke their RSS key" do + it "in Access tokens they can generate and revoke their RSS key" do visit my_access_tokens_path expect(page).to have_no_content("RSS tokens are not enabled by the administrator.") within "#rss-token-component" do - expect(page).to have_test_selector("rss-token-add", text: "RSS Token") + expect(page).to have_test_selector("rss-token-add", text: "RSS token") find_test_selector("rss-token-add").click end @@ -142,7 +142,7 @@ RSpec.describe "my access tokens", :js do # only one RSS token can be created within "#rss-token-component" do - expect(page).not_to have_test_selector("rss-token-add", text: "RSS Token") + expect(page).not_to have_test_selector("rss-token-add", text: "RSS token") end # revoke RSS token @@ -159,7 +159,7 @@ RSpec.describe "my access tokens", :js do # RSS token can be created again within "#rss-token-component" do - expect(page).to have_test_selector("rss-token-add", text: "RSS Token") + expect(page).to have_test_selector("rss-token-add", text: "RSS token") end end end