From ea507fbcc43e9cdbcd92c52be7b6f77f2d4e8dc2 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 8 Apr 2024 11:30:15 -0400 Subject: [PATCH] chore: moves lexical tests into collection folder --- .github/workflows/main.yml | 2 +- .../Lexical/e2e.spec.ts} | 18 +++++++++--------- test/runE2E.ts | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) rename test/fields/{lexical.e2e.spec.ts => collections/Lexical/e2e.spec.ts} (98%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c017bfff..4a8d60635 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/test/fields/lexical.e2e.spec.ts b/test/fields/collections/Lexical/e2e.spec.ts similarity index 98% rename from test/fields/lexical.e2e.spec.ts rename to test/fields/collections/Lexical/e2e.spec.ts index 0ea4e229f..8f6726f1f 100644 --- a/test/fields/lexical.e2e.spec.ts +++ b/test/fields/collections/Lexical/e2e.spec.ts @@ -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) diff --git a/test/runE2E.ts b/test/runE2E.ts index ece589b4f..af5faf8b8 100644 --- a/test/runE2E.ts +++ b/test/runE2E.ts @@ -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) }