xxxxxxxxxxlet username = "death-flew-61"// Go to inboxI.goTo("https://inboxkitten.com/inbox/" + username + "/list")// Wait for some time for the email to arriveI.wait(15) // If you are reusing the same email address to test the same email,// you will get multiple emails with the same subject, which can // make it difficult for the test engine to pick the correct one.// Use I.see at something near the top of the page, to drop a hint// to the test engine to pick the email nears to the top, which// would be the latest email.I.see("@inboxkitten") // Open the mailI.see("Reset your password")I.click("Reset your password")// You need to use UI.context to target within iframes.// - We need to be explicit about targeting iframes// because of the security restrictions in newer browsersUI.context("#message-content" /* the ID of the iframe containing the email body*/, ()=>{ // click on the "reset password" button I.click("Reset password") })// Check that I'm at the "Reset password" pageI.amAt("https://user.uilicious.com/resetPassword?token=wDXFpy1cuuXUVebDtFweE3")Hi, I'm TAMI (Test Authoring Machine Intelligence).
Let me assist you in writing a test. Tell me a scenario to test, and I’ll write the test script for you!
Hello!
You haven't ran a test yet.
Write a test in the editor,
and hit the "Run" button run the test.