diff --git a/test/testlib/browsertest/browsertest.go b/test/testlib/browsertest/browsertest.go index 90a521075..317295251 100644 --- a/test/testlib/browsertest/browsertest.go +++ b/test/testlib/browsertest/browsertest.go @@ -499,6 +499,18 @@ func handleOccasionalGithubLoginPage(t *testing.T, b *Browser, upstream testlib. b.ClickFirstMatch(t, submitConfirmButtonSelector) return true + case strings.HasPrefix(lowercaseTitle, "verify two-factor authentication"): + // Next GitHub might occasionally as you to confirm your MFA settings. + // Wait for the page to be rendered. + t.Logf("waiting for GitHub skip link") + // There are several buttons and links. We want to click this link to "skip 2FA verification": + //