Use the same texts on event links and graphs

Note we're delegating the `t` method because i18n-tasks doesn't detect
code like `ApplicationController.helpers.t` and so reports we aren't
using the `admin.stats.graph` translations.
This commit is contained in:
Javi Martín
2024-04-25 03:18:12 +02:00
parent f7e2d724dd
commit 328413373e
8 changed files with 24 additions and 15 deletions

View File

@@ -159,9 +159,9 @@ describe "Stats", :admin do
create(:user, :level_three)
visit admin_stats_path
click_link "level_3_user"
click_link "Level 3 users"
expect(page).to have_content "Level 3 User (1)"
expect(page).to have_content "Level 3 users (1)"
within("#graph") do
expect(page).to have_content Date.current.strftime("%Y-%m-%d")