From 984b4ebd7266793812380c9e75dd3d7376dca392 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 12 Jun 2020 23:00:50 +0200 Subject: [PATCH] add: non-bogus m-test04 content --- m-test04.robot | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/m-test04.robot b/m-test04.robot index 89bc064..470e424 100644 --- a/m-test04.robot +++ b/m-test04.robot @@ -6,12 +6,27 @@ ${URL} https://git.dotya.ml/ ${BROWSER} chrome ${DELAY} 0.2 +${BURGER_MENU} //*[@id="navbar-expand-toggle"] +${BURGER_MENU_SIGN_IN} //*[@id="navbar"]/div[2]/a[2] +${USERNAME_FIELD} //*[@id="user_name"] +${SIGN_IN_BUTTON} //form/div[4]/button[1] + *** Keywords *** Screenshot page Capture Page Screenshot +Input Username + [Arguments] ${USERNAME_FIELD} ${USERNAME} + Input Text ${USERNAME_FIELD} ${USERNAME} + +Sign In page + Location Should Be https://git.dotya.ml/user/login?redirect_to=%2f + +Login Should Have Failed + Title Should Be Sign In - dotya.ml Gitea Service + *** Test Cases *** -open homepage (mobile) +attempt login without password (mobile) # 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 +42,22 @@ open homepage (mobile) Screenshot page Log Location + Click Element ${BURGER_MENU} + Sleep ${DELAY} + Screenshot page + Click Element ${BURGER_MENU_SIGN_IN} + Screenshot page + Log Location + Sign In page + + Input Username ${USERNAME_FIELD} dat_test_username + Screenshot page + + Click Element ${SIGN_IN_BUTTON} + Sleep ${DELAY} + Screenshot page + Log Location + Login Should Have Failed + Post-conditions Close Browser