add: m-test02
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
surtur 2020-05-21 22:31:26 +02:00
parent fe9de98865
commit 6176c5f895
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -6,12 +6,19 @@ ${URL} https://git.dotya.ml/
${BROWSER} chrome
${DELAY} 0.2
${BURGER_MENU} //*[@id="navbar-expand-toggle"]
${LOGIN_BUTTON} //*[@id="navbar"]/div[2]/a[2]
${SIGN_IN} //body/div[2]/div[2]/div[2]/div/form/div[4]/button
*** Keywords ***
Screenshot page
Capture Page Screenshot
Login Should Have Failed
Title Should Be Sign In - dotya.ml Gitea Service
*** Test Cases ***
open homepage (mobile)
attempt login without creds
# based on Pixel 2 XL mobile browser declared resolution
${devicemetrics}= Create Dictionary width=${411} height=${823} pixelRatio=${2.0} userAgent=Mozilla/5.0 (Linux; Mobile; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36
${mobileemulation}= Create Dictionary deviceMetrics=${devicemetrics}
@ -27,5 +34,17 @@ open homepage (mobile)
Screenshot page
Log Location
Click Element ${BURGER_MENU}
Screenshot page
Click Element ${LOGIN_BUTTON}
Screenshot page
Log Location
Click Element ${SIGN_IN}
Screenshot page
Login Should Have Failed
Log Location
Post-conditions
Close Browser