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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user