Skip to content

Commit

Permalink
(PC-32604) fix(e2e): v1.312.7 (#7072)
Browse files Browse the repository at this point in the history
* (PC-32604) fix(e2e): add hybrid playlist check, replace ids by wording

* fix(e2e): update deletion section and refactor subflow

* refactor(e2e): remove condition in profile deletion subflow

* fix(e2e): create cloud commands for booking flows + update test N-1 cinema
  • Loading branch information
AxelRENAULT92 authored Oct 29, 2024
1 parent 56dd882 commit f09c87a
Show file tree
Hide file tree
Showing 12 changed files with 122 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@ tags:
- runFlow: subFolder/profil/SocialNetwork.yml

- runFlow: subFolder/profil/DeletionReactivation.yml
- runFlow: subFolder/GoToProfileFromTabBar.yml
- runFlow: subFolder/auth/LoginAndReactivation.yml
- runFlow: subFolder/GoToProfileFromTabBar.yml
- runFlow: subFolder/auth/LogoutFromProfile.yml
12 changes: 11 additions & 1 deletion .maestro/testsV2/SearchAndBookCinemaOffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ tags:
- local
- cloud
---
- runFlow: subFolder/LaunchApp.yml
- runFlow:
when:
true: ${MAESTRO_RUN_CLOUD_COMMANDS == 'false'}
commands:
- runFlow: subFolder/LaunchApp.yml

- runFlow:
when:
true: ${MAESTRO_RUN_CLOUD_COMMANDS}
commands:
- runFlow: subFolder/LaunchAppWithPermissions.yml

- runFlow: subFolder/cookies/AcceptCookies.yml

Expand Down
13 changes: 12 additions & 1 deletion .maestro/testsV2/SearchAndBookDuoOffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ tags:
- local
- cloud
---
- runFlow: subFolder/LaunchApp.yml
- runFlow:
when:
true: ${MAESTRO_RUN_CLOUD_COMMANDS == 'false'}
commands:
- runFlow: subFolder/LaunchApp.yml

- runFlow:
when:
true: ${MAESTRO_RUN_CLOUD_COMMANDS}
commands:
- runFlow: subFolder/LaunchAppWithPermissions.yml

- runFlow: subFolder/cookies/AcceptCookies.yml

- runFlow: subFolder/tutorial/onboarding/Onboard18.yml
Expand Down
10 changes: 10 additions & 0 deletions .maestro/testsV2/subFolder/LaunchAppWithPermissions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
appId: ${MAESTRO_APP_ID}
---
- launchApp:
appId: ${MAESTRO_APP_ID}
clearState: true
permissions:
all: allow
location: deny

- waitForAnimationToEnd
17 changes: 13 additions & 4 deletions .maestro/testsV2/subFolder/booking/BookCinemaOffer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
appId: ${MAESTRO_APP_ID}
---
- assertVisible: 'Rechercher'
- runFlow: ../../subFolder/cloud/commands/SetLocalizationToEverywhere.yml
- swipe:
from:
text: 'Les offres'
Expand Down Expand Up @@ -49,7 +50,7 @@ appId: ${MAESTRO_APP_ID}
- pressKey: back
- scroll
- tapOn:
text: 'Séances de cinéma'
text: "Films à l'affiche"
index: 1
- swipe:
from:
Expand All @@ -70,11 +71,19 @@ appId: ${MAESTRO_APP_ID}
id: 'movie-calendar-day'
index: 3

- runFlow:
when:
visible: "Prochaine séance\_:"
commands:
tapOn:
enabled: true
below:
text: "Prochaine séance\_:"

- tapOn:
label: 'Sélection de la 1ère date disponible'
enabled: true
above:
text: .*€
below:
id: VenuePreviewImage

- runFlow: #Si différentes gamme de prix pour l'offre
when:
Expand Down
19 changes: 14 additions & 5 deletions .maestro/testsV2/subFolder/booking/BookDuoOffer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
appId: ${MAESTRO_APP_ID}
---
- assertVisible: 'Rechercher'
- runFlow: ../../subFolder/cloud/commands/SetLocalizationToEverywhere.yml
- swipe:
from:
text: 'Les offres'
Expand Down Expand Up @@ -37,7 +38,7 @@ appId: ${MAESTRO_APP_ID}
- pressKey: back
- scroll
- tapOn:
text: 'Séances de cinéma'
text: "Films à l'affiche"
index: 1
- swipe:
from:
Expand All @@ -57,7 +58,7 @@ appId: ${MAESTRO_APP_ID}
- pressKey: back
- scroll
- tapOn:
text: 'Séances de cinéma'
text: "Films à l'affiche"
index: 1
- swipe:
from:
Expand All @@ -78,11 +79,19 @@ appId: ${MAESTRO_APP_ID}
id: 'movie-calendar-day'
index: 2

- runFlow:
when:
visible: "Prochaine séance\_:"
commands:
tapOn:
enabled: true
below:
text: "Prochaine séance\_:"

- tapOn:
label: 'Sélection de la 1ère date disponible'
enabled: true
above:
text: .*€
below:
id: VenuePreviewImage

- runFlow: #Si différentes gamme de prix pour l'offre
when:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
appId: ${MAESTRO_APP_ID}
---
- runFlow:
when:
visible: "Ma position"
commands:
- tapOn: "Ma position"
- tapOn: "Choisir une localisation"
- inputText: "Paris"
- hideKeyboard
- tapOn: "Paris0Paris"
- tapOn: "Valider la localisation"
16 changes: 6 additions & 10 deletions .maestro/testsV2/subFolder/home/OpenActivationModuleFromHome.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
appId: ${MAESTRO_APP_ID}
---
- assertVisible: "Bienvenue\_!"
- runFlow: # Si affichage de la Home legacy
- runFlow: # Si affichage de la Home sans player
when:
visible:
id: 'module-background'
visible: "Playlist hybride"
commands:
- assertVisible: 'Débloque ton crédit'
- tapOn:
id: 'module-background'
- runFlow: # Si affichage de la Home avec player vidéo
- tapOn: "Débloque ton crédit"
- runFlow: # Si affichage de la Home avec player
when:
visible:
id: 'intersectionObserver'
commands:
- scroll
- assertVisible: 'Débloque ton crédit'
- tapOn:
id: 'systemBanner'
- tapOn: "Débloque ton crédit"

- assertVisible: "Inscription"
- assertVisible: 'Crée-toi un compte'
7 changes: 7 additions & 0 deletions .maestro/testsV2/subFolder/profil/DeletionNotAllowed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appId: ${MAESTRO_APP_ID}
---
- assertVisible: "Nous ne pouvons pas encore supprimer ton compte"
- tapOn: "Nous ne pouvons pas encore supprimer ton compte"
- assertVisible: "Retourner sur mon profil"
- assertVisible: "Désactiver mes notifications"
- tapOn: "Revenir en arrière"
46 changes: 31 additions & 15 deletions .maestro/testsV2/subFolder/profil/DeletionReactivation.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,42 @@
appId: ${MAESTRO_APP_ID}
---
- tapOn:
text: 'Informations personnelles'
index: 1
- tapOn: 'Informations personnelles'

- assertVisible: 'Prénom et nom'
- assertVisible: 'Adresse e-mail'
- assertVisible: 'Numéro de téléphone'
- assertVisible: 'Mot de passe'
- tapOn:
text: 'Supprimer mon compte'
index: 1
- tapOn: 'Supprimer mon compte'

- assertVisible: "Pourquoi souhaites-tu supprimer ton compte\_?"
- tapOn:
text: "Je n’utilise plus l’application"
index: 1

- assertVisible: "Veux-tu vraiment supprimer ton compte\_?"
- tapOn: 'Supprimer mon compte'
- tapOn: "J’aimerais créer un compte avec une adresse e-mail différente"

- assertVisible: "Modifie ton adresse e-mail sur ce compte"
- tapOn: "J’ai compris"
- assertVisible: "Modifier mon e-mail"
- assertVisible: "Valider la demande de modification de mon e-mail"
- tapOn: "Revenir en arrière"

- tapOn: "Je n’utilise plus l’application"
- runFlow: ./DeletionNotAllowed.yml

- tapOn: "Je n’ai plus de crédit ou très peu de crédit restant"
- runFlow: ./DeletionNotAllowed.yml

- tapOn: "Je souhaite supprimer mes données personnelles"
- runFlow: ./DeletionNotAllowed.yml

- scrollUntilVisible:
element: "Autre"

- tapOn: "Je pense que quelqu’un d’autre a accès à mon compte"
- assertVisible: "Sécurise ton compte"
- assertVisible: "Suspendre mon compte"
- assertVisible: "Ne pas sécuriser mon compte"
- tapOn: "Revenir en arrière"

- assertVisible: 'Ton compte a été désactivé'
- assertVisible: "Tu as 60 jours pour changer d’avis. Tu pourras facilement réactiver\
\ ton compte en te connectant."
- tapOn: 'Retourner à l’accueil'
- tapOn: "Autre"
- assertVisible: "Contacte le support"
- assertVisible: "Contacter le support"
- tapOn: "Retourner au profil"
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ appId: ${MAESTRO_APP_ID}
- assertVisible: 'Rechercher'
- tapOn: 'Cinéma'

- tapOn: "Films à l'affiche"

# TODO(e2e): Attendre que "Catégories soit check"
- tapOn: 'Catégories'

- assertVisible: 'Cinéma'
- assertVisible: "Films à l'affiche"

- tapOn: 'Rechercher'

Expand Down
4 changes: 3 additions & 1 deletion .maestro/testsV2/subFolder/search/SearchBookableDuoOffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ appId: ${MAESTRO_APP_ID}
- assertVisible: 'Rechercher'
- tapOn: 'Cinéma'

- tapOn: "Films à l'affiche"

# TODO(e2e): Attendre que "Catégories soit check"
- tapOn: 'Catégories'

- assertVisible: 'Cinéma'
- assertVisible: "Films à l'affiche"

- tapOn: 'Rechercher'
- tapOn:
Expand Down

0 comments on commit f09c87a

Please sign in to comment.