Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/flex-plugin-e2e-tests/src/tests/step010.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const testSuite: TestSuite = async ({ scenario, config, secrets, environment }:
await Browser.create({ flex: config.hostedFlexBaseUrl, twilioConsole: config.consoleBaseUrl });
// Log into Flex
await Browser.app.twilioConsole.login('admin', secrets.api.accountSid, config.localhostPort);

await assertion.app.view.adminDashboard.isVisible();
logger.info('>> login success 2');
// await assertion.app.view.adminDashboard.isVisible();

// Verify that user is on the right account
const accountSid = await Browser.app.getFlexAccountSid();
Expand Down
4 changes: 3 additions & 1 deletion packages/flex-plugin-e2e-tests/src/utils/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ export class Browser {
static async create(baseUrls: BaseUrl): Promise<void> {
this._browser = await Puppeteer.launch({
headless: true,
protocolTimeout: 300000,
protocolTimeout: 600000,
args: [
'--use-fake-ui-for-media-stream',
'--disable-features=site-per-process',
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-features=BlockInsecurePrivateNetworkRequests,BlockInsecurePrivateNetworkRequestsFromPrivate',
'--disable-dev-shm-usage',
],
});
this._page = await this._browser.newPage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export class TwilioConsole extends Base {

logger.info('Logging in Flex via service login on first load');
await this.goto({ baseUrl: this._baseUrl, path });
logger.info('>> logged in successfully');
} else {
logger.error('Unable to fetch CSRF token or tw-visitor cookie for Twilio Console login');
throw new Error('Unable to fetch CSRF token or tw-visitor cookie to login to Twilio Console');
Expand Down
Loading