Update integration tests and package versions (#211)

* Update gas-types-detailed package

* Update LICENSE

* update node versions and macos versions in workflows

* add NODE_OPTIONS env: max_old_space_size=4096

* support new log-in flow
This commit is contained in:
Elisha Nuchi
2024-03-22 01:40:15 -04:00
committed by GitHub
parent 7a26c690e1
commit 5f2012ce56
9 changed files with 111 additions and 22 deletions
+23 -3
View File
@@ -34,19 +34,39 @@ const openAddon = async (page) => {
process.env.TEST_RECOVERY_EMAIL
); // type recovery email
await page.waitForTimeout(6000);
await page.click('button'); // click "next" button
await page.click('div[data-primary-action-label] button'); // click "next" button
await page.waitForTimeout(5000);
}
if (
await page.evaluate(
() =>
document.querySelector('h1#headingText') &&
document
.querySelector('h1#headingText')
.innerText.includes('implify your sign')
)
) {
try {
await page.click(
'div[data-secondary-action-label] > div > div:nth-child(2) button'
);
await page.waitForTimeout(6000);
} catch {
// eslint-disable-next-line no-console
console.log('The "Simplify your sign-in" page isn\'t shown');
}
}
await page.waitForSelector(
'div.menu-button.goog-control.goog-inline-block:nth-child(11)',
'div.menu-button.goog-control.goog-inline-block:nth-child(10)',
{ visible: true }
);
// open new addon menubar item
await page.evaluate(() => {
const addOnMenuButton = document.querySelector(
'div.menu-button.goog-control.goog-inline-block:nth-child(11)'
'div.menu-button.goog-control.goog-inline-block:nth-child(10)'
);
addOnMenuButton.dispatchEvent(
new MouseEvent('mousedown', { bubbles: true })