display count before text in tabs
This commit is contained in:
parent
f55c6ee371
commit
55b80df29d
3 changed files with 7 additions and 7 deletions
|
@ -38,7 +38,7 @@
|
|||
badge: number_with_html_delimiter(@traites_count),
|
||||
notification: @has_termine_notifications)
|
||||
|
||||
= tab_item('tous les dossiers',
|
||||
= tab_item('au total',
|
||||
instructeur_procedure_path(@procedure, statut: 'tous'),
|
||||
active: @statut == 'tous',
|
||||
badge: number_with_html_delimiter(@tous_count))
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
- if notification
|
||||
%span.notifications{ 'aria-label': 'notifications' }
|
||||
= link_to(url) do
|
||||
= label
|
||||
- if badge.present?
|
||||
%span.badge= badge
|
||||
= label
|
||||
|
|
|
@ -216,11 +216,11 @@ feature 'Instructing a dossier:', js: true do
|
|||
|
||||
def test_statut_bar(a_suivre: 0, suivi: 0, traite: 0, tous_les_dossiers: 0, archive: 0)
|
||||
texts = [
|
||||
"à suivre #{a_suivre}",
|
||||
"suivi #{suivi}",
|
||||
"traité #{traite}",
|
||||
"tous les dossiers #{tous_les_dossiers}",
|
||||
"archivé #{archive}"
|
||||
"#{a_suivre} à suivre",
|
||||
"#{suivi} suivi",
|
||||
"#{traite} traité",
|
||||
"#{tous_les_dossiers} au total",
|
||||
"#{archive} archivé"
|
||||
]
|
||||
|
||||
texts.each { |text| expect(page).to have_text(text) }
|
||||
|
|
Loading…
Reference in a new issue