From 07f8c327e426b4509b5279ff6ea6588aaa6d8729 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Thu, 6 Jun 2024 10:47:13 -0400 Subject: [PATCH 1/2] handle another githug login interstitial page --- test/testlib/browsertest/browsertest.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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": + //