File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * @license
3+ * Copyright 2024 Google LLC. All Rights Reserved.
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
17// e2e/samples.spec.ts
28import { test , expect } from '@playwright/test' ;
39import fs from 'fs' ;
410import path from 'path' ;
511import childProcess from 'child_process' ; // Import childProcess
12+ import { waitForGoogleMapsToLoad , failOnPageError } from "./utils" ;
613
714const samplesDir = path . join ( __dirname , '..' , 'samples' ) ;
815
@@ -43,7 +50,8 @@ sampleFolders.forEach((sampleFolder) => {
4350 try {
4451 await page . goto ( url ) ;
4552 await page . waitForLoadState ( 'domcontentloaded' ) ;
46- // Add your assertions here
53+ // wait for google.maps to be loaded
54+ //await waitForGoogleMapsToLoad(page); // TODO: Figure out how to load Google up in here.
4755 } finally {
4856 viteProcess . kill ( ) ;
4957 }
Original file line number Diff line number Diff line change 1+ /**
2+ * @license
3+ * Copyright 2024 Google LLC. All Rights Reserved.
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
17import { defineConfig , devices } from '@playwright/test' ;
28
39/**
Original file line number Diff line number Diff line change 1+ /**
2+ * @license
3+ * Copyright 2024 Google LLC. All Rights Reserved.
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
17// https://vitejs.dev/config/
28import { defineConfig } from 'vite' ;
39import dotenv from 'dotenv' ;
You can’t perform that action at this time.
0 commit comments