Skip to content

Commit 737033f

Browse files
authored
Adjust timeout for waitForLoadState in tests
Reduced timeout for DOM content loading in tests.
1 parent 202b0bd commit 737033f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/samples.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ foldersToTest.forEach((sampleFolder) => {
152152
'Falling back to Raster',
153153
'Attempted to load a 3D Map, but failed.',
154154
'The map is not a vector map',
155-
'Property \'importLibrary\' does not exist on type \'Loader\'.'
155+
'Property \'importLibrary\' does not exist on type \'Loader\'',
156156
];
157157
const criticalErrors = consoleErrors.filter(error =>
158158
!filteredErrorMessages.some(message => error.includes(message))
@@ -164,7 +164,7 @@ 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: 10000 });
167+
await page.waitForLoadState('domcontentloaded', { timeout: 500 });
168168

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

0 commit comments

Comments
 (0)