Skip to content

Commit 33182ee

Browse files
committed
Update an example test
1 parent 58f7940 commit 33182ee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/test_mfa_login.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ def test_mfa_login(self):
66
self.open("https://seleniumbase.io/realworld/login")
77
self.type("#username", "demo_user")
88
self.type("#password", "secret_pass")
9-
totp_code = self.get_totp_code("GAXG2MTEOR3DMMDG")
10-
self.type("#totpcode", totp_code)
11-
self.click("#log-in")
9+
self.enter_mfa_code("#totpcode", "GAXG2MTEOR3DMMDG")
1210
self.highlight("img#image1")
1311
self.assert_text("Welcome!", "h1")
1412
self.save_screenshot_to_logs()

0 commit comments

Comments
 (0)