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/Blocks
|
||||||
- fields/collections/Array
|
- fields/collections/Array
|
||||||
- fields/collections/Relationship
|
- fields/collections/Relationship
|
||||||
# - fields/lexical
|
- fields/collections/Lexical
|
||||||
# - live-preview
|
# - live-preview
|
||||||
# - localization
|
# - localization
|
||||||
# - plugin-form-builder
|
# - plugin-form-builder
|
||||||
|
|||||||
@@ -7,16 +7,16 @@ import { expect, test } from '@playwright/test'
|
|||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { fileURLToPath } from 'url'
|
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 { initPageConsoleErrorCatch, saveDocAndAssert } from '../../../helpers.js'
|
||||||
import { AdminUrlUtil } from '../helpers/adminUrlUtil.js'
|
import { AdminUrlUtil } from '../../../helpers/adminUrlUtil.js'
|
||||||
import { initPayloadE2E } from '../helpers/initPayloadE2E.js'
|
import { initPayloadE2E } from '../../../helpers/initPayloadE2E.js'
|
||||||
import { RESTClient } from '../helpers/rest.js'
|
import { RESTClient } from '../../../helpers/rest.js'
|
||||||
import { POLL_TOPASS_TIMEOUT } from '../playwright.config.js'
|
import { POLL_TOPASS_TIMEOUT } from '../../../playwright.config.js'
|
||||||
import { lexicalDocData } from './collections/Lexical/data.js'
|
import { clearAndSeedEverything } from '../../seed.js'
|
||||||
import { clearAndSeedEverything } from './seed.js'
|
import { lexicalFieldsSlug } from '../../slugs.js'
|
||||||
import { lexicalFieldsSlug } from './slugs.js'
|
import { lexicalDocData } from './data.js'
|
||||||
const filename = fileURLToPath(import.meta.url)
|
const filename = fileURLToPath(import.meta.url)
|
||||||
const dirname = path.dirname(filename)
|
const dirname = path.dirname(filename)
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ if (!suiteName) {
|
|||||||
} else {
|
} else {
|
||||||
// Run specific suite
|
// Run specific suite
|
||||||
clearWebpackCache()
|
clearWebpackCache()
|
||||||
const suitePath = path.resolve(dirname, suiteName, '.e2e.spec.ts')
|
const suitePath = path.resolve(dirname, suiteName, 'e2e.spec.ts')
|
||||||
executePlaywright(suitePath)
|
executePlaywright(suitePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user