/** * @group authentication * * One real problem with this spec is that SMS OTP can only be requested once every 5 minutes as per the backend code. * This is why the spec is isolated in its own build, to bypass the situation where Pre-Release Tests are lined up one after another (eg. when two PRs are merged together). * * It may be necessary to keep a close eye on this test and immediately pull the test from rotation if we find the flakiness exceeds an acceptable level. */ import { DataHelper, TestAccount } from '@automattic/calypso-e2e'; import { Page, Browser } from 'playwright'; declare const browser: Browser; describe( DataHelper.createSuiteTitle( 'Authentication: SMS 2FA' ), function () { let page: Page; let testAccount: TestAccount; beforeAll( async function () { page = await browser.newPage(); } ); it( 'Authenticate as user with SMS 2FA code', async function () { testAccount = new TestAccount( 'smsUser' ); await testAccount.authenticate( page ); } ); it( 'User lands in /home', async function () { await page.waitForURL( /.*\/home\/.*/ ); } ); } );