Harmonize capitilisation on Access tokens page

This commit is contained in:
Henriette Darge
2026-02-02 08:24:52 +01:00
parent 9d57c5889f
commit c9adab3d2a
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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"
+8 -8
View File
@@ -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