Skip to content

Commit 202b0bd

Browse files
authored
Adjust timeouts for page and Google Maps loading
Increased timeout for page load and Google Maps loading, while commenting out some waitForTimeout calls.
1 parent be6339e commit 202b0bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

e2e/samples.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ foldersToTest.forEach((sampleFolder) => {
145145
await page.goto(url);
146146

147147
// Allow some time for async operations and errors to be caught
148-
await page.waitForTimeout(500);
148+
//await page.waitForTimeout(500);
149149

150150
// Filter out error messages we can safely avoid.
151151
const filteredErrorMessages = [
@@ -164,10 +164,10 @@ foldersToTest.forEach((sampleFolder) => {
164164
expect(criticalErrors).toHaveLength(0);
165165

166166
// Wait for the page DOM to load; this does NOT include the Google Maps APIs.
167-
await page.waitForLoadState('domcontentloaded', { timeout: 500 });
167+
await page.waitForLoadState('domcontentloaded', { timeout: 10000 });
168168

169169
// Wait for Google Maps to load.
170-
await page.waitForFunction(() => window.google && window.google.maps, { timeout: 1000 });
170+
await page.waitForFunction(() => window.google && window.google.maps, { timeout: 500 });
171171

172172
// Insert a delay in ms to let the map load.
173173
await page.waitForTimeout(500);

0 commit comments

Comments
 (0)