Broken master: ./spec/features/users/login_spec.rb

From https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/187168718:

Failures:

  1) Login with required two-factor authentication enabled group setting with grace period defined within the grace period redirects to two-factor configuration page
     Failure/Error:
       expect(page).to have_content(
         'The group settings for Group 1 and Group 2 require you to enable '\
         'Two-Factor Authentication for your account. '\
         'You can leave Group 1 and leave Group 2. '\
         'You need to do this '\
         'before '\
         "#{(Time.zone.now + 2.days).strftime("%a, %-d %b %Y %H:%M:%S %z")}"
       )

       expected to find text "The group settings for Group 1 and Group 2 require you to enable Two-Factor Authentication for your account. You can leave Group 1 and leave Group 2. You need to do this before Mon, 1 Apr 2019 03:21:55 +0000" in "Skip to content Projects Your projects Starred projects Explore projects Groups Your groups Explore groups Activity Milestones Snippets More Activity Milestones Snippets Instance Statistics Projects New project New group New snippet Loading... Go 0 0 0 Help Submit feedback Contribute to GitLab John Doe119 @user119 Profile Settings Sign out Toggle navigation User Settings Profile Profile Account Account Applications Applications Chat Chat Access Tokens Access Tokens Emails Emails Password Password Notifications Notifications SSH Keys SSH Keys GPG Keys GPG Keys Preferences Preferences Active Sessions Active Sessions Authentication log Authentication Log Collapse sidebar Close sidebar Open sidebar User Settings Two-Factor Authentication Account The group settings for Group 1 and Group 2 require you to enable Two-Factor Authentication for your account. You can leave Group 1 and leave Group 2. You need to do this before Mon, 01 Apr 2019 03:21:55 +0000. Register Two-Factor Authenticator Use an one time password authenticator on your mobile device or computer to enable two-factor authentication (2FA). Install a soft token authenticator like FreeOTP or Google Authenticator from your application repository and scan this QR code. More information is available in the documentation. Can't scan the code? To add the entry manually, provide the following details to the application on your phone. Account: localhost:user119@example.org Key: tiic bvyi uszz mrka 36da jgbc y3h4 ab46 Time based: Yes Pin code Register Universal Two-Factor (U2F) Device Use a hardware device to add the second factor of authentication. As U2F devices are only supported by a few browsers, we require that you set up a two-factor authentication app before a U2F device. That way you'll always be able to log in - even when you're using an unsupported browser. U2F Devices (0) You don't have any U2F devices registered yet."
     # ./spec/features/users/login_spec.rb:444:in `block (7 levels) in <top (required)>'
     # ./spec/features/users/login_spec.rb:437:in `block (6 levels) in <top (required)>'

Finished in 13 minutes 9 seconds (files took 15.45 seconds to load)
798 examples, 1 failure

Failed examples:

rspec ./spec/features/users/login_spec.rb:436 # Login with required two-factor authentication enabled group setting with grace period defined within the grace period redirects to two-factor configuration page