From b479013f0038e48a6139faba074a2849f8789b51 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Wed, 27 Jul 2022 17:10:51 -0400 Subject: [PATCH] test: fix admin e2e config (#839) --- test/admin/config.ts | 4 +--- test/admin/e2e.spec.ts | 2 +- test/admin/shared.ts | 2 ++ 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 test/admin/shared.ts diff --git a/test/admin/config.ts b/test/admin/config.ts index 818bd9f6a6..1dd9c8bc51 100644 --- a/test/admin/config.ts +++ b/test/admin/config.ts @@ -6,9 +6,7 @@ import CustomMinimalRoute from './components/views/CustomMinimal'; import CustomDefaultRoute from './components/views/CustomDefault'; import BeforeLogin from './components/BeforeLogin'; import AfterNavLinks from './components/AfterNavLinks'; - -export const slug = 'posts'; -export const globalSlug = 'global'; +import { slug, globalSlug } from './shared'; export interface Post { id: string; diff --git a/test/admin/e2e.spec.ts b/test/admin/e2e.spec.ts index a349392f00..35ec1306a2 100644 --- a/test/admin/e2e.spec.ts +++ b/test/admin/e2e.spec.ts @@ -5,7 +5,7 @@ import { AdminUrlUtil } from '../helpers/adminUrlUtil'; import { initPayloadE2E } from '../helpers/configHelpers'; import { login, saveDocAndAssert } from '../helpers'; import type { Post } from './config'; -import { globalSlug, slug } from './config'; +import { globalSlug, slug } from './shared'; import { mapAsync } from '../../src/utilities/mapAsync'; import wait from '../../src/utilities/wait'; diff --git a/test/admin/shared.ts b/test/admin/shared.ts new file mode 100644 index 0000000000..e27654c062 --- /dev/null +++ b/test/admin/shared.ts @@ -0,0 +1,2 @@ +export const slug = 'posts'; +export const globalSlug = 'global';