chore: moves lexical tests into collection folder
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -259,7 +259,7 @@ jobs:
|
||||
- fields/collections/Blocks
|
||||
- fields/collections/Array
|
||||
- fields/collections/Relationship
|
||||
# - fields/lexical
|
||||
- fields/collections/Lexical
|
||||
# - live-preview
|
||||
# - localization
|
||||
# - plugin-form-builder
|
||||
|
||||
@@ -7,16 +7,16 @@ import { expect, test } from '@playwright/test'
|
||||
import path from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
import type { LexicalField } from './payload-types.js'
|
||||
import type { LexicalField } from '../../payload-types.js'
|
||||
|
||||
import { initPageConsoleErrorCatch, saveDocAndAssert } from '../helpers.js'
|
||||
import { AdminUrlUtil } from '../helpers/adminUrlUtil.js'
|
||||
import { initPayloadE2E } from '../helpers/initPayloadE2E.js'
|
||||
import { RESTClient } from '../helpers/rest.js'
|
||||
import { POLL_TOPASS_TIMEOUT } from '../playwright.config.js'
|
||||
import { lexicalDocData } from './collections/Lexical/data.js'
|
||||
import { clearAndSeedEverything } from './seed.js'
|
||||
import { lexicalFieldsSlug } from './slugs.js'
|
||||
import { initPageConsoleErrorCatch, saveDocAndAssert } from '../../../helpers.js'
|
||||
import { AdminUrlUtil } from '../../../helpers/adminUrlUtil.js'
|
||||
import { initPayloadE2E } from '../../../helpers/initPayloadE2E.js'
|
||||
import { RESTClient } from '../../../helpers/rest.js'
|
||||
import { POLL_TOPASS_TIMEOUT } from '../../../playwright.config.js'
|
||||
import { clearAndSeedEverything } from '../../seed.js'
|
||||
import { lexicalFieldsSlug } from '../../slugs.js'
|
||||
import { lexicalDocData } from './data.js'
|
||||
const filename = fileURLToPath(import.meta.url)
|
||||
const dirname = path.dirname(filename)
|
||||
|
||||
@@ -53,7 +53,7 @@ if (!suiteName) {
|
||||
} else {
|
||||
// Run specific suite
|
||||
clearWebpackCache()
|
||||
const suitePath = path.resolve(dirname, suiteName, '.e2e.spec.ts')
|
||||
const suitePath = path.resolve(dirname, suiteName, 'e2e.spec.ts')
|
||||
executePlaywright(suitePath)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user