chore: don't wrap "en test" tag/breadcrumb

This commit is contained in:
Colin Darie 2024-07-03 14:09:08 +02:00
parent 029db3b1cb
commit 28e8c786fa
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2 changed files with 6 additions and 12 deletions

View file

@ -10,7 +10,7 @@ fr:
since: "depuis le %{date}"
closed: "Close"
published: "Publiée"
draft: "En test"
draft: "En test"
more_info_on_test: "Pour plus dinformation sur la phase de test"
go_to_FAQ: "consulter la FAQ"
url_FAQ: "/faq#accordion-administrateur-2"

View file

@ -16,17 +16,11 @@ describe 'administrateurs/procedures/show', type: :view do
render
end
describe 'publish button is visible' do
it { expect(rendered).to have_css('#publish-procedure-link') }
it { expect(rendered).not_to have_css('#close-procedure-link') }
end
describe 'procedure path is not customized' do
it { expect(rendered).to have_content('En test') }
end
describe 'archive button' do
it { expect(rendered).not_to have_css('#archive-procedure') }
it "render content" do
expect(rendered).to have_css('#publish-procedure-link')
expect(rendered).not_to have_css('#close-procedure-link')
expect(rendered).to have_content('En test')
expect(rendered).not_to have_css('#archive-procedure')
end
end
end