@@ -35,14 +35,20 @@ MP: login on MP with provided credentials:
35
35
${is_login_page } = Run Keyword And Ignore Error Page Should Contain Element ${mp_user_name_field } timeout=10ms
36
36
Restore Automatic Screenshots on Failure
37
37
IF 'FAIL' in $is_login_page
38
- Delete All Cookies
39
38
TRY
40
39
LocalStorage Clear
41
40
EXCEPT
42
41
Log Failed to clear LocalStorage
43
42
END
43
+ Delete All Cookies
44
44
MP: go to URL: /
45
45
END
46
+ TRY
47
+ Wait For Load State
48
+ Wait For Load State domcontentloaded
49
+ EXCEPT
50
+ Log Page is not fully loaded
51
+ END
46
52
Wait Until Element Is Visible ${mp_user_name_field }
47
53
${email_value } = Convert To Lower Case ${email }
48
54
IF '+merchant+' in '${email_value } ' VAR ${password } ${default_secure_password }
@@ -51,13 +57,19 @@ MP: login on MP with provided credentials:
51
57
# workaround for the issue with deadlocks on concurrent login attempts
52
58
${is_5xx } = Click and return True if 5xx occurred: ${mp_login_button }
53
59
IF ${is_5xx }
54
- Delete All Cookies
55
60
TRY
56
61
LocalStorage Clear
57
62
EXCEPT
58
63
Log Failed to clear LocalStorage
59
64
END
65
+ Delete All Cookies
60
66
MP: go to URL: /
67
+ TRY
68
+ Wait For Load State
69
+ Wait For Load State domcontentloaded
70
+ EXCEPT
71
+ Log Page is not fully loaded
72
+ END
61
73
Wait Until Element Is Visible ${mp_user_name_field }
62
74
${email_value } = Convert To Lower Case ${email }
63
75
IF '+merchant+' in '${email_value } ' VAR ${password } ${default_secure_password }
@@ -66,21 +78,33 @@ MP: login on MP with provided credentials:
66
78
Click ${mp_login_button }
67
79
END
68
80
Disable Automatic Screenshots on Failure
69
- ${login_success } = Run Keyword And Ignore Error Wait Until Element Is Visible ${mp_user_menu_button } MP: Login failed! Retrying... timeout=5s
81
+ ${login_success } = Run Keyword And Ignore Error Wait Until Element Is Visible ${mp_user_menu_button } MP: Login failed! Retrying... timeout=15s
70
82
Restore Automatic Screenshots on Failure
71
83
IF 'FAIL' in $login_success
72
- Delete All Cookies
73
84
TRY
74
85
LocalStorage Clear
75
86
EXCEPT
76
87
Log Failed to clear LocalStorage
77
88
END
89
+ Delete All Cookies
78
90
MP: go to URL: /
91
+ TRY
92
+ Wait For Load State
93
+ Wait For Load State domcontentloaded
94
+ EXCEPT
95
+ Log Page is not fully loaded
96
+ END
79
97
Wait Until Element Is Visible ${mp_user_name_field }
80
98
Type Text ${mp_user_name_field } ${email }
81
99
Type Text ${mp_password_field } ${password }
82
100
Click ${mp_login_button }
83
101
END
102
+ TRY
103
+ Wait For Load State
104
+ Wait For Load State domcontentloaded
105
+ EXCEPT
106
+ Log Page is not fully loaded
107
+ END
84
108
Wait Until Element Is Visible ${mp_user_menu_button } MP: Login failed! timeout=15s
85
109
86
110
MP: login on MP with provided credentials and expect error:
0 commit comments