( page: Page, _request: APIRequestContext, password: string, )
| 294 | } |
| 295 | |
| 296 | async function testPlatformEnvironment( |
| 297 | page: Page, |
| 298 | _request: APIRequestContext, |
| 299 | password: string, |
| 300 | ) { |
| 301 | // TODO (SangJunBak): Re-enable this test once we fix the flakiness. |
| 302 | // At the time of writing this, the postgres client isn't able to connect. |
| 303 | return; |
| 304 | const client = await connectRegionPostgres(page, password); |
| 305 | console.log("SELECT 1"); |
| 306 | const result = await client.query("SELECT 1 as success"); |
| 307 | assert.equal(result.rows[0].success, 1); |
| 308 | return; |
| 309 | } |
| 310 | |
| 311 | async function connectRegionPostgres( |
| 312 | page: Page, |
no test coverage detected