From a3995f788038d1a158fa854f4df167cfbbce13fa Mon Sep 17 00:00:00 2001 From: Roma Sosnovsky Date: Wed, 27 May 2026 12:53:32 +0300 Subject: [PATCH 1/2] use consumer-local build for live tests --- test/source/util/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/source/util/index.ts b/test/source/util/index.ts index 7164508450c..9b18f59c98d 100644 --- a/test/source/util/index.ts +++ b/test/source/util/index.ts @@ -30,7 +30,8 @@ export const getParsedCliParams = () => { if (!testGroup) { testGroup = process.argv.includes('UNIT-TESTS') ? 'UNIT-TESTS' : process.argv.includes('FLAKY-GROUP') ? 'FLAKY-GROUP' : 'STANDARD-GROUP'; } - const buildDir = join(ROOT_DIR, `build/chrome-${(testVariant === 'CONSUMER-LIVE-GMAIL' ? 'CONSUMER' : testVariant).toLowerCase()}`); + const buildVariant = testVariant === 'CONSUMER-LIVE-GMAIL' ? 'CONSUMER-LOCAL' : testVariant; + const buildDir = join(ROOT_DIR, `build/chrome-${buildVariant.toLowerCase()}`); const poolSizeArg = process.argv.find(a => a.startsWith('--pool-size=')); const poolSize = poolSizeArg ? parseInt(poolSizeArg.split('=')[1], 10) : undefined; const poolSizeOne = poolSize === 1; From 04b715de7cd3007bfe27ad87b7f215272edc02e1 Mon Sep 17 00:00:00 2001 From: Roma Sosnovsky Date: Wed, 27 May 2026 13:55:06 +0300 Subject: [PATCH 2/2] fix live chat test --- test/source/tests/gmail.ts | 10 +++++----- test/source/tests/tooling/browser-recipe.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/source/tests/gmail.ts b/test/source/tests/gmail.ts index 280c6eeef6d..8a41b619250 100644 --- a/test/source/tests/gmail.ts +++ b/test/source/tests/gmail.ts @@ -748,21 +748,21 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test // 1. Verify buttons on the newest message (usually expanded by default) await Util.sleep(3); let messages = await gmailPage.target.$$('[role="listitem"] .adn.ads'); - const newestMessage = messages[messages.length - 1]; + const newestMessage = messages[messages.length - 1]; const newestMenuBtn = await newestMessage.$('[aria-label="More message options"]'); await newestMenuBtn?.click(); await Util.sleep(1); - + await gmailPage.waitAll('.action_reply_message_button'); const collapsedMessage = await gmailPage.target.$('[role="listitem"] .adf.ads'); if (collapsedMessage) { - await collapsedMessage.click(); - await Util.sleep(2); + await collapsedMessage.click(); + await Util.sleep(2); } // Now find the 3-dot menu on this expanded older message. // After expansion, it should have .adn.ads class active/visible. - + messages = await gmailPage.target.$$('[role="listitem"] .adn.ads'); const olderExpandedMessage = messages[0]; const olderMenuBtn = await olderExpandedMessage.$('[aria-label="More message options"]'); diff --git a/test/source/tests/tooling/browser-recipe.ts b/test/source/tests/tooling/browser-recipe.ts index a75fcdbd28d..1c274db3f17 100644 --- a/test/source/tests/tooling/browser-recipe.ts +++ b/test/source/tests/tooling/browser-recipe.ts @@ -81,7 +81,7 @@ export class BrowserRecipe { // close announcement about updated UI await context.waitAndClick('.fKz7Od', { delay: 1 }); } - await context.waitAny(['a.gb_de', 'a.gb_Vc', 'a.gb_he']); // Google hangout logo + await context.waitAll('button.jVwmLb'); // new chat button return googleChatPage; };