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
10 changes: 5 additions & 5 deletions test/source/tests/gmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]');
Expand Down
2 changes: 1 addition & 1 deletion test/source/tests/tooling/browser-recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down
3 changes: 2 additions & 1 deletion test/source/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading