MCPcopy
hub / github.com/Agenta-AI/agenta / waitForOTP

Method waitForOTP

web/tests/utils/testmail/index.ts:83–86  ·  view source on GitHub ↗
(email: string, options: Testmail.WaitOptions = {})

Source from the content-addressed store, hash-verified

81 }
82
83 async waitForOTP(email: string, options: Testmail.WaitOptions = {}): Promise<string> {
84 const message = await this.waitForEmail(this.extractTag(email), options)
85 return this.findOTP(message)
86 }
87
88 generateTestEmail(params: Testmail.EmailTagParams = {}): Testmail.TestEmail {
89 const tag = this.createStructuredTag(params)

Callers 2

globalSetupFunction · 0.80
authHelpersFunction · 0.80

Calls 3

waitForEmailMethod · 0.95
extractTagMethod · 0.95
findOTPMethod · 0.95

Tested by

no test coverage detected