Browse Source

update PageLogin

vdiez-devweb 1 year ago
parent
commit
afb4734ae7
1 changed files with 15 additions and 1 deletions
  1. 15 1
      Resources/Page Object/PageLogin.resource

+ 15 - 1
Resources/Page Object/PageLogin.resource

@@ -45,4 +45,18 @@ Vérifier Login KO - champ pwd vide
     Should Be Equal As Strings    ${Current_Page_Url}    https://practice.expandtesting.com/notes/app/login
     Wait Until Element Is Visible    ${MESSAGE_PWDREQUIRED_LOCATOR}
     ${Text_message_alerte}=    Get Text    ${MESSAGE_PWDREQUIRED_LOCATOR}
-    Should Be Equal As Strings     ${Text_message_alerte}    Password is required    ignorecase=true
+    Should Be Equal As Strings     ${Text_message_alerte}    Password is required    ignorecase=true
+
+Vérifier Login KO - pwd lenght KO
+    ${Current_Page_Url}=    Get Location
+    Should Be Equal As Strings    ${Current_Page_Url}    https://practice.expandtesting.com/notes/app/login
+    Wait Until Element Is Visible    ${MESSAGE_PWDREQUIRED_LOCATOR}
+    ${Text_message_alerte}=    Get Text    ${MESSAGE_PWDREQUIRED_LOCATOR}
+    Should Be Equal As Strings     ${Text_message_alerte}    Password should be between 6 and 30 characters    ignorecase=true
+
+Vérifier Login KO - format email invalide
+    ${Current_Page_Url}=    Get Location
+    Should Be Equal As Strings    ${Current_Page_Url}    https://practice.expandtesting.com/notes/app/login
+    Wait Until Element Is Visible    ${MESSAGE_EMAILFORMAT_LOCATOR}
+    ${Text_message_alerte}=    Get Text    ${MESSAGE_EMAILFORMAT_LOCATOR}
+    Should Be Equal As Strings     ${Text_message_alerte}    Email address is invalid    ignorecase=true