Feature: Support closing dialog windows (#233)

Supports closing dialogs in development. Upgrades gas-client to 1.2.0 and uses new API here: Add scriptHostFunctions for google.script.host gas-client#36
Example button to close dialog in Bootstrap sample
Updates integration tests
This commit is contained in:
Elisha Nuchi
2025-03-16 12:13:30 -04:00
committed by GitHub
parent 85223ca42a
commit 248a90023c
17 changed files with 2494 additions and 2502 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
export const openAddon = async (page) => {
await page.goto(process.env.SHEET_URL);
await page.waitForTimeout(5000); // pause for 3 seconds
await page.click('a:nth-child(2)'); // click on signin button
await page.waitForSelector('input[name="identifier"]', { visible: true });
@@ -97,10 +98,10 @@ export const openAddon = async (page) => {
new MouseEvent('mouseup', { bubbles: true })
);
});
await page.waitForSelector('.script-app-dialog', {
await page.waitForSelector('div[role="dialog"]', {
visible: true,
timeout: 10000,
});
await page.waitForTimeout(3000);
await page.waitForTimeout(15000);
};