The two tests are almost identical, but one key difference stands out:
- In the first test:
- A
Tab.SubscriptionsTab
(subscriptions tab) is used.
- A
- In the second test:
- The
Tab.SubscriptionsTab
is replaced by aTab.HumourTab
(humor tab).
- The
This impacts two specific areas:
- When creating the tabs in the
tabs
list:- The first test adds
subscriptionsTab
. - The second test adds
humourTab
.
- The first test adds
- During reading and assertions:
- The first test checks the data of
subscriptionsTabFromReturnedJson
. - The second test checks the data of
humourTabFromReturnedJson
.
- The first test checks the data of
👉 Possible consequences:
- If
Tab.HumourTab
did not exist before, this suggests a feature evolution, adding a new tab related to humor. - The change could also reflect a modification in the saved JSON structure and the order of tabs in the application.
đź’ˇ Point of vigilance: Ensure that the JSON parsing correctly handles this new type of tab, especially if the logic depends on specific classes (such as the "from" in Tab.from(JsonObject)
).
Les deux tests sont quasiment identiques, mais une différence clé ressort :
- Dans le premier test :
- On utilise une
Tab.SubscriptionsTab
(onglet pour les abonnements).
- On utilise une
- Dans le second test :
- La
Tab.SubscriptionsTab
est remplacée par uneTab.HumourTab
(onglet pour l'humour).
- La
Cela impacte deux endroits précis :
- Lors de la création des onglets dans la liste
tabs
:- Le premier test ajoute
subscriptionsTab
. - Le second test ajoute
humourTab
.
- Le premier test ajoute
- Lors de la lecture et des assertions :
- Le premier test vérifie les données de
subscriptionsTabFromReturnedJson
. - Le second test vérifie celles de
humourTabFromReturnedJson
.
- Le premier test vérifie les données de
👉 Conséquences possibles :
- Si
Tab.HumourTab
n'existait pas auparavant, cela suggère une évolution de la fonctionnalité, ajoutant un nouvel onglet lié à l'humour. - Le changement pourrait aussi refléter une modification dans la structure JSON sauvegardée et l'ordre des onglets dans l'application.
💡 Point de vigilance : Assurez-vous que le parsing JSON gère bien ce nouveau type d'onglet, surtout si la logique dépend des classes spécifiques (comme le "from" dans Tab.from(JsonObject)
).