chore: deflake joins e2e tests (#11034)

Previously, data created by other tests was also leaking into unrelated tests, causing them to fail. The new reset-db-between-tests logic added by this PR fixes this. 

Additionally, this increases playwright timeouts for CI, and adds a specific timeout override for opening a drawer, as it was incredibly slow in CI
This commit is contained in:
Alessio Gravili
2025-02-06 19:38:38 -07:00
committed by GitHub
parent 7277f17f14
commit 098fe10ade
31 changed files with 71 additions and 46 deletions

View File

@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { Config, PaginatedDocs, TypedUser, Where } from 'payload'
import type { PaginatedDocs, TypedUser, Where } from 'payload'
import * as qs from 'qs-esm'
@@ -110,8 +110,6 @@ type QueryResponse<T> = {
}
export class RESTClient {
private readonly config: Config
private defaultSlug: string
private token: string
@@ -120,8 +118,7 @@ export class RESTClient {
public user: TypedUser
constructor(config: Config, args: Args) {
this.config = config
constructor(args: Args) {
this.serverURL = args.serverURL
this.defaultSlug = args.defaultSlug
}