Skip to content
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

(PC-34581) chore(e2e): adapt Android script for IOS support #7699

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

arenault-pass
Copy link
Contributor

@arenault-pass arenault-pass commented Feb 17, 2025

Link to JIRA ticket: https://passculture.atlassian.net/browse/PC-34581

Flakiness

If I had to re-run tests in the CI due to flakiness, I add the incident [on Notion][2]

Checklist

I have:

  • Made sure my feature is working on web.
  • Made sure my feature is working on mobile (depending on relevance : real or virtual devices)
  • Written unit tests native (and web when implementation is different) for my feature.
  • Added a screenshot for UI tickets or deleted the screenshot section if no UI change
  • If my PR is a bugfix, I add the link of the "résolution de problème sur le bug" [on Notion][1]
  • I am aware of all the best practices and respected them.

Notable Changes for iOS Compatibility

  • Localisation : par défaut "France Entière" sur Android, "Géolocalisé" sur IOS sans accord préalable (à investiguer)
  • Suggestion dans la modale de localisation (wording pas le même pour le choix de la ville)
  • Entrée catégorielle dans la search (Cinéma, Musique etc.. --> Catégorie cinéma etc..)
  • SearchResult : les résultats ne sont pas vu de la même façon par Maestro (Offre One piece de la catégorie cinéma)
  • Page Offre : CTA spécifique à la plateforme (iMessage) + (cas des booking offres numériques pas possible sur IOS)
  • Pop-up native IOS : review store(durant le booking) et tracking (à l'onboarding)

@arenault-pass arenault-pass marked this pull request as ready for review February 17, 2025 12:25
- runFlow: subFolder/venue/AccessVenueMapFromSearch.yml
- runFlow: subFolder/venue/VerifyVenueMap.yml
- runFlow: subFolder/cloud/commands/SetLocalizationToEverywhere.yml

- runFlow: subFolder/venue/AccessVenueMapFromSearchResult.yml
- runFlow: subFolder/venue/VerifyVenueMap.yml
# - runFlow: subFolder/venue/VerifyVenueMap.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Un oubli ?

@@ -5,4 +5,4 @@ appId: ${MAESTRO_APP_ID}
text: 'République Française - Liberté Égalité Fraternité'
- tapOn: 'Déconnexion'

- assertVisible: 'Identifie-toi pour découvrir des offres'
- assertVisible: 'Identifie-toi pour découvrir des offres.*'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qu'est-ce qui fait que sur iOS on doit faire ça ? *

---
- runFlow:
when:
platform: iOS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Du coup c'est iOS spécifique ? Est-ce que ça vaut le coup de distinguer dans le nom ?

when:
platform: iOS
commands:
- tapOn: "Ouvrir la modale de localisation depuis le widget"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS récupère les accessiblity label plutot que les noms visibles ? Tu as pu voir des différentes avec Maestro studio ?

Comment on lines +29 to +31
text: "Supprimer.*"
index: 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ça fonctionne pas sur Android ça ? Parce que sinon c'est le même script

Comment on lines +5 to +10
- runFlow: # Si affichage de la Home sans player
when:
platform: iOS
visible: "Playlist hybride"
commands:
- assertVisible: "Mise à jour requise.*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est un teste en lien avec la bannière de mise à jour, en théorie tu ne devrais pas l'avoir dans tes tests E2E il faudrait se baser sur autre chose pour tester le cas dans player vidéo ?

when:
platform: iOS
commands:
- tapOn: 'Notifications'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ajouter index: 1 ne fonctionne pas en iOS ? Ça permettrait d'éviter la duplication iOS vs Android

Comment on lines +6 to +17
- runFlow:
when:
platform: Android
commands:
- pressKey: back

- runFlow:
when:
platform: iOS
commands:
- tapOn: "Revenir en arrière"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu as créer un flow spécifique pour ça mais tu ne l'utilise pas ?

Comment on lines +21 to +31
- runFlow:
when:
platform: Android
commands:
- pressKey: back

- runFlow:
when:
platform: iOS
commands:
- tapOn: "Revenir en arrière"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem ?

when:
platform: iOS
commands:
- tapOn: "Paris Paris"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi il y a deux fois "Paris" ?

@lbeneston-pass
Copy link
Contributor

Dans cette PR il faudrait que tu ajoutes (si possible) dans la description, les différences entre Android et iOS que tu as remarqué car ça pourrait servir pour plus tard, si on essayer de comprendre les différentes adaptations que tu as du mettre en place

@arenault-pass arenault-pass merged commit 76d8eb1 into master Feb 18, 2025
54 checks passed
@arenault-pass arenault-pass deleted the PC-34581 branch February 18, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants