How to automate MFA OTP with Playwright, TS, Speakeasy
Автор: Alex ITips
Загружено: 2025-05-10
Просмотров: 881
🔐 When I first encountered automating Multi-Factor Authentication (MFA) with OTP, I thought: "There's no way to automate this smoothly!" 🤯 OTP changes every 30 seconds, that was the initial catch to it lol.
Fast forward to today—I've got a simple, repeatable method to automate MFA OTP reliably using Playwright 🎭, TypeScript 📘, and Speakeasy 🔑. In this video, I'll walk you through exactly how you can achieve this too, step-by-step.
You'll learn:
✅ How to easily generate OTP codes with Speakeasy.
✅ Setting up Playwright and TypeScript for seamless automation.
✅ Verifying OTP codes programmatically to enhance your tests.
Say goodbye 👋 to manual OTP input and unstable tests. With this standard approach, you'll handle MFA OTP like a pro in no time.
Let's dive in! 🚀
Time codes
00:00 Test case description
00:53 Local test run
01:41 Automation setup & code breakdown
05:20 OTP validity window explained
07:09 More code breakdown
10:15 Github Actions CI/CD setup video reference • Playwright & Github Actions CI/CD (updated...
10:40 Github Actions test run
10:59 CI error
Useful info:
1. TOTP challenge page https://authenticationtest.com/totpCh...
2. OTP validity window schema https://lucid.app/lucidspark/0ba6357e...
3. Github repository https://github.com/alexzavg/playwrigh...
❌ For an unknown reason this test keeps on failing SPECIFICALLY in Github Actions.
However, I've never encountered this on the real job.
But if you wanna solve it - feel free to 😊
#Playwright #TypeScript #Speakeasy #OTPAutomation #MFA #AutomationTesting #QAEngineer #AlexITips
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: