-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] [Tests - E2E] Utilisation de Playwright plutôt que Cypress #3037
Draft
emilschn
wants to merge
36
commits into
develop
Choose a base branch
from
feature/3036-playwright
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emilschn
changed the title
[Tests - E2E] Utilisation de Playwright plutôt que Cypress
[WIP] [Tests - E2E] Utilisation de Playwright plutôt que Cypress
Sep 13, 2024
emilschn
force-pushed
the
feature/3036-playwright
branch
2 times, most recently
from
September 20, 2024 13:34
c679542
to
a728196
Compare
emilschn
force-pushed
the
feature/3036-playwright
branch
from
September 27, 2024 13:05
8671d7f
to
0de1f2b
Compare
Quality Gate failedFailed conditions |
emilschn
force-pushed
the
feature/3036-playwright
branch
from
November 6, 2024 15:54
b511624
to
8bbe8fa
Compare
Quality Gate failedFailed conditions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket
#3036
Description
Test d'utilisation de Playwright à la place de Cypress pour les tests e2e.
https://playwright.dev/docs/codegen#recording-a-test
Objectif : avoir un deuxième job non-bloquant qui fait les tests e2e dans la CI.
Attention
Dans l'état des lieux actuels, la PR n'est pas fonctionnelle.
Méthodes testées
J'ai testé ces méthodes sans que ce ne soit fonctionnel pour l'instant
La méthode par défaut
C'est celle qui est commentée en bas du fichier npx playwright test
Je n'ai pas réussi à trouver d'URL accessible à appeler pour faire le test, malgré mes recherches
La méthode Dialog
MTES-MCT/dialog@42da526
Trouvé par Saidi
C'est la méthode qui est dans le dev actuel : tout faire passer par docker, via les commandes Make
C'est pas loin de fonctionner, mais la CI rencontre une erreur 500 au moment de l'appel
Changements apportés
playwright.config.ts
Makefile
pour avoir des commandes accessibles via la CIplaywright.yml
front.spec.ts
Pré-requis
Avec tout ça, je ne sais plus si il est nécessaire de réinstaller quelque chose en local
J'avais commencé par ça :
npm init playwright@latest
Je pense qu'il y a une partie installation locale dedans...
Mais on il ne faudrait pas que ça écrase l'existant...
A voir ce que ça fait :)
Pour tester en local, après installation :
npx playwright test
Tests