batchCooking/apps/web/cypress/e2e/login-smoke.feature
Nicolas 99bb9fcfb2 test(web): feature Gherkin jetable pour valider le pipeline preprocessor
Étape 2 de l'expérimentation — un seul scénario minimal (remplir
email/password sur l'écran de connexion) pour vérifier que
addCucumberPreprocessorPlugin@22.2.0 + l'esbuild plugin fonctionnent
de bout en bout, pas juste au chargement. Steps volontairement
autonomes dans login-smoke.steps.ts (pas de fichier partagé) — tout
ce fichier est prévu pour être supprimé une fois validé.

cypress.config.ts : specPattern couvre maintenant *.cy.ts ET *.feature
en parallèle (le reste de la suite reste en .cy.ts classique pour
l'instant).

Testé en local jusqu'au mur GPU/Electron habituel de cet
environnement (chargement de la config + bundling esbuild passent,
pas d'ERR_REQUIRE_ESM) — la vraie exécution du scénario reste à
vérifier via la CI.
2026-08-19 12:55:44 +02:00

12 lines
623 B
Gherkin

Feature: Login screen (throwaway smoke test)
Just checking that Gherkin + Cypress actually work end to end with the
currently installed preprocessor version not meant to stay in the
suite long-term.
Scenario: A visitor can type their credentials into the login screen
Given I am not signed in
When I visit "/login"
And I fill in the "email" field with "alice@example.com"
And I fill in the "password" field with "correct-horse-battery-staple"
Then the "email" field should have the value "alice@example.com"
And the "password" field should have the value "correct-horse-battery-staple"