@@ -116,8 +116,8 @@ class TestMFALogin(BaseCase):
116
116
self .type(" #username" , " demo_user" )
117
117
self .type(" #password" , " secret_pass" )
118
118
self .enter_mfa_code(" #totpcode" , " GAXG2MTEOR3DMMDG" ) # 6-digit
119
- self .assert_element(" img#image1" )
120
119
self .assert_exact_text(" Welcome!" , " h1" )
120
+ self .assert_element(" img#image1" )
121
121
self .click(' a:contains("This Page")' )
122
122
self .save_screenshot_to_logs()
123
123
```
@@ -130,8 +130,8 @@ def test_mfa_login(sb):
130
130
sb.type(" #username" , " demo_user" )
131
131
sb.type(" #password" , " secret_pass" )
132
132
sb.enter_mfa_code(" #totpcode" , " GAXG2MTEOR3DMMDG" ) # 6-digit
133
- sb.assert_element(" img#image1" )
134
133
sb.assert_exact_text(" Welcome!" , " h1" )
134
+ sb.assert_element(" img#image1" )
135
135
sb.click(' a:contains("This Page")' )
136
136
sb.save_screenshot_to_logs()
137
137
```
@@ -146,8 +146,8 @@ Feature: SeleniumBase scenarios for the RealWorld App
146
146
When Type "demo_user" into "#username"
147
147
And Type "secret_pass" into "#password"
148
148
And Do MFA "GAXG2MTEOR3DMMDG" into "#totpcode"
149
- Then Assert element "img#image1 "
150
- And Assert exact text "Welcome!" in "h1 "
149
+ Then Assert exact text "Welcome!" in "h1 "
150
+ And Assert element "img#image1 "
151
151
And Click 'a:contains("This Page")'
152
152
And Save screenshot to logs
153
153
```
0 commit comments