mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
Table editor tests were being run serially because they would otherwise stomp all over each other in setup. But this made them really slow. This PR changes them to run in parallel, and makes sure the setup step runs only once by using a file lock. Also cleans up miscellaneous other sources of flakiness in tests. Co-authored-by: Ali Waseem <waseema393@gmail.com>
22 lines
431 B
TypeScript
22 lines
431 B
TypeScript
import { test as base } from '@playwright/test'
|
|
import dotenv from 'dotenv'
|
|
import path from 'path'
|
|
import { env } from '../env.config.js'
|
|
|
|
dotenv.config({
|
|
path: path.resolve(import.meta.dirname, '../.env.local'),
|
|
override: true,
|
|
})
|
|
|
|
export interface TestOptions {
|
|
env: string
|
|
ref: string
|
|
apiUrl: string
|
|
}
|
|
|
|
export const test = base.extend<TestOptions>({
|
|
env: env.STUDIO_URL,
|
|
ref: 'default',
|
|
apiUrl: env.API_URL,
|
|
})
|