@@ -23,21 +23,15 @@ describe("delete TOTP connexion", () => {
23
23
24
24
cy . contains ( "L’application d’authentification a bien été supprimée." ) ;
25
25
26
- cy . mailslurp ( )
27
- // use inbox id and a timeout of 30 seconds
28
- . then ( ( mailslurp ) =>
29
- mailslurp . waitForLatestEmail (
30
- "eab4ab97-875d-4ec7-bdcc-04323948ee63" ,
31
- 60000 ,
32
- true ,
33
- ) ,
34
- )
35
- // check subject of deletion email
36
- . then ( ( email ) => {
37
- expect ( email . subject ) . to . include (
38
- "Suppression d'une application d'authentification à double facteur" ,
39
- ) ;
40
- } ) ;
26
+ cy . maildevGetLastMessage ( ) . then ( ( email ) => {
27
+ expect ( email . subject ) . to . equal (
28
+ "Suppression d'une application d'authentification à double facteur" ,
29
+ ) ;
30
+ cy . maildevVisitMessageById ( email . id ) ;
31
+ cy . contains (
32
+ "L'application a été supprimée comme étape de connexion à deux facteurs." ,
33
+ ) ;
34
+ } ) ;
41
35
} ) ;
42
36
43
37
it ( "should not be ask to sign with TOTP" , function ( ) {
@@ -57,21 +51,15 @@ describe("delete TOTP connexion", () => {
57
51
58
52
cy . contains ( "Désactiver la validation en deux étapes" ) . click ( ) ;
59
53
60
- cy . mailslurp ( )
61
- // use inbox id and a timeout of 30 seconds
62
- . then ( ( mailslurp ) =>
63
- mailslurp . waitForLatestEmail (
64
- "c9fabb94-9274-4ece-a3d0-54b1987c8588" ,
65
- 60000 ,
66
- true ,
67
- ) ,
68
- )
69
- // check subject of deletion email
70
- . then ( ( email ) => {
71
- expect ( email . subject ) . to . include (
72
- "Désactivation de la validation en deux étapes" ,
73
- ) ;
74
- } ) ;
54
+ cy . maildevGetLastMessage ( ) . then ( ( email ) => {
55
+ expect ( email . subject ) . to . equal (
56
+ "Désactivation de la validation en deux étapes" ,
57
+ ) ;
58
+ cy . maildevVisitMessageById ( email . id ) ;
59
+ cy . contains (
60
+ "Votre compte MonComptePro n'est plus protégé par la validation en deux" ,
61
+ ) ;
62
+ } ) ;
75
63
} ) ;
76
64
77
65
it ( "should not be ask to sign with TOTP" , function ( ) {
0 commit comments