fix(web-tests): utilise le bon step Cucumber pour le lien d'import

Le lien « Importer cette recette » de SourceItemPreviewPanel est un
<Link> (donc un <a>), pas un <button> — le scénario utilisait "I click
the button ..." qui ne cible que button, d'où l'échec en CI
("Expected to find content: 'Importer cette recette' within the
selector: 'button' but never did"). Bascule vers le step générique "I
click the link ..." déjà présent dans common.steps.ts.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Nicolas 2026-08-20 17:00:33 +02:00
parent e4c8d910d4
commit 01eee1ae31

View file

@ -56,7 +56,7 @@ Feature: Browsing external recipe sources
When I visit "/recettes" When I visit "/recettes"
And I click the button "Sources" And I click the button "Sources"
And I click the source item "Fish Pie" And I click the source item "Fish Pie"
And I click the button "Importer cette recette" And I click the link "Importer cette recette"
Then the "recipe-name" field should have the value "Fish Pie" Then the "recipe-name" field should have the value "Fish Pie"
And the recipe should include the ingredient "Oignon" And the recipe should include the ingredient "Oignon"