Skip to content

Commit

Permalink
refacto: do not run tests twice per push + fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rdubigny committed May 3, 2024
1 parent 693449e commit 87518c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ name: CI

on:
push:
pull_request:
branches:
- "**"
- "!master"
workflow_dispatch:

jobs:
Expand Down
8 changes: 4 additions & 4 deletions e2e/features/connexion.feature
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#language: fr
Fonctionnalité: Connexion de [email protected]
Scénario: Connexion d'un utilisateur

Scénario: Connexion d'un utilisateur
Etant donné que je navigue sur la page
Alors je vois "Bonjour monde !"
Quand je clique sur le bouton MonComptePro

Quand je me connecte en tant que user@yopmail.com sur moncomptepro
Et je vois "Votre organisation de rattachement" sur moncomptepro
Et je click sur "Continuer" sur moncomptepro
Et je clique sur "Continuer" sur moncomptepro

Alors je suis redirigé sur "/"
Et je vois "Information utilisateur"
Et je vois "Information utilisateur"
Et je vois "[email protected]"
2 changes: 1 addition & 1 deletion e2e/features/connexion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ When("je vois {string} sur moncomptepro", (_text: string) => {
});
});

When("je click sur {string} sur moncomptepro", (_text: string) => {
When("je clique sur {string} sur moncomptepro", (_text: string) => {
cy.origin(Cypress.env("MCP_PROVIDER"), { args: _text }, (text) => {
cy.contains(text).click();
});
Expand Down

0 comments on commit 87518c2

Please sign in to comment.